From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.help Subject: Re: S-up and emacs -nw? Date: Mon, 14 Oct 2002 17:08:03 +0200 Organization: Mivtach-Simon Insurance agencies Sender: help-gnu-emacs-admin@gnu.org Message-ID: <200210141508.g9EF83KQ013103@beta> References: <5lvg46caga.fsf@rum.cs.yale.edu> <5lr8etd5lk.fsf@rum.cs.yale.edu> Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-8 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1034608260 11887 127.0.0.1 (14 Oct 2002 15:11:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 14 Oct 2002 15:11:00 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1816rx-00035Q-00 for ; Mon, 14 Oct 2002 17:10:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 1816rH-000506-00; Mon, 14 Oct 2002 11:10:16 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 1816qE-0004hl-00 for help-gnu-emacs@gnu.org; Mon, 14 Oct 2002 11:09:10 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 1816qB-0004hU-00 for help-gnu-emacs@gnu.org; Mon, 14 Oct 2002 11:09:09 -0400 Original-Received: from user24.simonwiesel.co.il ([192.114.178.24] helo=beta) by monty-python.gnu.org with esmtp (Exim 4.10) id 1816qB-0004fz-00 for help-gnu-emacs@gnu.org; Mon, 14 Oct 2002 11:09:07 -0400 Original-Received: from beta (localhost [127.0.0.1]) by beta (8.12.5/8.12.5) with ESMTP id g9EF94cB013130; Mon, 14 Oct 2002 17:09:05 +0200 Original-Received: (from ehud@localhost) by beta (8.12.5/8.12.5/Submit) id g9EF83KQ013103; Mon, 14 Oct 2002 17:08:03 +0200 X-Authentication-Warning: beta: ehud set sender to ehud@unix.mvs.co.il using -f Original-To: "Joe Casadonte" In-reply-to: (message from Joe Casadonte on 14 Oct 2002 09:45:19 -0400) X-Mailer: Emacs 21.2.1 rmail (send-msg 1.106) Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2586 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2586 On 14 Oct 2002 09:45:19 -0400, Joe Casadonte wrote: > > My apologies. I'm not at the box, but I tried this with the Debian > console (not sure the default terminal type) and with a cygwin > terminal window. X is not an option for me; console only. > > My cygwin termcap entry reads: > > cygwin:\ > :xn@:op=\E[39;49m:Km=\E[M:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:tc=linux: > > Which unfortunately means next to nothing to me. Thanks! Bellow is a fuller cygwin termcap entry. You can also use rxvt (which is an xterm emulation), it is included with the Cygwin net installer. I think that the terminal type for the Debian console is `linux' (it is for the RedHat distribution). Of these 3 terminal only `rxvt' generate different keys for the shifted key (up is \e[A and S-up is \e[a). The termcap entry has the definition of the up key only. The emacs distributed xterm.el has only the `up' key definition but you can define the shifted up like this: (define-key function-key-map "\e[a" [S-up]) Ehud. Ernie Boyd (old, but working) cygwin termcap entry: # Use this for cygwin (tested with version 1.1.0). # I've combined pcansi and linux. Some values of course were different and # I've indicated which of these were and which I used. # Cheers, earnie_boyd@yahoo.com # several changes based on running with tack and comparing with older entry -TD # (untranslatable capabilities removed to fit entry within 1023 bytes) # (sgr removed to fit entry within 1023 bytes) # (acsc removed to fit entry within 1023 bytes) cygwin|ansi emulation for Cygwin:\ :am:eo:in:ms:xo:\ :Co#8:NC#3:co#80:it#8:li#25:pa#64:\ :&7=^Z:@7=\E[4~:AB=\E[4%dm:AF=\E[3%dm:AL=\E[%dL:DC=\E[%dP:\ :DL=\E[%dM:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:\ :F5=\E[28~:F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:\ :FA=\E[34~:IC=\E[%d@:S2=\E[11m:S3=\E[10m:al=\E[L:bl=^G:\ :cb=\E[1K:cd=\E[J:ce=\E[K:ch=\E[%i%dG:cl=\E[H\E[J:\ :cm=\E[%i%d;%dH:cr=^M:cv=\E[%i%dd:dc=\E[P:dl=\E[M:do=\E[B:\ :ei=\E[4l:ho=\E[H:ic=\E[@:im=\E[4h:k1=\E[[A:k2=\E[[B:\ :k3=\E[[C:k4=\E[[D:k5=\E[[E:k6=\E[17~:k7=\E[18~:k8=\E[19~:\ :k9=\E[20~:k;=\E[21~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:\ :kb=^H:kd=\E[B:kh=\E[1~:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:\ :md=\E[1m:me=\E[0;10m:mk=\E[8m:mr=\E[7m:nd=\E[C:nw=^M^J:\ :op=\E[39;49m:r1=\Ec\E]R:rc=\E8:sc=\E7:se=\E[27m:sf=^J:\ :so=\E[7m:sr=\EM:st=\EH:ta=^I:u6=\E[%i%d;%dR:u7=\E[6n:\ :u9=\E[c:ue=\E[24m:up=\E[A:us=\E[4m: -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ mailto:ehud@unix.mvs.co.il Better Safe Than Sorry