From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: can't global-set-key in emacs -nw Date: Sun, 01 Feb 2004 16:56:25 GMT Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1075655161 15122 80.91.224.253 (1 Feb 2004 17:06:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2004 17:06:01 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 01 18:05:54 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AnL2f-0000Qx-00 for ; Sun, 01 Feb 2004 18:05:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AnL1J-0000Mm-QX for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Feb 2004 12:04:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1075654585 132.204.24.84 (Sun, 01 Feb 2004 11:56:25 EST) Original-NNTP-Posting-Date: Sun, 01 Feb 2004 11:56:25 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:120614 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor 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 Xref: main.gmane.org gmane.emacs.help:16561 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16561 > using xterm or aterm i can't set any keys using the shift key. for > example > (global-set-key [(shift right)] "\C-e") > won't do anything in aterm. in xterm it inserts 2C. First, you need to make sure your terminal sends some useful byte-sequence when you press those keys. Most terminal emulators send the same sequence for shirt-right than for right, so Emacs simply can't tell the difference. Once your terminal emulator is properly configured you need to tell Emacs what that seuqnce is by appropriate (define-key function-key-map ...) calls. See lisp/term/xterm.el for some default settings used if your terminal is xterm. The same terminal emulator may send different sequences depending on the configuration, so there's no standard sadly. > resetting the home, end keys doesn't work, and backspace starts help > in aterm. it's fine in xterm. I.e. in your xterm, the backspace key sends code 127 (aka C-?) whereas in your aterm it sends code 8 (aka C-h). Fix your aterm config. > finally the mouse doesn't work. M-x xterm-mouse-mode might help. I don't know if aterm supports this xterm-specific extension. Stefan