* [help] emacs on gnome-terminal
@ 2007-07-23 13:06 Takehiko Abe
2007-07-23 13:50 ` poppyer
0 siblings, 1 reply; 10+ messages in thread
From: Takehiko Abe @ 2007-07-23 13:06 UTC (permalink / raw)
To: help-gnu-emacs
emacs on gnome-terminal (on debian testing and ubuntu
feisty) gives me ";5C" and ";5D" for control-right and
control-left. Rxvt-unicode does not have this problem.
I have no clue what I should do. I want to bind control-right
and control-left to forward-sexp and backward-sexp.
Thanks for your help.
T.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [help] emacs on gnome-terminal
2007-07-23 13:06 [help] emacs on gnome-terminal Takehiko Abe
@ 2007-07-23 13:50 ` poppyer
2007-07-23 14:33 ` Takehiko Abe
0 siblings, 1 reply; 10+ messages in thread
From: poppyer @ 2007-07-23 13:50 UTC (permalink / raw)
To: help-gnu-emacs
Takehiko Abe <keke@gol.com> writes:
> emacs on gnome-terminal (on debian testing and ubuntu
> feisty) gives me ";5C" and ";5D" for control-right and
> control-left. Rxvt-unicode does not have this problem.
>
> I have no clue what I should do. I want to bind control-right
> and control-left to forward-sexp and backward-sexp.
Try a google "xterm-extras.el"
it will give me some clue :)
Cheers,
poppyer
>
> Thanks for your help.
> T.
--
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [help] emacs on gnome-terminal
2007-07-23 13:50 ` poppyer
@ 2007-07-23 14:33 ` Takehiko Abe
2007-07-23 14:48 ` poppyer
0 siblings, 1 reply; 10+ messages in thread
From: Takehiko Abe @ 2007-07-23 14:33 UTC (permalink / raw)
To: help-gnu-emacs
poppyer <poppyer@gmail.com> writes:
> Try a google "xterm-extras.el"
> it will give me some clue :)
Gack. That's too many define-keys for trial & error.
ok... it points to ctlseqs.ms and that in turn points
to http://www.xfree86.org/current/ctlseqs.html...
~~~~~my head is about to explode. now.
Thanks
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [help] emacs on gnome-terminal
2007-07-23 14:33 ` Takehiko Abe
@ 2007-07-23 14:48 ` poppyer
2007-07-23 15:05 ` Takehiko Abe
0 siblings, 1 reply; 10+ messages in thread
From: poppyer @ 2007-07-23 14:48 UTC (permalink / raw)
To: help-gnu-emacs
Takehiko Abe <keke@solcore.sol.net> writes:
> poppyer <poppyer@gmail.com> writes:
>
>> Try a google "xterm-extras.el"
>> it will give me some clue :)
>
> Gack. That's too many define-keys for trial & error.
no, you don't have to try.
basically you can just include everything in xterm-extras.el, and it
will take care of everything
the following is what I used in my .emacs file
(require 'xterm-extras)
(xterm-extra-keys)
Cheers,
poppyer
--
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [help] emacs on gnome-terminal
2007-07-23 14:48 ` poppyer
@ 2007-07-23 15:05 ` Takehiko Abe
2007-07-24 0:54 ` Katsumi Yamaoka
0 siblings, 1 reply; 10+ messages in thread
From: Takehiko Abe @ 2007-07-23 15:05 UTC (permalink / raw)
To: help-gnu-emacs
poppyer <poppyer@gmail.com> writes:
> no, you don't have to try.
> basically you can just include everything in xterm-extras.el, and it
> will take care of everything
> the following is what I used in my .emacs file
>
> (require 'xterm-extras)
> (xterm-extra-keys)
Ah, that's much easier. but it doesn't work unfortunately.
emacs still gives me pesky ;5D;5C;5D;5C;5D;5C;5D;5C;5D;5C.
[I tried xterm-extras without my .emacs]
will try again tomorrow.
Thanks,
T.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [help] emacs on gnome-terminal
2007-07-23 15:05 ` Takehiko Abe
@ 2007-07-24 0:54 ` Katsumi Yamaoka
2007-07-24 3:48 ` Stefan Monnier
2007-07-24 4:05 ` Takehiko Abe
0 siblings, 2 replies; 10+ messages in thread
From: Katsumi Yamaoka @ 2007-07-24 0:54 UTC (permalink / raw)
To: help-gnu-emacs
>>>>> Takehiko Abe wrote:
> emacs still gives me pesky ;5D;5C;5D;5C;5D;5C;5D;5C;5D;5C.
> [I tried xterm-extras without my .emacs]
Try the following in your ~/.emacs file:
(define-key global-map "\eO1;5A" [(control up)])
(define-key global-map "\eO1;5B" [(control down)])
(define-key global-map "\eO1;5C" [(control right)])
(define-key global-map "\eO1;5D" [(control left)])
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [help] emacs on gnome-terminal
2007-07-24 0:54 ` Katsumi Yamaoka
@ 2007-07-24 3:48 ` Stefan Monnier
2007-07-24 4:05 ` Takehiko Abe
1 sibling, 0 replies; 10+ messages in thread
From: Stefan Monnier @ 2007-07-24 3:48 UTC (permalink / raw)
To: help-gnu-emacs
>> emacs still gives me pesky ;5D;5C;5D;5C;5D;5C;5D;5C;5D;5C.
>> [I tried xterm-extras without my .emacs]
> Try the following in your ~/.emacs file:
> (define-key global-map "\eO1;5A" [(control up)])
> (define-key global-map "\eO1;5B" [(control down)])
> (define-key global-map "\eO1;5C" [(control right)])
> (define-key global-map "\eO1;5D" [(control left)])
Actually such key-mapping should not be done in global-map, but in
function-key-map:
(define-key function-key-map "\eO1;5A" [C-up])
(define-key function-key-map "\eO1;5B" [C-down])
(define-key function-key-map "\eO1;5C" [C-right])
(define-key function-key-map "\eO1;5D" [C-left])
-- Stefan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [help] emacs on gnome-terminal
2007-07-24 0:54 ` Katsumi Yamaoka
2007-07-24 3:48 ` Stefan Monnier
@ 2007-07-24 4:05 ` Takehiko Abe
2007-07-24 5:04 ` Katsumi Yamaoka
1 sibling, 1 reply; 10+ messages in thread
From: Takehiko Abe @ 2007-07-24 4:05 UTC (permalink / raw)
To: help-gnu-emacs
Katsumi Yamaoka <yamaoka@jpl.org> writes:
>> emacs still gives me pesky ;5D;5C;5D;5C;5D;5C;5D;5C;5D;5C.
>
> Try the following in your ~/.emacs file:
>
> (define-key global-map "\eO1;5A" [(control up)])
> (define-key global-map "\eO1;5B" [(control down)])
> (define-key global-map "\eO1;5C" [(control right)])
> (define-key global-map "\eO1;5D" [(control left)])
That does it. Beautiful. Thanks a lot.
I found a bug report filed against debian libvte9 [#421734].
which concerns a similar problem -- shift-arrow producing
1;2c, etc in vi. And I was about to try other terminal
emulator. I guess I don't have to.
regards,
T.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [help] emacs on gnome-terminal
2007-07-24 4:05 ` Takehiko Abe
@ 2007-07-24 5:04 ` Katsumi Yamaoka
2007-07-24 6:58 ` Takehiko Abe
0 siblings, 1 reply; 10+ messages in thread
From: Katsumi Yamaoka @ 2007-07-24 5:04 UTC (permalink / raw)
To: help-gnu-emacs
>>>>> Takehiko Abe wrote:
>> (define-key global-map "\eO1;5A" [(control up)])
>> (define-key global-map "\eO1;5B" [(control down)])
>> (define-key global-map "\eO1;5C" [(control right)])
>> (define-key global-map "\eO1;5D" [(control left)])
> That does it. Beautiful. Thanks a lot.
Please use `function-key-map' rather than `global-map' as Stefan
Monnier wrote: http://article.gmane.org/gmane.emacs.help/45908
> I found a bug report filed against debian libvte9 [#421734].
> which concerns a similar problem -- shift-arrow producing
> 1;2c, etc in vi. And I was about to try other terminal
> emulator. I guess I don't have to.
I wish there were a table of the codes for all the keys that the
gnome-terminal produces.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-07-24 6:58 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-23 13:06 [help] emacs on gnome-terminal Takehiko Abe
2007-07-23 13:50 ` poppyer
2007-07-23 14:33 ` Takehiko Abe
2007-07-23 14:48 ` poppyer
2007-07-23 15:05 ` Takehiko Abe
2007-07-24 0:54 ` Katsumi Yamaoka
2007-07-24 3:48 ` Stefan Monnier
2007-07-24 4:05 ` Takehiko Abe
2007-07-24 5:04 ` Katsumi Yamaoka
2007-07-24 6:58 ` Takehiko Abe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).