Path: utzoo!attcan!uunet!nuchat!sugar!ficc!peter From: peter@ficc.UUCP (Peter da Silva) Newsgroups: comp.unix.wizards Subject: Re: Kernel Hacks & Weird Filenames Message-ID: <793@.UUCP> Date: 18 May 88 17:37:30 GMT References: <13041@brl-adm.ARPA> <14020039@hpisod2.HP.COM> <326@augean.OZ> <56@lazlo.UUCP> Organization: SCADA Lines: 36 In article <56@lazlo.UUCP>, ccs@lazlo.UUCP writes: > In article <326@augean.OZ> idall@augean.OZ (Ian Dall) writes: > :If done in the terminal driver, new stty options could be added to say > :what characters are to be considered unprintable. You would also have to provide a reverse mapping (a-la lcase) that let you do this: % ls foo* foo^G^?bar % rm foo^G^?bar and have it work right. > Many things > would break if you put the stuff in the kernel tty driver, let's leave > it in the "ls" or "cat" command... The easy solution is to have this stuff active on line discipline 1 or something (if your system is already using 1). The best way to do this in general would be to have a couple of mapping tables (yes, in the tty driver!) that allowed you to map arbitrary strings. I believe Microport already does this... How's this for a fantasy... % stty -map lcase # clear lcase/ucase default map % stty map cntrl # set control character map % stty mapi '^[[K' '^U' # map CEOL to kill on input % stty mapo '^U' '^M^[[K' # map kill character to CR plus erase line % stty mapo '^H' '^H ^H' # map erase character to BS-space-BS I'm sure we can beat the TOPS-20 terminal driver if we REALLY try :->. -- -- Peter da Silva, Ferranti International Controls Corporation. -- Phone: 713-274-5180. Remote UUCP: uunet!nuchat!sugar!peter.