all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Function keys, keymap issue, over SSH terminal session
@ 2005-03-22  4:45 Todd H.
  2005-03-23 17:08 ` Johan Bockgård
  0 siblings, 1 reply; 2+ messages in thread
From: Todd H. @ 2005-03-22  4:45 UTC (permalink / raw)



Greetings, 

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).

The trouble is, The F11 and F12 (and the rest of the F keys actually)
don't appear to be properly mapping, so my .emacs entries such as:

       (global-set-key [f11] 'gnus)
       (global-set-key [f12] 'vm)

Aren't working. 

Now the same .emacs, same SecureCRT profile didn't have this problem
on a RedHat system running Emacs 20.6.1, but this Debian system
running 21.3.1 seems to be quite a bit different in the keymapping
dept. 

Any utilities I can run to figure this out, and what if any mapping do
I need to do, and where (in .emacs ? 

-- 
Todd H.
http://www.toddh.net/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Function keys, keymap issue, over SSH terminal session
  2005-03-22  4:45 Function keys, keymap issue, over SSH terminal session Todd H.
@ 2005-03-23 17:08 ` Johan Bockgård
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Bockgård @ 2005-03-23 17:08 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-23 17:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-22  4:45 Function keys, keymap issue, over SSH terminal session Todd H.
2005-03-23 17:08 ` Johan Bockgård

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.