Path: utzoo!mnetor!uunet!husc6!think!ames!amdahl!nsc!voder!apple!dwb From: dwb@apple.UUCP (David W. Berry) Newsgroups: comp.sys.mac Subject: Re: Control key on new keyboards Message-ID: <7225@apple.UUCP> Date: 20 Jan 88 02:04:57 GMT References: <916@cadre.dsl.PITTSBURGH.EDU> <7203@apple.UUCP> <270@afit-ab.arpa> Reply-To: dwb@apple.UUCP (David W. Berry) Organization: Apple Computer Inc., Cupertino, USA Lines: 30 In article <270@afit-ab.arpa> lriggins@afit-ab.arpa (L. Maurice Riggins) writes: >In article <7203@apple.UUCP> dwb@apple.UUCP (David W. Berry) writes: >> >> I've been using 9.4 on an SE for about 9 months now. The >>control key works fine for everything except ^C, for that I have >>to use option-C. It's worked through a wide variety of system >>files and versions. BTW, I just tried it using both option and >>cloverleaf as control keys and both worked fine. > > >That's funny, in the telecomm section of Works 1.0 the SE's control-key worked >for all control keys. When they added VT100/VT52 emulation (filled with about >four pages worth of bugs) the control key works for all keys in the VT >emulation BUT NOW IN THE TTY EMULATION THE CONTROL-C DOESN'T anymore... >all the others work fine. I wonder if these problems are related? Quite likely. It's because the Enter key generates a character code of 0x03. Guess what. ^C is also 0x03. Red Ryder wants to generate line feed (0x09) for the enter key, so it changes all character codes of 0x03 to 0x09. The two can be distinguished by looking in the modifiers word to see if the control bit is on, but since the control bit didn't exist when 9.4 was written... VT100/VT52 emulation in Works probably also started trying to do Enter to Linefeed mapping. >Maurice lriggins@afit-ab.ARPA -- David W. Berry dwb@well.uucp dwb@Delphi dwb@apple.com 973-5168@408.MaBell Disclaimer: Apple doesn't even know I have an opinion and certainly wouldn't want if they did.