-
Notifications
You must be signed in to change notification settings - Fork 700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CursesDriver should emit the "Set cursor key to application mode" ANSI escape code when it exits #418
Comments
If possible this should reset it only if that's what it was set to before launching a gui.cs app. |
Reopening. See $945. |
The main problem is how to get it before application launch and assign at exit. |
I've already tested that before with no success. |
@tig after all works but not alone. Before
and before
I think that the most correct is |
Mhm, I see what is going on here. So PowerShell is expecting regular cursor key commands, while gui.cs uses Application Key commands. The proper way of doing this would be to lookup the terminfo database and output the strings for rmkx and smkx. You can use |
* Fixes #931. Unix terminal hangs after exit. * Changed escape sequence as suggested by @mklement0 * Changing as documented at http://ascii-table.com/ansi-escape-sequences-vt-100.php
out-consolegridview
currently has this clean-up code in it to fix PowerShell/ConsoleGuiTools#49.Driver's clean-up code should emit the
\u001b[?1h
ANSI escape code when it exits.According to @TylerLeonhardt he put this here as a quick fix, but it should really be fixed in
gui.cs
. See: PowerShell/ConsoleGuiTools#99 (comment)The issue is not reproduceable in
ConEmu
orWindows Terminal
on Windows, so this appears to be specific to Linux and Mac. I believe this should be done in theCursesDriver
's implementation ofConsoleDriver.End()
which currently looks like this:Thus:
But I don't know enough about Curses to know if this actually makes sense.
The text was updated successfully, but these errors were encountered: