2

When I use emacs in graphic mode, I can go to the beginning of the buffer with Ctrl+Home.

When in bash, emacs won't recognize the combination and only sees the Home.

I checked like here and, in graphic mode I get <C-home>, but in bash I get <home>.

How do I use Ctrl+Home in emacs in bash? (or any terminal: checked with guake too)


Edit

After some info from @steeldriver, I did the following test: Run $ hexdump -C followed by Ctrl+Home with the following results so far:

  • xfce4-terminal 0.6.3: ^[OH
  • Guake! 0.4.4: ^[OH
  • XTerm(297): ^[[1;5H

In xfce-terminal I changed the character encoding (Preferences\Advanced), but does not seem to work.

4
  • I'm confused - are you talking about using readline's emacs editing mode in the bash shell, or about using emacs itself in a terminal (emacs -nw)? Jul 9, 2016 at 17:17
  • @steeldriver emacs -nw
    – Luis
    Jul 9, 2016 at 17:34
  • 1
    OK so some google-fu suggests this is a "feature" of gnome-terminal: groups.google.com/forum/#!topic/gnu.emacs.help/9wH00nz0k8o however the suggested work-around (unchecking the terminal's keyboard shorcuts) doesn't seem to work for me. You should see the expected behaviour in a plain xterm. Jul 9, 2016 at 17:53
  • @steeldriver I didn't think of xterm. It works there indeed. I am working on xubuntu, my terminals are xfce4-terminal 0.6.3 and Guake! 0.4.4
    – Luis
    Jul 9, 2016 at 18:09

1 Answer 1

1

It is a bug in libvte. Is fixed in newer versions of libvte, but there are no plans to backport it to the versions currently in use.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .