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 screen command #372

Closed
HisRoyalRedness opened this Issue Oct 14, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@HisRoyalRedness

HisRoyalRedness commented Oct 14, 2015

It would be nice to have a menu option/hotkey/macro that could clear the screen (visible and buffer), that does not rely on 'cls' or 'clear' or any other batch command to be entered.

Example: I'm running an application through telnet or Putty, and this application is spitting out console output as it goes along. I'd like to clear the screen before performing a given action, so that I can only see the resulting console output related to that action.

A 'Clear screen' option on the Edit menu, right next to 'Copy all' would be first prize.

I'm currently running ConEmu 150913

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Oct 15, 2015

Owner

As I said many times ago. Never.

Example: you are running vim. Call that mysterious "clear" command, all your work is garbaged.

Owner

Maximus5 commented Oct 15, 2015

As I said many times ago. Never.

Example: you are running vim. Call that mysterious "clear" command, all your work is garbaged.

@Maximus5 Maximus5 closed this Oct 15, 2015

@HisRoyalRedness

This comment has been minimized.

Show comment
Hide comment
@HisRoyalRedness

HisRoyalRedness Oct 15, 2015

OK, but you would assume that the user is clearing the console because he/she really wants it cleared. Same as closing the window. If you shut it down without saving changes, you're going to lose them.

Surely you should assume that the user performing an action is aware of what they're doing. An 'Are you sure...' message box on the Clear command would prevent an inadvertent clear, same as the one asking to confirm that you're closing multiple tabs etc.

Just saying...

HisRoyalRedness commented Oct 15, 2015

OK, but you would assume that the user is clearing the console because he/she really wants it cleared. Same as closing the window. If you shut it down without saving changes, you're going to lose them.

Surely you should assume that the user performing an action is aware of what they're doing. An 'Are you sure...' message box on the Clear command would prevent an inadvertent clear, same as the one asking to confirm that you're closing multiple tabs etc.

Just saying...

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Oct 15, 2015

Owner

Nobody may know how internals of your active console application work. Proposed activities may cause even crashes in some cases.

Owner

Maximus5 commented Oct 15, 2015

Nobody may know how internals of your active console application work. Proposed activities may cause even crashes in some cases.

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Oct 15, 2015

Owner

In other words, clearing the screen is a shell responsibility and ability! They may do clearing properly. Actually, many shells has hotkey for this.
There is nothing to do with ConEmu.

Owner

Maximus5 commented Oct 15, 2015

In other words, clearing the screen is a shell responsibility and ability! They may do clearing properly. Actually, many shells has hotkey for this.
There is nothing to do with ConEmu.

@Maximus5

This comment has been minimized.

Show comment
Hide comment

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