Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!umd5!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.unix.wizards Subject: Re: Ksh cursor keys (Was: who uses which shells) Message-ID: <7987@brl-smoke.ARPA> Date: 28 May 88 18:58:26 GMT References: <1887@mhres.mh.nl> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 18 In article <1887@mhres.mh.nl> jv@mhres.mh.nl (Johan Vromans) writes: >But WHY does ksh not allow cursor (=arrow) keys to be used? Different terminal transmit different sequences when an arrow key is pressed. Assuming that ksh allows user-specified editing key bindings, as the BRL Bourne shell does, you CAN use arrow keys. # .shbind -- source to bind history/editing keypad keys # following to support ANSI terminal keypads (e.g. VT100): bind prefix-2 '^[O' bind prefix-2 '^[[' bind up-history '^XA' bind down-history '^XB' bind forward-char '^XC' bind backward-char '^XD' bind beginning-of-line '^XH'