New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctrl + Right Arrow/Left Arrow doesn't work in rxvt-unicode #657

Closed
etu opened this Issue Apr 11, 2013 · 10 comments

Comments

Projects
None yet
4 participants
@etu
Contributor

etu commented Apr 11, 2013

If I go to a directory in which I usualy run SVN commands and do like this:

$ svn d

It usualy displays up as:

$ svn diff www/pages/whatever.php

And is I press Ctrl+Right Arrow... I get:

$ svn dOc

And every time I press Ctrl+Right Arrow it adds "Oc" to the command. This works in other terminals I tried.

@ridiculousfish

This comment has been minimized.

Show comment
Hide comment
@ridiculousfish

ridiculousfish Apr 11, 2013

Member

Which terminal are you using? In OS X Terminal.app, control-right-arrow sends CSI 5C which is supposed to be an ANSI escape for cursor forward, but it looks like the term doesn't respect it.

Member

ridiculousfish commented Apr 11, 2013

Which terminal are you using? In OS X Terminal.app, control-right-arrow sends CSI 5C which is supposed to be an ANSI escape for cursor forward, but it looks like the term doesn't respect it.

@etu

This comment has been minimized.

Show comment
Hide comment
@etu

etu Apr 12, 2013

Contributor

I think I mentioned rxvt-unicode, or in other words urxvt.

Contributor

etu commented Apr 12, 2013

I think I mentioned rxvt-unicode, or in other words urxvt.

@nmeum

This comment has been minimized.

Show comment
Hide comment
@nmeum

nmeum Apr 22, 2013

Contributor

I experience the same issue with urxvt...

Contributor

nmeum commented Apr 22, 2013

I experience the same issue with urxvt...

@ridiculousfish

This comment has been minimized.

Show comment
Hide comment
@ridiculousfish

ridiculousfish Apr 28, 2013

Member

Googling around lands on https://bugzilla.redhat.com/show_bug.cgi?id=474110:

"rxvt-unicode supplies its own terminfo and termcap descriptions, which are not in ncurses (the problem would be in rxvt-unicode, or patches to ncurses to add the terminal description)."

Member

ridiculousfish commented Apr 28, 2013

Googling around lands on https://bugzilla.redhat.com/show_bug.cgi?id=474110:

"rxvt-unicode supplies its own terminfo and termcap descriptions, which are not in ncurses (the problem would be in rxvt-unicode, or patches to ncurses to add the terminal description)."

@ridiculousfish

This comment has been minimized.

Show comment
Hide comment
@ridiculousfish

ridiculousfish Apr 28, 2013

Member

Fixed as ab385cd
Thanks for reporting this.

Member

ridiculousfish commented Apr 28, 2013

Fixed as ab385cd
Thanks for reporting this.

@etu

This comment has been minimized.

Show comment
Hide comment
@etu

etu Apr 29, 2013

Contributor

Works perfectly! Thanks!

Contributor

etu commented Apr 29, 2013

Works perfectly! Thanks!

@jpfairbanks

This comment has been minimized.

Show comment
Hide comment
@jpfairbanks

jpfairbanks Oct 18, 2013

I am having a similar problem using $TERM == "xterm" on Debian using fish 2.0 from the tarball

$ [A[B[C

is the result of pressing some arrow keys. The readline keys C-n C-p C-f etc. work correctly. Is there a setting that I should use to make this work? What information would be helpful?

jpfairbanks commented Oct 18, 2013

I am having a similar problem using $TERM == "xterm" on Debian using fish 2.0 from the tarball

$ [A[B[C

is the result of pressing some arrow keys. The readline keys C-n C-p C-f etc. work correctly. Is there a setting that I should use to make this work? What information would be helpful?

@ridiculousfish

This comment has been minimized.

Show comment
Hide comment
@ridiculousfish

ridiculousfish Oct 18, 2013

Member

@jpfairbanks Please do the following:

  1. Invoke 'read' from either bash or zsh
  2. While in the read prompt, press one arrow key
  3. Report on the key you pressed and what it outputs, e.g. ^[[C
  4. Repeat for the other keys that don't work.

Thanks!

Member

ridiculousfish commented Oct 18, 2013

@jpfairbanks Please do the following:

  1. Invoke 'read' from either bash or zsh
  2. While in the read prompt, press one arrow key
  3. Report on the key you pressed and what it outputs, e.g. ^[[C
  4. Repeat for the other keys that don't work.

Thanks!

@jpfairbanks

This comment has been minimized.

Show comment
Hide comment
@jpfairbanks

jpfairbanks Oct 19, 2013

When I follow these instructions on my macbook in iterm2 over SSH to debian Left Arrow Produces ^[[D. But then if I invoke fish from iterm2 the arrows work as expected. The problem was manifested in the gnome terminal on Ubuntu 12.04 ssh'ing to a debian machine. The iterm2 results are the same as terminal.app. I will check again on monday when I am in the office. Weird that the terminal emulator can affect this over ssh.

jpfairbanks commented Oct 19, 2013

When I follow these instructions on my macbook in iterm2 over SSH to debian Left Arrow Produces ^[[D. But then if I invoke fish from iterm2 the arrows work as expected. The problem was manifested in the gnome terminal on Ubuntu 12.04 ssh'ing to a debian machine. The iterm2 results are the same as terminal.app. I will check again on monday when I am in the office. Weird that the terminal emulator can affect this over ssh.

@jpfairbanks

This comment has been minimized.

Show comment
Hide comment
@jpfairbanks

jpfairbanks Oct 22, 2013

From bash i get "^[OD" but from fish I get "OD"

jpfairbanks commented Oct 22, 2013

From bash i get "^[OD" but from fish I get "OD"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment