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

Clear buffer contents when program still running (no prompt available for cls) #5241

Closed
iovuio opened this issue Apr 4, 2020 · 2 comments
Closed
Labels
Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@iovuio
Copy link

iovuio commented Apr 4, 2020

Description of the new feature/enhancement

Implement a shortcut to clear the contents of the buffer, no matter what the underlying shell is.
This is request pertains to running programs, where the prompt is not available. The participants of #2832 address the subject in detail, however for screens where the prompt is available.

Use case:

Having a program that generates a lot of text, it is useful to mark a starting point to see what's happened starting with this point (say the logging produced by the next request to the server running in the console).
Bash allows newlines to be inserted for that purpose.
CMD and PowerShell do not allow for that.
Without any way to introduce spacing one won't know which lines are due to last request to server and which are from earlier requests (there is no access to the prompt to run cls either).
To overcome this, one must rely on timestamps and do unnecessary research.

Proposed technical implementation details (optional)

This feature request is not about doing any change in PowerShell or CMD.

Without touching any shell funcionality, the terminal could offer a cleanup operation of its own.

An analogy: iTerm2 for macOS -- on pressing ⌘K iTerm2 really clears the buffer (it's not just printing as many newlines as to obtain a clear screen, it really throws everything away, which is highly desired and the shells never offer).

This feature request is about providing functionality for clearing the contents of the buffer of the current session.
Please note that if Far Manager is open, the request is probably best ignored. (e.g. iTerm2 does not do anything on ⌘K Midnight Commander or other ncurses apps are running).

@iovuio iovuio added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Apr 4, 2020
@ghost ghost added Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Apr 4, 2020
@j4james
Copy link
Collaborator

j4james commented Apr 4, 2020

This sounds like #1882.

@iovuio
Copy link
Author

iovuio commented Apr 4, 2020

Duplicate of #1882.
Thanks @j4james

@iovuio iovuio closed this as completed Apr 4, 2020
@zadjii-msft zadjii-msft added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. labels Apr 6, 2020
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

3 participants