In ConEmu, is it possible to create a Macro to type/paste "cls" then press [ENTER] and (ideally) assign it the keyboard shortcut [CTRL]+L ?

I am trying to emulate the clear screen function of the Linux Shell but for the Windows Command Prompt/PowerShell.

up vote 20 down vote accepted

Use GuiMacro (Keys & Macro page)

print("\ecls\n")

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

Of course, you may assign this macro to any desirable hotkey.

  • Brillant, works perfectly. – atwright147 Jul 26 '13 at 20:50

Consider using Clink, it provides full Readline experience (including Ctrl+L and history search). Works great with ConEmu too.

  • Clink does NOT works with powershell. – Maximus Jul 26 '13 at 20:56

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.