Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!usc!wuarchive!uunet!bria!mike From: mike@bria.AIX (Mike Stefanik/78125) Newsgroups: comp.unix.xenix.sco Subject: Re: Non-destructive backspace Summary: Use /etc/gettydefs instead of /etc/profile to set echo erase Message-ID: <285@bria.AIX> Date: 30 Dec 90 05:19:56 GMT References: <1990Dec6.190656.5866@athena.cs.uga.edu> <4443@sactoh0.SAC.CA.US> <2547@sixhub.UUCP> Organization: Briareus Corporation, Los Angeles, CA Lines: 23 In article <2547@sixhub.UUCP>, davidsen@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!"