question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OCGV: Move "Set cursor key to application mode" fix to gui.cs

See original GitHub issue

https://github.com/PowerShell/GraphicalTools/blob/ad01f86e0fb93c606461ba60cb2b5aea4318a737/src/Microsoft.PowerShell.ConsoleGuiTools/ConsoleGui.cs#L295

I think this may be a bug that impacts all gui.cs apps and should be fixed there. However, I don’t fully understand what the user impact of the bug described in these comments was and how setting the cursor key to application mode fixed it. Can you provide more detail?

As an aside, IIRC, Dispose for a Cmdlet is not actually guaranteed to get called until the CmdLet’s module is unloaded. And that does NOT happen immediately after the Cmdlet is run. This Dispose gets called in OutConsoleGridviewCmdletCommand’s Dispose. In building out-winprint I discovered that I could not count on Dispose for timely cleanup and instead had to do stuff at the end of EndProcessing. This is another reason I think this logic should be moved to gui.cs (unless I’m wrong about the fact the underlying bug impacts all gui.cs apps).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
TylerLeonhardtcommented, May 19, 2020

Yeah I can’t repro anymore. That’s interesting.

1reaction
tigcommented, May 13, 2020

Thanks. I actually use that (and WSL) here and there. The real problem is my dev skillz are barely adequate on Windows, and just getting started being able to enlist and build GraphicalTools on Linux is a bit much for me right now. I’m capable, it’s just time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Terminal.Gui 0.0.4
Gui app using F#. PowerShell's Out-ConsoleGridView - OCGV sends the output from a command to an interactive table.
Read more >
Cursor not moving : r/HelixEditor
Most movement is done in normal mode, but arrow keys should still move in insert mode. Upvote 1
Read more >
Microsoft.PowerShell.ConsoleGuiTools.psd1 0.6.2
Update Terminal.Gui to 1.0. Disable mouse mode to fix bug with mouse movement being printed to console. Gracefully fail when running in remote...
Read more >
It's 2020 and it is time for text mode with Gui.cs
Nearly 16 years ago I complained that Windows is completely missing the TextMode boat. It's 2020 and it's TIME FOR TEXT MODE BABY....
Read more >
c# - Avalonia UI mouse cursor not hiding correctly on ...
Running the application in Windows, everything works as expected. Three seconds after the mouse stops moving, it hides itself. On the raspberry ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found