[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C-home in virtual console for emacs and bash
From: |
Dieter Wilhelm |
Subject: |
Re: C-home in virtual console for emacs and bash |
Date: |
Mon, 04 Dec 2006 00:07:47 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) |
"Jonas Bernoulli" <jonasbernoulli@gmail.com> writes:
> hello
>
> i would like to have Control_Home and alike available in bash and
> emacs when using a virtual console just like i do in X. however there
> is no such keysymbol in the kernels keymap.
Is the effect of C-Home different to typing C-a in the console?
>
> without any modifications C-home is available in emacs but not bash.
For me both sequences are working in the same way on the virtual
console. (Gnu/Linux on Suse 10.0)
>
> in order to make it work in bash also, i added this to my keymap,
> faking the keysym as in X:
>
> string F101 = "\033[1;5H"
> control keycode 102= F101
>
> now i can use C-home in bash but not in emacs anymore :-(
You could use M-< in Emacs instead.
> when pressing C-home in emacs now instead of calling the function
> bound to C-home the characters "5H" are entered in the buffer.
...
>
> i am afraid the keysyms are hardcoded somewhere in c-code. so if
> someone could tell me where the keysyms are defined this might allow
> me to add the additional keysyms i need.
Sorry, I can't help you here.
--
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany