Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ll-xn!mit-eddie!genrad!decvax!dartvax!earleh From: earleh@dartvax.UUCP (Earle R. Horton) Newsgroups: comp.emacs Subject: Re: Question/Suggestion on C-s/C-q question . . . Message-ID: <5782@dartvax.UUCP> Date: Thu, 5-Mar-87 20:56:37 EST Article-I.D.: dartvax.5782 Posted: Thu Mar 5 20:56:37 1987 Date-Received: Sun, 8-Mar-87 00:59:07 EST References: <8703042025.AA12061@ncifcrf.ncifcrf.uucp> Organization: Society for the Prevention of Cruelty to Graduate Students Lines: 38 Summary: ^^,^\ entirely possible with Macintosh In article <8703042025.AA12061@ncifcrf.ncifcrf.uucp>, randy@seismo.CSS.GOV@ncifcrf.UUCP (Randy Smith) writes: > > > Does anyone have an idea how possible/easy it would be to define a > key as a prefix for control? ... > Redefinition of C-^ and > C-\ relies on your terminal being able to produce them, and my home pc > (Macintosh) can't. Suggestions/questions/comments/flames? > > -- Randy Smith Lest anyone get the idea that the Macintosh lacks the ability to generate control characters, or is an unsatisfactory substitute for a "real" terminal in any way, allow me to correct that impression. Mr. Smith suffers from one of two possible ailments, a) inferior terminal emulator, or b) forgot to read the user's manual. In order to avoid messing around with lisp code for hours, I would recommend that you throw out your present terminal emulator and get a) MacKermit, b) uw, or c) VersaTerm. The first two are free and allow generation of any character you can think of, even eight- bit jobs. VersaTerm provides the opportunity to spend money, but has more features, although the programmer seems to have neglected eight-bit characters. uw is nice for UNIX, since you can run a server on the host that services 7 (!) pseudo ttys in separate windows on the Macintosh. Also, if you have BSD 4.3, window size changes in uw are communicated to programs running on the host (!) Also, uw encodes ^S and ^Q into two-byte sequences, which are decoded by the server and passed to emacs or whatever as ^S or ^Q. This means that when running uw, nobody can touch my ^S or ^Q but emacs! MacKermit comes with a separate utility program that allows mapping of keys to anything: strange control characters, eight-bit characters, whole sentences, anything you want, and it emulates a vt102. uw emulates a vt52, Ann Arbor Ambassador (ANSI), adm31, or tek 4012. VersaTerm does VT100, VT52, and tek 4012 (4105 in the more expensive version). I would suggest this to Mr. Smith: throw away that terminal program you are using if it can't do ^^ and ^\, and get a real one! I realize that this article has very little to do with emacs, but I don't want people to go around thinking I can't generate all the ^\'s or ^^'s I want to with my Mac!