Using arrow keys in the q interactive window

235 views
Skip to first unread message

butch

unread,
Nov 30, 2008, 5:43:20 PM11/30/08
to Kdb+ Personal Developers
I work either a cygwin or ubuntu environment and use bash

Bash handles the up-key/down-key/left-key and right-key very nicely.

If I were to type in:

cd /home/dlmer/linux

and get an error because I mis-typed elmer as dlmer, I could just do a
up-arrow to display the command
that is to be modified and do a bunch of left arrows until I get to
the d and press the "Backspace" key to delete the d and then hit the e
key and like magic I have the proper command:

cd /home/elmer/linux

Now I can hit the return key and the command will be executed.

Is there any command line options I can use when running "q" that will
allow me to do he same thing?

Being required to retype a line in the "q" interactive window is a big
pain.

Just a request from a newbie.

thanks

Charles Skelton,Kx

unread,
Nov 30, 2008, 11:14:53 PM11/30/08
to personal...@googlegroups.com
You can use rlwrap.

e.g.

rlwrap q

Can be installed on ubuntu via

sudo apt-get install rlwrap

Kind regards,
Charlie

butch

unread,
Dec 1, 2008, 10:27:41 PM12/1/08
to Kdb+ Personal Developers
As I have said many times at work:

If you don't know you don't know until you learn.

Thanks a lot!
Reply all
Reply to author
Forward
0 new messages