Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site watcgl.UUCP Path: utzoo!watmath!watcgl!dmmartindale From: dmmartindale@watcgl.UUCP (Dave Martindale) Newsgroups: net.bugs.4bsd Subject: Re: Stupid MORE breaks on a rubout key when it should not Message-ID: <1008@watcgl.UUCP> Date: Thu, 27-Oct-83 13:32:53 EDT Article-I.D.: watcgl.1008 Posted: Thu Oct 27 13:32:53 1983 Date-Received: Sat, 29-Oct-83 00:30:11 EDT References: <1667@gatech.UUCP> Organization: U of Waterloo, Ontario Lines: 14 More has the character RUBOUT compiled into it as one of the cases in a switch statement. The code is prettier this way than if an IF was used to check against your current interrupt character, but is thus braindamaged. Lesson to all programmers: avoid compiling things like RUBOUT as the interrupt character into your program if it in fact can be changed by the user. Vi suffers from a related problem: if one of your arrow keys transmits ^Z, you can't use it and still be able to suspend your program, even if you reassign your suspend character. The reason is that ^Z is compiled in (a case of a switch again) as the suspend character, and if you pick another suspend character vi will arrange to map it to ^Z internally, which means that you can't map the ^Z from the arrow key into one of hjkl because that would remap the suspend character too.