Tuesday, 22 January 2019

ConEmu: Keyboard shortcut to run "cls[ENTER]"


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.



Answer



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.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...