how to clear the current line

https://learninghub.kx.com/forums/topic/how-to-clear-the-current-line

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.

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.

 

 

Thanks. I’m on linux and Ctrl + U works