home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / wizards / 4616 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  3.2 KB

  1. Xref: sparky comp.unix.wizards:4616 comp.unix.shell:4647 comp.unix.misc:4112
  2. Newsgroups: comp.unix.wizards,comp.unix.shell,comp.unix.misc
  3. Path: sparky!uunet!caen!destroyer!mudos!mju
  4. From: mju@mudos.ann-arbor.mi.us (Marc Unangst)
  5. Subject: Re: The Problem with UNIX
  6. Message-ID: <BxKz6B.Gp1@mudos.ann-arbor.mi.us>
  7. Date: Thu, 12 Nov 1992 02:06:09 GMT
  8. References: <1992Nov9.172715.16367@cs.wisc.edu> <1992Nov10.170423.10311@nttor.uucp>
  9. Organization: The Programmer's Pit Stop, Ann Arbor MI
  10. Lines: 59
  11.  
  12. In article <1992Nov10.170423.10311@nttor.uucp> mike@nttor.uucp (Mike Hollander) writes:
  13. >1) It is possible to backspace over the prompt.
  14.  
  15. This is either the fault of your tty driver or your shell.  If you get
  16. Bash, you will not be able to backspace over the prompt.  Or, you can
  17. get SVR4 and use the BSD extensions in the tty driver, which includes
  18. the "don't backspace over the prompt" extension.
  19.  
  20. >2) Running over past the end of the line onto the next line does not 
  21. >   allow you to backspace back to the previous line, and if you     
  22. >   backspace at the last column of a line it is possible to miss
  23. >   a character and therefore not backspace over what you think
  24. >   you are backspacing over.
  25.  
  26. Get a different shell.  Bash can implement this by scrolling the
  27. command line horizontally, instead of wrapping it to the next line.  I
  28. believe Bash also supports reverse-backspacing, but you need to make
  29. sure your terminfo definition is correctly set up to handle wrapping
  30. at column 80.
  31.  
  32. >3) It doesn't seem possible to map the arrow keys on the keyboard
  33. >   to enable you to press up arrow to get the previous command, or
  34. >   to use left arrow to move backwards through the line.
  35.  
  36. Get Bash.  It fixes this problem with ksh.
  37.  
  38. >4) It doesn't seem possible to store macros that could be run with
  39. >   a single keypress.
  40.  
  41. Dunno if Bash can handle this.  It probably can, but I haven't looked
  42. into it because I never needed it.  You can always make an alias or
  43. shell function to run frequently-used commands in one or two
  44. characters.
  45.  
  46. >5) The function keys don't do anything and cannot be made to do
  47. >   anything on the command line.
  48.  
  49. See the generic "I can't rebind my keyboard" answer.
  50.  
  51. >6) The insert and remove keys cannot be made to place you in insert
  52. >   mode or remove characters.
  53.  
  54. This is fixed by using a modeless editor, like Emacs.  I suppose you
  55. could always rebind ESC to INS and "x" to RMV, but that still doesn't
  56. fix the root of the problem.  If you use the Emacs editing mode, you
  57. won't need an "insert mode" (since you're always in insert mode), and
  58. you can just rebind delete-char to whatever your "remove" key sends.
  59.  
  60. FYI, Bash is the GNU Bourne Again Shell.  If it sounds like the be-all
  61. and end-all of shells, well, it is.  (Or at least I think so.  Please,
  62. I don't really want to get into a my-shell-is-better-than-your-shell
  63. flame war...)  It is available from a GNU archive site near you, or
  64. you can get it from prep.ai.mit.edu:/pub/gnu/bash-1.12.tar.Z.
  65.  
  66. -- 
  67. Marc Unangst, N8VRH         | "There are two ways to solve this problem:
  68. mju@mudos.ann-arbor.mi.us   | the hard way, and the easy way.  Let's start
  69.                             | with the hard way."
  70.                             |   - W. Scheider, from a Physics lecture
  71.