home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / editors / 2045 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.5 KB

  1. Path: sparky!uunet!mcsun!Germany.EU.net!unido!majestix!uho
  2. From: uho@informatik.uni-kiel.dbp.de (Ulrich Hoffmann)
  3. Newsgroups: comp.editors
  4. Subject: Re: elvis 1.6, Sun Sparc and cursors keys
  5. Keywords: elvis 1.6 cursor key troubles on Sun Sparc
  6. Message-ID: <10690@minnie.informatik.uni-kiel.dbp.de>
  7. Date: 20 Aug 92 14:49:40 GMT
  8. References: <1992Aug18.201352.2155@bmerh85.bnr.ca>
  9. Organization: Dept. of Computer Science, University of Kiel, FRG
  10. Lines: 41
  11.  
  12. In <1992Aug18.201352.2155@bmerh85.bnr.ca> sjane@bmers248.bnr.ca (sjs) writes:
  13.  
  14. >If you run into this problem, you can either get your sysadmin to change back
  15. >to elvis 1.5 or you can alter your .termcap file (ask a guru) to change your
  16. >:ku, :kd, :kr, :kl to be \E[A, \E[B, \E[C, \E[D.  I'm not absolutely positive
  17. >if the latter solution will solve all your problems, because my sysadmin added
  18. >:ks & :ke back into elvis 1.6 for me.
  19.  
  20. Alternatively you can leave your termcap unchanged but map the generated cursor key
  21. sequences to the appropriate commands in your .exrc file.
  22.  
  23. sample entry:
  24.  
  25. map [A k
  26.  
  27. ^    ^   ^
  28. |    |   |
  29. |    |   + into this command
  30. |    + this sequence 
  31. + map in non insert mode
  32.  
  33. Use  map!  instead of  map  to define for insert mode.
  34.  
  35. The appropriate mappings in my .exrc:
  36. map [A k
  37. map [B j
  38. map [C l
  39. map [D h
  40. map! [A ka
  41. map! [B ja
  42. map! [C la
  43. map! [D ha
  44.  
  45. Greetings,
  46.  
  47.  
  48.    Ulrich
  49.  
  50. Ulrich Hoffmann                   email: uh@informatik.uni-kiel.dbp.de  
  51. Institut fuer Informatik, Universitaet Kiel        Tel: +49 431 560426 
  52. Preusserstr 1-9, D-2300 Kiel 1, Germany            Fax: +49 431 566143
  53.