Open Aleksit0 opened 3 years ago
I'd like to second this. It doesn't seem to matter which shell you are using (Tested with bash, cmd and powershell, happens everywhere).
After micro is closed, the whole screen is cleared and all previously executed commands are no longer visible.
For me this is the number one thing that keeps me from using micro as my default editor.
This seems to depend on the terminal emulator used rather than the shell - I've only managed to reproduce it on windows. What OS/terminal emulator are you using? For reference, it works fine with konsole and in tmux (though they're linux/bsd-only afaik)
I'm using conhost and Windows Terminal on Windows 10. It is reproducible in those two, but I haven't tested any other terminal emulators
For me it's the same issue, I'm working on Windows 10, Windows Terminal and I call micro from Powershell.
Commenting to check if any progress in this issue? I am also facing the same issue on windows.
This is most certainly Windows specific. @JoeKar could you take a look?
Yep, I mentioned this here https://github.com/zyedidia/tcell/pull/26 already:
Still something is happening with the terminal style when micro is closed:
- The Windows Terminal prompt then still uses the background color of micro, till the screen is cleared.
- The previous history isn't available any longer.
Edit: Maybe it can be solved with gdamores' suggestion instead of mine:
This also uses the alternate screen buffer on Windows by default, with fixes to avoid clearing the non-alternate screen.
A backport of the newer variant is preferable anyway.
I olen my cmd and type cd, ls, pwd.. I enter micro and after exiting it clears the cmd screen