From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hikaru Ichijyo Newsgroups: gmane.emacs.help Subject: Re: Which key combos are not possible in remote Emacs session because terminal interferes? Date: Sun, 08 Feb 2015 20:20:24 -0600 Organization: UN Spacy Message-ID: <8xxh9uvesgn.fsf@village.keycorner.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423448724 13072 80.91.229.3 (9 Feb 2015 02:25:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Feb 2015 02:25:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 09 03:25:24 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YKe2J-0006I1-Jd for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Feb 2015 03:25:19 +0100 Original-Received: from localhost ([::1]:58511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKe2I-0004N6-QJ for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Feb 2015 21:25:18 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:N0i2p4BH0WP0kZYCIraEIiQzk+Q= Original-Lines: 57 Original-NNTP-Posting-Host: 59df56dc.news.astraweb.com Original-X-Trace: DXC=6TXKIPa[heM^MAbH1]K; 0BL?0kYOcDh@J1I; RlOV List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102586 Archived-At: Bob Proulx writes: > When using a local graphical interface every key press and release is > individually available for use. Therefore any combination is > possible. Yes, true. On Linux/X11/x86, I'm able to get "Super" from the Windows key. This seems to be already preconfigured, as I didn't have to do anything to get that behavior. My convenience key bindings that I've setup with the Super key are only available when I'm in X though because of the behavior your describing. [...] > At one time the meta key set the "high" bit. ASCII is a 7-bit > encoding leaving the 8th bit available to be set. This now conflicts > with use of UTF-8 unicode and AFAIK this is no longer used anywhere by > anyone who cares about UTF-8 due to this. I do not miss it. > > Most terminals now encode the meta key as an escape sequence sending > the ESC character followed by the desired character. M-w for example > (holding down Alt on a US-PC keyboard and pressing w) will be encoded > as an ESC w two character sequence. This often needs explicit > configuration. XTerm for example needs this resource set explicitly > or it will instend send the 8-bit value yielding different results. > > XTerm*metaSendsEscape:true > > Some people undoubtedly like the 8-bit Alt key behavior. For example > it allows typing in many glyphs using the Alt key instead of the > Compose or AltGr keys using the international input methods. It is a > personal preference but I prefer to have a working meta key for emacs > and I can enter the non-ascii characters using the Compose key. I've found that on Linux, (unlike the Super/Windows key), use of Alt/Meta over SSH works transparently and as expected both in xterm windows and on the VTY console. I don't know which mechanism they're using to achieve that, "high-bit" or sending an ESC first, but it works, and I like it. I didn't have to do anything myself to configure it to act this way. > Without a working meta key they would send all M- sequences by sending > ESC explicitly first. ESC w is the same to emacs as M-w. Any C-M- > something or M-C- something sequences will be ESC followed by the C- > something character. For example C-M-r would be ESC C-r. I remember the bad old days of having to do that in a terminal program while connected by dialup modem to a machine that had Emacs on the site end. Escape-this, Escape-that...Escape play a D-minor seventh diminished guitar chord while holding down the right pedal and humming a traditional Nepalese song and waving your arms. Having a real Meta key that works over remote session is nicer. :) -- He that would make his own liberty secure must guard even his enemy from oppression; for if he violates this duty, he establishes a precedent that will reach to himself. --Thomas Paine