Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!zehntel!hplabs!sri-unix!buck@NRL-CSS.ARPA From: buck@NRL-CSS.ARPA Newsgroups: net.unix-wizards Subject: Emacs and XON/XOFF Message-ID: <1408@sri-arpa.UUCP> Date: Thu, 28-Jun-84 18:10:49 EDT Article-I.D.: sri-arpa.1408 Posted: Thu Jun 28 18:10:49 1984 Date-Received: Sun, 1-Jul-84 05:06:07 EDT Lines: 20 From: Joe Buck If you have Gosling's Emacs (a.k.a. UniPress Emacs) for a bsd system, it's easy to modify it to use XON/XOFF (this was necessary here because we plan to use a terminal line concentrator that automatically does XON/XOFF flow control). Basically, you do the following: In dsp.c, change the switch to RAW mode to a switch to CBREAK mode. Then turn off all special characters except ^S and ^Q. I also switch to the new tty driver and set literal-next to ^\, which seems mnemonic for Unix/C types and is unused by "raw" Emacs. Now to do a search-forward, the user says ^\^S (Emacs will just see the ^S). Or he/she can bind the function (as well as quote-character and write-current-file) to any other key sequence. Don't forget to save and restore the old special characters. I don't know about distributing my mods since I'm not clear on the licensing situation. We initially got Gosling's when it was public domain, but then paid UniPress for their version. In any case, it's easy to do. -Joe