From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Charles_Davis@fws.gov Newsgroups: gmane.emacs.help Subject: Re: read-key-sequence(-vector) on Shift left/right gives[left]/[right], not [S-left]/[S-right] Date: Thu, 9 Sep 2004 07:39:33 -0400 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1094730030 26341 80.91.224.253 (9 Sep 2004 11:40:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Sep 2004 11:40:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 09 13:40:18 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C5NHl-00080q-00 for ; Thu, 09 Sep 2004 13:40:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5NN5-0005RV-OY for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Sep 2004 07:45:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C5NMp-0005Qy-Fc for help-gnu-emacs@gnu.org; Thu, 09 Sep 2004 07:45:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C5NMo-0005Qf-Jv for help-gnu-emacs@gnu.org; Thu, 09 Sep 2004 07:45:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5NMo-0005QV-HF for help-gnu-emacs@gnu.org; Thu, 09 Sep 2004 07:45:30 -0400 Original-Received: from [164.159.172.249] (helo=ifw9bct-smtp2.fws.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C5NH5-00073k-Lo for help-gnu-emacs@gnu.org; Thu, 09 Sep 2004 07:39:35 -0400 Original-Received: from fw9arlmail.irm.r9.fws.gov ([164.159.192.105]) by ifw9bct-smtp2.fws.net (Lotus Domino Release 6.5) with ESMTP id 2004090905393471-16837 ; Thu, 9 Sep 2004 05:39:34 -0600 Original-To: help-gnu-emacs@gnu.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 X-MIMETrack: Serialize by Router on FW9ARLMAIL/ARL/R9/FWS/DOI(Release 5.0.13a |April 8, 2004) at 09/09/2004 07:39:34 AM, Itemize by SMTP Server on IFW9BCT-SMTP2/FWS/DOI(Release 6.5|September 26, 2003) at 09/09/2004 05:39:34 AM, Serialize by Router on IFW9BCT-SMTP2/FWS/DOI(Release 6.5|September 26, 2003) at 09/09/2004 05:39:35 AM, Serialize complete at 09/09/2004 05:39:35 AM X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 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:20550 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20550 Kai Grossjohann wrote: > When you use a terminal, it sends escape sequences to the application > when you hit the cursor keys. Many terminals send the same escape > sequence for, say, and C- and S-. So the > application (Emacs in this case) cannot distinguish them. > These days, terminals can be configured to send different escape > sequences for these cases. Then you need to teach Emacs which escape > sequence stands for which keypress, and then you can bind these >keypresses normally. Kai I am running Emacs from a BASH shell under CYGWIN. I have tried changing the terminal type from the default "cygwin" by doing TERM= export TERM for 10-15 different terminal types. Emacs seems to notice that I have changed terminal type, for it changes the names of the keys. However, in every case, the control and shift modifiers are not noticed. Can you suggest a terminal type for which these modifiers should work? Thanks for the help. Regards, Charles Kai Grossjohann