Michael Klement

Results 1234 comments of Michael Klement

Actually, resetting the terminal with `tput init` is better, because it doesn't clear the screen.(It is [POSIX-mandated](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/tput.html), though what it actually does is left to the implementation). It is effective...

I can confirm that replacing `tput init` with `"$([char] 0x1b)[?1h"` (simpler PS Core alternative: ``"`e[?1h"``) in the sample code enough is sufficient. Examining what escape sequences `tput init` emits in...

The portable equivalent of VT100 escape sequence `\x1b[?1h` (which does work for macOS and Ubuntu terminals, however) appears to be `tput rmkx`; that is, the `keypad_local` aka `rmkx` TermInfo capability...

@BDisp, for maximum robustness we shouldn't _hard-code_ these sequences, as they may vary by terminal emulation. - though perhaps, pragmatically speaking, that is fine nonetheless, given that terminal emulators today...

@BDisp, I think that problem is not related to the escape sequences we've discussed per se: Even without these sequences, I see the following behavior: macOS: * compiled executable: *...

I'm still a bit unclear: did emitting the escape sequence on shutdown make the resizing problem worse in your dotnet application on rerunning it in the same session? > Mac...

Perhaps if we take a step back and try to let ncurses handle restoring the previous terminal state - which is preferable anyway - the problem would go away: On...

To shed some more light on the original problem: * What breaks PowerShell is that the so-called application-cursor mode is not restored (which `tput rmkx` would do) when an _in-process_...

Unfortunately, I misspoke - please see the updated previous comment; in short: irrespective of whether the Terminal.Gui application is run in-process as PowerShell code or via an external executable, the...

That's great - thank you, @firasdib. As for improving the content of the new pop-up: I think it would make sense to link to https://github.com/firasdib/Regex101/wiki/FAQ#how-close-does-regex101-emulates-the-engines from there, for more detailed...