cancel
Showing results for 
Search instead for 
Did you mean: 

how to clear the current line

powerpeanuts
New Contributor II

I am using the console, how can I clear the current line? It seems the usual "Esc" button does not work.

 

For example:

q)"hello world"

 

And I would like to clear this line on this console.  Thanks.

1 ACCEPTED SOLUTION

rocuinneagain
Contributor II
Contributor II

Are you on Windows/Linux/Mac?

  1. Esc works in Windows (PowerShell + CMD)
  2. In Linux (Bash) Ctrl +E, Ctrl + U https://stackoverflow.com/a/16687377/4256419 

On Linux/Mac rlwrap is suggested.

 

 

View solution in original post

2 REPLIES 2

rocuinneagain
Contributor II
Contributor II

Are you on Windows/Linux/Mac?

  1. Esc works in Windows (PowerShell + CMD)
  2. In Linux (Bash) Ctrl +E, Ctrl + U https://stackoverflow.com/a/16687377/4256419 

On Linux/Mac rlwrap is suggested.

 

 

powerpeanuts
New Contributor II

Thanks. I'm on linux and Ctrl + U works 🙂