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