micro icon indicating copy to clipboard operation
micro copied to clipboard

Clearing the terminal after closing editor is not good, also colors gets broken

Open yilmazdurmaz opened this issue 7 years ago • 6 comments

Description of the problem or steps to reproduce

I use powershell and needed a simple way to edit files, thus I have found micro. It seems to be a be-a-fan app for me but this little thing is annoying.

when I exit the editor, I guess it uses a "clear" command on the terminal that causes clear everything printed on the terminal so far. For me this is a horror moment because I need every printed line and is about to use editor many more times in my time with the console.

Please see and try to fix what causes this.

and the color problem pointed out in issue #1240 is another annoying thing, but not as much urgent as above one.

Specifications

You can use micro -version to get the commit hash.

Commit hash: 1856891 OS: Windows 10 Pro 1809 x64 Terminal: powershell

yilmazdurmaz avatar Nov 25 '18 13:11 yilmazdurmaz

I tried the same for "cmd" and it does the clearing there too. hope you change this behavior asap.

yilmazdurmaz avatar Nov 25 '18 15:11 yilmazdurmaz

Using micro (1.4.2-dev.70 Commit hash: 73093f9) in Cmder (ConEmu). Cleared buffer after leaving micro is truly sad and disappointing experience.

Another similar report, from xterm: #1040

myfonj avatar Jul 10 '19 16:07 myfonj

Hi, I can confirm this behavior in the most recent build version 2.0.3-devX. Is there any plan to fix it soon?

znamenap avatar Mar 04 '20 23:03 znamenap

This error still exists in 2.0.14

If it uses the alt-screen mode of the terminal it does not need to clear any lines.

plutonium-239 avatar Nov 07 '24 08:11 plutonium-239

Bumping this issue as it is really annoying to lose history

plutonium-239 avatar Feb 22 '25 07:02 plutonium-239

I'm bumping this as well, 2.0.14 on pwsh 7.5.0

BlueHedgy avatar Mar 28 '25 21:03 BlueHedgy