Cmder: How to completely clear console output on pressing Ctrl-L?

Created on 7 Jul 2016  路  5Comments  路  Source: cmderdev/cmder

When I press Ctrl-L, the screen clears, but not completely, more like scrolling down to a clear space and keeping all the output above the screen fold, so when I scroll up, I see all the output I had before.

Is it possible to clear the console output completely?

I need it because when I run some program with long log output, it's hard to track where previous output ends and current one begins, so I would like to clear the console completely before running the program.

Thanks!

馃憖 Awaiting Response

Most helpful comment

Use GuiMacro (Keys & Macro page)

print("\ecls\n")

"\e" emulates Esc express, "\n" emulates Enter.

Source: http://superuser.com/a/623833/351521

All 5 comments

What shell are you using? The cmd.exe built-in cls will do what you want.

@glucas I am having an issue with cls, it leaves spacing issues, you'll also notice that now global env vars aren't highlighted as they use to be example git status etc
temp

Use GuiMacro (Keys & Macro page)

print("\ecls\n")

"\e" emulates Esc express, "\n" emulates Enter.

Source: http://superuser.com/a/623833/351521

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contribution.

This issue has been automatically closed due to it not having any activity since it was marked as stale. Thank you for your contribution.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brunowego picture brunowego  路  3Comments

luisrudge picture luisrudge  路  3Comments

vincentntang picture vincentntang  路  3Comments

danwellman picture danwellman  路  3Comments

spooky picture spooky  路  3Comments