Clear buffer contents when program still running (no prompt available for cls
)
#5241
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.
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).
The text was updated successfully, but these errors were encountered: