micro-editor / micro-editor/micro

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

Open
#1,243 6 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
29.6k
Forks
1.4k
Avg merge
2d 18h
Merged PRs (30d)
10

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the editor-exit behavior on Windows 10 Pro 1809 in PowerShell, using the reported commit hash from micro -version. Trace the terminal cleanup and color handling around exit; done means existing terminal output remains visible and colors are not broken after closing the editor.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, powershell
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.