From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Fredrik Staxeng Newsgroups: gmane.emacs.help Subject: Re: S-up and emacs -nw? Date: 20 Oct 2002 19:10:10 +0200 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <1m1y6l3ukt.fsf@Tempo.Update.UU.SE> References: <5lvg46caga.fsf@rum.cs.yale.edu> <5lr8etd5lk.fsf@rum.cs.yale.edu> <1mfzv2craa.fsf@Tempo.Update.UU.SE> <1melal47d5.fsf@Tempo.Update.UU.SE> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035134243 21722 80.91.224.249 (20 Oct 2002 17:17:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 17:17:23 +0000 (UTC) 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 183JhZ-0005eC-00 for ; Sun, 20 Oct 2002 19:17:21 +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 183JgY-00088X-00; Sun, 20 Oct 2002 13:16:18 -0400 Original-Newsgroups: gnu.emacs.help Original-Lines: 39 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 Original-NNTP-Posting-Host: news.update.uu.se Original-X-Trace: puffinus.its.uu.se 1035133092 news.update.uu.se (20 Oct 2002 18:58:12 +0100) Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.bredband.com!bredband!news01.chello.se!newsfeed1.telenordia.se!algonet!newsfeed.sunet.se!news01.sunet.se!puffinus.its.uu.se Original-Xref: shelby.stanford.edu gnu.emacs.help:106225 Original-To: help-gnu-emacs@gnu.org 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:2773 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2773 "Joe Casadonte" writes: >Fredrik, > >On 20 Oct 2002, Fredrik Staxeng wrote: > >> Then your are halfway there. Now you just need to assign a function >> to f14. Use define-key or global-set-key as appropriate. They >> keys that Emacs does not see at all, or see as another key, need >> to be changed using loadkeys. > >I'm almost there. If: > >1) the kernel knows that UP is "[A" >2) I teach the kernel (via loadkeys) that Shift-Up is "[a" >3) Emacs knows that is bound to `previous-line-nomark' and > is bound to `previous-line-mark' > >How do I get Emacs to recognize "[a" as , so that I don't >have to do some crazy conditional keybindings? Should I use >`keyboard-translate' for that? If so, how would I represent "[a" >as a character? Crazy conditional keybindings is probably an equivalent amount of work, unless you need to do mode-specific bindings. But the see the files in the subdirectory term of your lisp directory. It seems that you can do things like (define-key function-key-map "\e[161q" [S-up]) If you run debian, you need to install the emacs21-el package to get the lisp source files. There seems to be a sizeable number of people still running in tty mode. I guess about 1% of those run on actual terminals, the rest are runnning various terminal emulators. -- Fredrik Stax\"ang | rot13: sfgk@hcqngr.hh.fr