key up will recall the command you have used before in shell.
But what would you do if you on half way navigate through the history of your commands and you decide you want to type new command of your own?
key down all the way would be too troublesome. Pressing
ESC won't clear the command as in like Windows(I'm coming from Windows background).
So, how to clear the command instantly? I've googled so far but only found
CTRL+C may cancel and go to new line. Is it the only way or is there a better way like
ESC in Windows thats clear directly? Thanks.