home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / hp / 14021 < prev    next >
Encoding:
Internet Message Format  |  1992-12-13  |  3.9 KB

  1. Path: sparky!uunet!cs.utexas.edu!uwm.edu!spool.mu.edu!yale.edu!ira.uka.de!news.belwue.de!cardix.mpi-stuttgart.mpg.de!martinr
  2. From: martinr@cardix.mpi-stuttgart.mpg.de (Martin Rosenbauer)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: HPUX and the backspace key
  5. Date: 13 Dec 1992 11:31:24 GMT
  6. Organization: Max-Planck-Institut fuer Festkoerperforschung, Stuttgart, Germany
  7. Lines: 72
  8. Distribution: world
  9. Message-ID: <1gf6ucINNrhr@nic.belwue.de>
  10. References: <1992Dec7.200215.20994@newshub.ccs.yorku.ca> <1992Dec8.154207.5201@cognos.com>
  11. NNTP-Posting-Host: cardix.mpi-stuttgart.mpg.de
  12.  
  13. In article <1992Dec8.154207.5201@cognos.com>, jimp@cognos.COM (Jim Patterson) writes:
  14. |> jmuscat@nexus.yorku.ca (John Muscat) writes:
  15. |> : I have a trivial problem which I hope has a trivial sol'n. When telnetting to 
  16. |> : our a new HPUX 730 host from another vendor machine (eg Dec, Next or a PC 
  17. |> : running with tcp/ip sw) the backspace key gives a ^? (versus erasing
  18. |> : an going back one character).
  19. |> : ... I've played around
  20. |> : with the tset and stty commands but I haven't found the bit of magic that 
  21. |> : remaps CRTL-H to the key labelled backspace. 
  22. |> :
  23. |> : Does anyone know how to do the mapping of erase to the backspace key?
  24. |> 
  25. |> I think you're going about things the wrong way. You don't want to
  26. |> map BACKSPACE to ^H, but rather map what BACKSPACE sends (i.e. ^?)
  27. |> to the stty 'erase' function. Try this:
  28. |> 
  29. |>    stty erase ^?
  30. |> 
  31. |> If you want to do this in your .login file, it's not a bad plan to
  32. |> base this on what 'term' gets set to, e.g.
  33. |> 
  34. |>   stty erase ^?
  35. |>   if ( `expr $TERM : 'hp23*'` ) stty erase ^H
  36. |> 
  37. |> --
  38. |> Jim Patterson                  Cognos Incorporated
  39. |> Sr Consulting Engineer         P.O. BOX 9707
  40. |> UUNET:jimp@cognos.COM          3755 Riverside Drive
  41. |> PHONE:(613)738-1338 x3385      Ottawa, Ont  K1G 3Z4
  42.  
  43. We went a different way of solving this problem:
  44. Whenever we have this problem, it's a vtxxx terminal, usually
  45. a vt100 emulated on a PC, or a DEC vt terminal. We could not
  46. change the DEL-Key into a backspace key on these terminals since
  47. people still want to login into vaxes running VMS and there they
  48. really need a DEL-Key.
  49.  
  50. What I did was changing the vtxxx files stored in /usr/lib/terminfo.
  51. I wrote a few small scripts, 'untic'ing the vt files in the
  52. /usr/lib/terminfo/v directory, changing the backspace information
  53. into DEL (using sed), 'tic'ing them and restoring  them.
  54. Logging in I always set something like
  55. stty erase $(/usr/bin/tput kbs) (in our standard .kshrc file/.profile.)
  56. which sets the erase to whatever is stored in the data base
  57. and the problem is solved.
  58.  
  59. Since we are using many different terminals at many different
  60. systems, this seemed to be the appropriate way of doing it. I hate it
  61. making people type 'stty erase ^?' and the like. I also hate it
  62. making people set there terminal type by hand. It's nice that
  63. all newer telnet/telnetd communications support passing the
  64. terminal type now.
  65.  
  66. When logging in from a vax, in our case, the terminal type is set to
  67. 'dec-vt300' and the like. Very very strange. But a symbolic link in
  68. the /usr/lib/terminfo/d directory to vt300 helps.
  69.  
  70. BUGS: The only thing not coverer here is: Using a DEC X-terminal
  71.       with usual xterm windows. The keyboard there seems to send
  72.       DEL too. Probably one should just make these xterms indentify
  73.       themselves with something like dec-xterm and provide an
  74.       appropriate entry in /usr/lib/terminfo/d .
  75.  
  76. If anyone found a different solution, please e-mail me. I am very
  77. interested in this stuff.
  78. -- 
  79. ========================================================================
  80. Martin Rosenbauer                   martinr@cardix.mpi-stuttgart.mpg.de
  81. Max-Planck-Institut FKF      __o    Telephon: +49 (711) 686-0679
  82. Heisenbergstr. 1           _-\<,_   (privat : +49 (711) 694-924)
  83. W-7000 Stuttgart 80   ....(_)/ (_)  Fax:      +49 (711) 678-7934
  84. ==== Germany ===========================================================
  85.