Non-destructive backspace

Mike Stefanik/78125 mike at bria.AIX
Sun Dec 30 16:19:56 AEST 1990


In article <2547 at sixhub.UUCP>, davidsen at sixhub.UUCP (Wm E. Davidsen Jr) writes:
>   Not a good way to do it, with the control character embedded. Instead
> the following may be used, which also avoids a problem with use of ^ in
> sh.
> 	stty erase '\^H' echoe
>   I think the key is the need for echoe.

Actually, the command that was specified (ie: stty erase "^H") is perfectly
fine; the above command will NOT work, however, because of single-quoting
and escaping the carat -- stty will scream about that one.

However, why put this in /etc/profile?  To echo backspace, simply put ECHOE
in /etc/gettydefs.  For example, for a 9600 bps terminal, you could use:

m # B9600 HUPCL # B9600 CS8 SANE HUPCL TAB3 ECHOE IXANY # \r\nlogin: # m
                                            -----
The "m" is specified in /etc/ttys, and is used to define line behaviour
when logging in.  Including an ECHOE causes erase to be echoed.

-----------------------------------------------------------------------------
Michael Stefanik, Systems Engineer (JOAT), Briareus Corporation
UUCP: ...!uunet!bria!mike
"If it was hard to code, it should be harder to use!"



More information about the Comp.unix.xenix.sco mailing list