Path: utzoo!attcan!uunet!zephyr.ens.tek.com!tekcae!larryh From: larryh@tekcae.CAX.TEK.COM (Larry Hedges) Newsgroups: comp.emacs Subject: Re: Function Keys in MG2a Keywords: MG FKEYS Message-ID: <3136@tekcae.CAX.TEK.COM> Date: 22 Sep 89 15:16:17 GMT References: <467@cimshop.UUCP> <18622@ut-emx.UUCP> <472@cimshop.UUCP> Reply-To: larryh@bianchi.CAX.TEK.COM (Larry Hedges) Organization: Tektronix, Inc., Beaverton, OR. Lines: 42 In article <472@cimshop.UUCP> davidm@cimshop.UUCP (David Masterson) writes: >In article <18622@ut-emx.UUCP> mic@ut-emx.UUCP (Mic Kaczmarczik) writes: >>In article <467@cimshop.UUCP> davidm@cimshop.UUCP (David Masterson) writes: >>> [ questions about MG2a startup ] >> >> >>--------------------------------------------------------------------- >>; >>; Example key definition file for VT100 terminals using the termcap >>; driver. This only works if XKEYS is defined during compilation. >>; >>(global-set-key "\eOA" 'previous-line) ; up arrow >>(global-set-key "\eOB" 'next-line) ; down arrow >>(global-set-key "\eOC" 'forward-char) ; right arrow >>(global-set-key "\eOD" 'backward-char) ; left arrow >>------------------------------------------------------------------------ > I use the following in my .emacs file on VMS - it works! (gnuemacs): (global-unset-key "\e[") "For vt100/ANSI displays" " backward line" (global-set-key "\e[A" 'previous-line) " forward line" (global-set-key "\e[B" 'next-line) " back a character" (global-set-key "\e[D" 'backward-char) " forward a character" (global-set-key "\e[C" 'forward-char) -- Larry Hedges Tektronix, Inc. larryh@bianchi.CAX.TEK.COM P.O. Box 500 CAX Data Management 19-075 Beaverton, Oregon (503) 627-2642 97077