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

Feature request : clear terminal #550

Closed
Offirmo opened this Issue Feb 17, 2016 · 6 comments

Comments

Projects
None yet
2 participants
@Offirmo

Offirmo commented Feb 17, 2016

I'm in the process of switching from Teraterm. I couldn't find a feature I use a lot :
reset terminal

This command fully clears the terminal's buffer. After using it, the terminal is completely empty, no more scroll bar, no more styles. It's like the unix "reset" + complete "clear"

Along with a shortcut key, that would be sweet.

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Feb 17, 2016

Owner

Search issues. I've already answered this question, more than a once.

Imagine, Windows would have a hotkey to Clear The Monitor. What shall it do? Fill screen with black color. And how do you think running applications and Windows would behave after that? Garbage, rubbish and more.

Never.

Want "clear"? Depends on the used shell, read help about it. cmd has cls.

Owner

Maximus5 commented Feb 17, 2016

Search issues. I've already answered this question, more than a once.

Imagine, Windows would have a hotkey to Clear The Monitor. What shall it do? Fill screen with black color. And how do you think running applications and Windows would behave after that? Garbage, rubbish and more.

Never.

Want "clear"? Depends on the used shell, read help about it. cmd has cls.

@Maximus5 Maximus5 closed this Feb 17, 2016

@Offirmo

This comment has been minimized.

Show comment
Hide comment
@Offirmo

Offirmo Feb 18, 2016

I searched.

And well, TeraTerm manages it perfectly well... If I'm unclear, won't you try this feature in TeraTerm just to have a taste ? See it as a "concurrence" probing...

Offirmo commented Feb 18, 2016

I searched.

And well, TeraTerm manages it perfectly well... If I'm unclear, won't you try this feature in TeraTerm just to have a taste ? See it as a "concurrence" probing...

@Maximus5

This comment has been minimized.

Show comment
Hide comment
Owner

Maximus5 commented Feb 18, 2016

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Feb 18, 2016

Owner

To be clear, I tried the feature in Tera Term, and it doesn't work. At all. Docs provides more information.

Owner

Maximus5 commented Feb 18, 2016

To be clear, I tried the feature in Tera Term, and it doesn't work. At all. Docs provides more information.

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Feb 18, 2016

Owner

[search issues](https://github.com/Maximus5/ConEmu/issues?q=is:issue clear screen label:status-rejected)

gh-372, gh-234

Owner

Maximus5 commented Feb 18, 2016

[search issues](https://github.com/Maximus5/ConEmu/issues?q=is:issue clear screen label:status-rejected)

gh-372, gh-234

@Offirmo

This comment has been minimized.

Show comment
Hide comment
@Offirmo

Offirmo Feb 18, 2016

First, thanks a lot for reading, for trying TeraTerm (I'm impressed that you fact-checked).

Sorry If I'm insisting but yes, after using "Reset Terminal" screen is completely blank, and yes, the prompt is not displayed anymore. But know what ? Just by pressing a single "enter" the prompt is displayed again.

Example cases :

  1. When for example inspecting a real-time log (tail -f), if I have already millions of scrolled lines, being able to visually "clear" everything without stopping the current command is invaluable !
  2. When developping an app in read-modify-execute mode, how many times did I accidentally scrolled too far and mistook former run output with the last output ? Being able to clear the terminal completely prevents such pains.

Without such a feature, the only way to clearly separate batches of console output is by making enough «visual space» by, for ex., your aforementioned «ctrl+L» or by keeping "enter" pressed for a long time. Both methodes are not very effective at preventing "lost in scroll history" situations :-(

As a fellow developper, I hope the examples I give will ring some bells.

Btw this feature is so useful that it's also available in default Terminal app of standard Ubuntu :
clear
Convenientely mapped to F1 : so perfect !

Obviously, using this command while in a curses-heavy interactive shell application like vim is a bad idea. But it's only a rare use case !

Offirmo commented Feb 18, 2016

First, thanks a lot for reading, for trying TeraTerm (I'm impressed that you fact-checked).

Sorry If I'm insisting but yes, after using "Reset Terminal" screen is completely blank, and yes, the prompt is not displayed anymore. But know what ? Just by pressing a single "enter" the prompt is displayed again.

Example cases :

  1. When for example inspecting a real-time log (tail -f), if I have already millions of scrolled lines, being able to visually "clear" everything without stopping the current command is invaluable !
  2. When developping an app in read-modify-execute mode, how many times did I accidentally scrolled too far and mistook former run output with the last output ? Being able to clear the terminal completely prevents such pains.

Without such a feature, the only way to clearly separate batches of console output is by making enough «visual space» by, for ex., your aforementioned «ctrl+L» or by keeping "enter" pressed for a long time. Both methodes are not very effective at preventing "lost in scroll history" situations :-(

As a fellow developper, I hope the examples I give will ring some bells.

Btw this feature is so useful that it's also available in default Terminal app of standard Ubuntu :
clear
Convenientely mapped to F1 : so perfect !

Obviously, using this command while in a curses-heavy interactive shell application like vim is a bad idea. But it's only a rare use case !

Maximus5 added a commit that referenced this issue Feb 19, 2016

gh-550, gh-372, gh-234: Unassigned by default hotkey ‘Reset terminal’…
… (dangerous).

  I'm still sure that this operation is harmful and dangerous:
  <https://conemu.github.io/en/ClearScreen.html>.
  But since GuiMacro `Write` exists, anyone may create a macro
  for `Write("\ec")`, which the hotkey actualy executes.

  BTW, with `Write` macro anyone may push to console several colored lines,
  using ANSI sequences, to ‘mark’ some point in real-time logs (tail -f).

    Write "\n\n\e[91m========== '\e]9;8;\"time\"\e\\' ==========\e[m\n\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment