Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!swidir.switch.ch!scsing.switch.ch!news.belwue.de!News.Uni-Marburg.DE!news.th-darmstadt.de!fauern!news.tu-chemnitz.de!irz401!uriah.heep!not-for-mail From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: FreeBSD routing Date: 26 Sep 1995 22:12:39 +0100 Organization: Private FreeBSD site, Dresden. Lines: 49 Message-ID: <449qc7$hrj@uriah.heep.sax.de> References: <GILHAM.95Sep20094636@lily.csl.sri.com> <43v8si$cb0@uriah.heep.sax.de> <GILHAM.95Sep25102544@lily.csl.sri.com> NNTP-Posting-Host: uriah.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Fred Gilham <gilham@lily.csl.sri.com> wrote: >The major problem I'm having at this point is getting the meta key to >do the right thing under all circumstances. At first I found that I >had to set the PCVT-META-ESC (or whatever it's called) option in the >kernel to change the meta key from setting the 8th bit to sending an >escape in order to get both emacs and tcsh to work right. This didn't >make any sense to me, since tcsh worked OK without this option, and I >thought emacs was supposed to treat the 8th bit as the meta bit. But >when I rlogin to the box, I have the same problem as before---the >high bit apparently is seen with tcsh but ignored with emacs. Well, the Meta-ESC stuff is needed for people like me (my name is Jörg) who don't consider the 8th bit "meta". :-) They wish to distinguish between characters with the 8th bit set (e.g. an "ö") and something like M-d to delete a word in emacs/tcsh. Both, tcsh and emacs will always handle ESC-k as M-k. For tcsh, the handling of characters with the 8th bit set depends on the locale, while emacs handles this with the function set-input-mode. Try C-h f set-input-mode for an explanation. I'm using the following in my site-start.el: (defvar toggle-input-mode-8-bits nil) (defun toggle-input-mode () "Toggles input mode between 8th bit used as META (default), and 8th bit interpreted for ISO-8859-1 character set." (interactive) (cond (toggle-input-mode-8-bits (setq toggle-input-mode-8-bits nil) (message "8th bit of input is META") (set-input-mode (car (current-input-mode)) (nth 1 (current-input-mode)) t)) (t (setq toggle-input-mode-8-bits t) (message "8th bit of input used for ISO-8859-1 characters") (set-input-mode (car (current-input-mode)) (nth 1 (current-input-mode)) 0)))) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)