unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* C-home in virtual console for emacs and bash
@ 2006-12-03 22:51 Jonas Bernoulli
  2006-12-03 23:07 ` Dieter Wilhelm
  0 siblings, 1 reply; 2+ messages in thread
From: Jonas Bernoulli @ 2006-12-03 22:51 UTC (permalink / raw)


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.

without any modifications C-home is available in emacs but not bash.

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 :-(

when pressing C-home in emacs now instead of calling the function
bound to C-home the characters "5H" are entered in the buffer.

when i test with `M-x describe-key-briefly' i get "M-[ 1 : is
undefined" and "5H" is written to the current buffer again.

so currently while in a virtual console i have the choice between
having C-home available in bash or emacs

i understand this is not a emacs only problem, in fact emacs has dealt
with this limitation of the kernels but unfortunately in a way that is
not compatible with the workaround for applications like bash that
depend on readline for their key handling.

if someone has a suggestion how emacs could be thought to work with
above workaround for bash i would be very thankful.

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.

cheers
jonas

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

* Re: C-home in virtual console for emacs and bash
  2006-12-03 22:51 C-home in virtual console for emacs and bash Jonas Bernoulli
@ 2006-12-03 23:07 ` Dieter Wilhelm
  0 siblings, 0 replies; 2+ messages in thread
From: Dieter Wilhelm @ 2006-12-03 23:07 UTC (permalink / raw)
  Cc: help-gnu-emacs

"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

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

end of thread, other threads:[~2006-12-03 23:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-03 22:51 C-home in virtual console for emacs and bash Jonas Bernoulli
2006-12-03 23:07 ` Dieter Wilhelm

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