Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!trac2000!das13!dave From: dave@das13.snide.com (Dave Snyder) Newsgroups: comp.sys.3b1 Subject: Re: tty kill char (@) problem (and how I fixed it for me) Message-ID: <1492@das13.snide.com> Date: 23 Feb 91 04:16:18 GMT References: <1991Feb15.120552.27221@uncle.uucp> Organization: Snide Inc. - Folcroft, PA Lines: 52 Well I finally deceided to take the modern approach to stty settings. According to donlash@uncle, these are the steps to do that. -> If we take the reasonably modern approach, then we must: -> -> * make erase == cntl-H and kill == cntl-U in the -> default c_cc[] array in the kernal. -> I followed the instructions for adb posted earlier by don and am including them again in my article. -> * fix the "stty ek" command so that it sets the erase -> and kill characters to their system defaults - ie -> erase == cntl-H and kill == cntl-U. -> I used a binary editor to handle this one. To "fix" stty ek... change the 0x40 at byte offset 0x06D9 to 0x15. To "fix" stty sane... change the 0x40 at byte offset 0x0759 to 0x15. -> * make tset(1) assume the modern defaults of -> erase == cntl-H and kill == cntl-U. -> I didn't touch this one. To be honest, I have know idea what tset is... let alone how to use it. Can someone share their knowledge? -> * correct the manual pages to reflect the changes. -> If I had manual pages I'd correct them, but... Here are the instructions (re-posted) for patching the kernel with adb. I can honestly say that it was a snap and I see no ill effects from the "patch". -> # adb -w /unix @ -> ttcchar,2?X v ------------------------ -> ttcchar: 7f1c0840 4000000 | note: | -> ttcchar+2?x | hex 40 == ascii @ | -> ttcchar+2: 840 | hex 15 == ascii ^u | -> ttcchar+2?w 815 | adb on 3.51m kernal | -> swpulse+1a48: 840 = 815 | reports swpulse+1b80 | -> ttcchar,2?X ------------------------ -> ttcchar: 7f1c0815 4000000 -> $q -> # sync ; sync ; sync ; sync -> # reboot Any questions, comments, or complaints can be sent to me, I'll try to help. DAS -- David A. Snyder @ Snide Inc. - Folcroft, PA UUCP: ..!uunet!das13!dave INTERNET: dave@das13.snide.com Brought to you by Super Global Mega Corp .com