Skip to content
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

When I exit micro, all commands that I typed in cmd dissapear. #2038

Open
Aleksit0 opened this issue Feb 23, 2021 · 7 comments
Open

When I exit micro, all commands that I typed in cmd dissapear. #2038

Aleksit0 opened this issue Feb 23, 2021 · 7 comments

Comments

@Aleksit0
Copy link

Aleksit0 commented Feb 23, 2021

I olen my cmd and type cd, ls, pwd.. I enter micro and after exiting it clears the cmd screen

@slangreck
Copy link

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.

@Humandoodlebug
Copy link

Humandoodlebug commented Mar 21, 2022

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)

@slangreck
Copy link

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

@reserschnell
Copy link

For me it's the same issue, I'm working on Windows 10, Windows Terminal and I call micro from Powershell.

@HatGuy68
Copy link

Commenting to check if any progress in this issue? I am also facing the same issue on windows.

@dmaluka
Copy link
Collaborator

dmaluka commented Jun 15, 2024

This is most certainly Windows specific. @JoeKar could you take a look?

@JoeKar
Copy link
Collaborator

JoeKar commented Jun 15, 2024

Yep, I mentioned this here zyedidia/tcell#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants