Using arrow keys in the q interactive window

Received: by 10.100.225.19 with SMTP id x19mr843619ang.5.1228085001015; Sun, 30 Nov 2008 14:43:21 -0800 (PST)Date: Sun, 30 Nov 2008 14:43:20 -0800 (PST)X-IP: 98.148.200.75User-Agent: G2/1.0X-Google-Token: QYSHZAwAAABJ4Yz9qDz-4CkTBnKu3HWaX-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.4) Gecko/2008111318 Ubuntu/8.04 (hardy) Firefox/3.0.4,gzip(gfe),gzip(gfe)Message-ID: Subject: Using arrow keys in the q interactive windowFrom: butch <elmer_fwd>To: “Kdb+ Personal Developers” X-Google-Approved: charlie@kx.com via web at 2008-12-01 04:11:45I work either a cygwin or ubuntu environment and use bashBash handles the up-key/down-key/left-key and right-key very nicely.If I were to type in:cd /home/dlmer/linuxand get an error because I mis-typed elmer as dlmer, I could just do aup-arrow to display the commandthat is to be modified and do a bunch of left arrows until I get tothe d and press the “Backspace” key to delete the d and then hit the ekey and like magic I have the proper command:cd /home/elmer/linuxNow 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 willallow me to do he same thing?Being required to retype a line in the “q” interactive window is a bigpain.Just a request from a newbie.thanks</elmer_fwd>

X-Mailer: Apple Mail (2.929.2)You can use rlwrap.e.g.rlwrap qCan be installed on ubuntu viasudo apt-get install rlwrapKind regards,CharlieOn Nov 30, 2008, at 11:43 PM, butch wrote:>> 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>> >

As I have said many times at work:If you don’t know you don’t know until you learn.Thanks a lot!On Nov 30, 8:14?pm, “Charles Skelton,Kx” <char…> wrote:> You can use rlwrap.>> e.g.>> rlwrap q>> Can be installed on ubuntu via>> sudo apt-get install rlwrap>> Kind regards,> Charlie>> On Nov 30, 2008, at 11:43 PM, butch wrote:>>>> > 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</char…>