help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Function keys, keymap issue, over SSH terminal session


From: Johan Bockgård
Subject: Re: Function keys, keymap issue, over SSH terminal session
Date: Wed, 23 Mar 2005 18:08:10 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (usg-unix-v)

comphelp@toddh.net (Todd H.) writes:

> I'm running emacs over an ssh session. No X, just a plain ole text
> terminal (so any solutions involving xmodmap aren't applicable, I
> don't think?? dunno). I'm connecting to a Debian box using
> TERM=VT220 and a matching VT220 emulation in SecureCRT (a very very
> nice windows SSH client that's typically quite emacs friendly).
[...]
> Any utilities I can run to figure this out, and what if any mapping do
> I need to do, and where (in .emacs ? 

Emacs should load the library in lisp/term/ corresponding to your
terminal (see Terminal-Specific Initialization:
http://www.gnu.org/software/emacs/elisp-manual/html_node/elisp_681.html).

That said, you can find out what character sequence a function key
sends by typing C-q <key>

    e.g. C-q <f1>  =>  ^[OP  (that is ESC O P)

and make Emacs recognize it as a function key with

    (define-key function-key-map "\eOP" [f1])

-- 
Johan Bockgård


reply via email to

[Prev in Thread] Current Thread [Next in Thread]