[arch-general] C-> and C<- does not work in urxvt in tabbed mode - archlinux specific
i use rxvt-unicode as x terminal emulator. In tabbed mode i cannot use ctrl +left or right arrow keys to browse through words in history. i.e commands which take a long argument previously i was using fedora 10. i had asked this question in rxvt-unicode mailing list http://lists.schmorp.de/pipermail/rxvt-unicode/2009q2/001019.html and the solution described there worked in fedora 10. I also tested this on ubuntu 9.10 and it worked. In both cases the rxvt-unicode package was the same -9.06 but the above hack does not work in archlinux. Instead i find that i have to use alt key instead of ctrl key to achieve the purpose. It becomes annoying as the ctrl+arrow keys are used for the same purpose on console and any other terminal emulator as i use terminator often and i have to adjust based on circumstances. i took a look at PKGBUILD of rxvt-unicode and there is nothing that could point to this anomaly. so my question is this behaviour a bug or feature in archlinux ?
On Sat, Aug 8, 2009 at 13:56, Partha Chowdhury<kira.laucas@gmail.com> wrote:
i use rxvt-unicode as x terminal emulator. In tabbed mode i cannot use ctrl +left or right arrow keys to browse through words in history. i.e commands which take a long argument I can't use these combos in any mode. Is there anything you have to do to get it set up for non-tabbed mode?
On Sun, Aug 09, 2009 at 08:47:35PM -0400, Daenyth Blank wrote:
On Sat, Aug 8, 2009 at 13:56, Partha Chowdhury<kira.laucas@gmail.com> wrote:
i use rxvt-unicode as x terminal emulator. In tabbed mode i cannot use ctrl +left or right arrow keys to browse through words in history. i.e commands which take a long argument I can't use these combos in any mode. Is there anything you have to do to get it set up for non-tabbed mode?
you have to use alt+arrow keys instead of ctrl key.
On Mon, Aug 10, 2009 at 02:23, Partha Chowdhury<kira.laucas@gmail.com> wrote:
you have to use alt+arrow keys instead of ctrl key.
There's no way to set it to use ctrl? Hmm, how odd... It works on ubuntu, but I can't figure out why.
On Mon, Aug 10, 2009 at 9:11 AM, Daenyth Blank<daenyth+arch@gmail.com> wrote:
On Mon, Aug 10, 2009 at 02:23, Partha Chowdhury<kira.laucas@gmail.com> wrote:
you have to use alt+arrow keys instead of ctrl key.
There's no way to set it to use ctrl? Hmm, how odd... It works on ubuntu, but I can't figure out why.
Might be related to inputrc. Can you compare /etc/inputrc on both platforms? What does C-v,C-left and C-v,C-right output in bash on each platform?
On Mon, Aug 10, 2009 at 11:37 AM, Aaron Griffin<aaronmgriffin@gmail.com> wrote:
On Mon, Aug 10, 2009 at 9:11 AM, Daenyth Blank<daenyth+arch@gmail.com> wrote:
On Mon, Aug 10, 2009 at 02:23, Partha Chowdhury<kira.laucas@gmail.com> wrote:
you have to use alt+arrow keys instead of ctrl key.
There's no way to set it to use ctrl? Hmm, how odd... It works on ubuntu, but I can't figure out why.
Might be related to inputrc. Can you compare /etc/inputrc on both platforms? What does C-v,C-left and C-v,C-right output in bash on each platform?
Good catch Aaron, http://pastebin.com/f503c51a there is a default initrc from an ubuntu server install Cheers -- Angel Velásquez angvp @ irc.freenode.net Linux Counter: #359909
2009/8/10 Angel Velásquez <angvp@archlinux.com.ve>:
On Mon, Aug 10, 2009 at 11:37 AM, Aaron Griffin<aaronmgriffin@gmail.com> wrote:
On Mon, Aug 10, 2009 at 9:11 AM, Daenyth Blank<daenyth+arch@gmail.com> wrote:
On Mon, Aug 10, 2009 at 02:23, Partha Chowdhury<kira.laucas@gmail.com> wrote:
you have to use alt+arrow keys instead of ctrl key.
There's no way to set it to use ctrl? Hmm, how odd... It works on ubuntu, but I can't figure out why.
Might be related to inputrc. Can you compare /etc/inputrc on both platforms? What does C-v,C-left and C-v,C-right output in bash on each platform?
Good catch Aaron,
http://pastebin.com/f503c51a there is a default initrc from an ubuntu server install
# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving "\e[1;5C": forward-word "\e[1;5D": backward-word "\e[5C": forward-word "\e[5D": backward-word "\e\e[C": forward-word "\e\e[D": backward-word So this has nothing to do with urxvt or any other terminal. Ubuntu adds these keypresses in globally in the system. If you like these, you can stick them in ~/.inputrc for your user account. It works for any app using readline.
On Mon, Aug 10, 2009 at 12:24, Aaron Griffin<aaronmgriffin@gmail.com> wrote:
If you like these, you can stick them in ~/.inputrc for your user account. It works for any app using readline.
I added those to my ~/.inputrc, but it's still not working. Is there anything I have to do aside from opening a new terminal?
On Mon, Aug 10, 2009 at 12:58 PM, Daenyth Blank<daenyth+arch@gmail.com> wrote:
On Mon, Aug 10, 2009 at 12:24, Aaron Griffin<aaronmgriffin@gmail.com> wrote:
If you like these, you can stick them in ~/.inputrc for your user account. It works for any app using readline.
I added those to my ~/.inputrc, but it's still not working. Is there anything I have to do aside from opening a new terminal?
Actually, I just noticed these are in our stock /etc/inputrc too "\e[5C": forward-word "\e[5D": backward-word "\e\e[C": forward-word "\e\e[D": backward-word "\e[1;5C": forward-word "\e[1;5D": backward-word So I have a suspicion that my guess was wrong. You aren't using vi mode in bash, are you?
On Mon, Aug 10, 2009 at 14:16, Aaron Griffin<aaronmgriffin@gmail.com> wrote:
So I have a suspicion that my guess was wrong. You aren't using vi mode in bash, are you?
Nope
On Mon, Aug 10, 2009 at 02:32:40PM -0400, Daenyth Blank wrote:
On Mon, Aug 10, 2009 at 14:16, Aaron Griffin<aaronmgriffin@gmail.com> wrote:
So I have a suspicion that my guess was wrong. You aren't using vi mode in bash, are you?
Nope In zsh , I have this in ~/.zshrc : bindkey "\e[1;5C" forward-word bindkey "\e[1;5D" backward-word
Isn't there a bash equivalent ?
On Mon, Aug 10, 2009 at 2:37 PM, <Nezmer@allurelinux.org> wrote:
On Mon, Aug 10, 2009 at 02:32:40PM -0400, Daenyth Blank wrote:
On Mon, Aug 10, 2009 at 14:16, Aaron Griffin<aaronmgriffin@gmail.com> wrote:
So I have a suspicion that my guess was wrong. You aren't using vi mode in bash, are you?
Nope In zsh , I have this in ~/.zshrc : bindkey "\e[1;5C" forward-word bindkey "\e[1;5D" backward-word
Isn't there a bash equivalent ?
Yeah, the equivalent is the inputrc stuff that was in a previous reply
On Mon-2009/08/10-19:58 Daenyth Blank wrote:
On Mon, Aug 10, 2009 at 12:24, Aaron Griffin wrote:
If you like these, you can stick them in ~/.inputrc for your user account. It works for any app using readline.
I added those to my ~/.inputrc, but it's still not working. Is there anything I have to do aside from opening a new terminal?
Of course you have to find out which keys to bind in the first place, and if they are rebound some place else. Do "cat<LINEFEED>" and type the keys you want, they should display as "funny" strings. "^[" is an escape, readline wants "\e" or "\M" or "Meta" for that. "man 3 readline". clemens
On Mon, Aug 10, 2009 at 5:15 PM, clemens fischer<ino-news@spotteswoode.dnsalias.org> wrote:
On Mon-2009/08/10-19:58 Daenyth Blank wrote:
On Mon, Aug 10, 2009 at 12:24, Aaron Griffin wrote:
If you like these, you can stick them in ~/.inputrc for your user account. It works for any app using readline.
I added those to my ~/.inputrc, but it's still not working. Is there anything I have to do aside from opening a new terminal?
Of course you have to find out which keys to bind in the first place, and if they are rebound some place else.
Do "cat<LINEFEED>" and type the keys you want, they should display as "funny" strings. "^[" is an escape, readline wants "\e" or "\M" or "Meta" for that. "man 3 readline".
C-v also works in bash to echo the exact keypress. So C-v,C-left and C-v,C-right will give you the right keypresses
On Mon, Aug 10, 2009 at 01:58:48PM -0400, Daenyth Blank wrote:
On Mon, Aug 10, 2009 at 12:24, Aaron Griffin<aaronmgriffin@gmail.com> wrote:
If you like these, you can stick them in ~/.inputrc for your user account. It works for any app using readline.
I added those to my ~/.inputrc, but it's still not working. Is there anything I have to do aside from opening a new terminal? adding
"\eOc": forward-word "\eOd": backward-word to /etc/inputrc solved it. Thank you everyone who helped.you guys make the archlinux community fantastic and friendly.
you can also just use the left and right arrows keys to move the insertion point to the correct location in the command. On Sat, Aug 8, 2009 at 12:56 PM, Partha Chowdhury <kira.laucas@gmail.com>wrote:
i use rxvt-unicode as x terminal emulator. In tabbed mode i cannot use ctrl +left or right arrow keys to browse through words in history. i.e commands which take a long argument
previously i was using fedora 10. i had asked this question in rxvt-unicode mailing list http://lists.schmorp.de/pipermail/rxvt-unicode/2009q2/001019.html
and the solution described there worked in fedora 10. I also tested this on ubuntu 9.10 and it worked. In both cases the rxvt-unicode package was the same -9.06
but the above hack does not work in archlinux. Instead i find that i have to use alt key instead of ctrl key to achieve the purpose. It becomes annoying as the ctrl+arrow keys are used for the same purpose on console and any other terminal emulator as i use terminator often and i have to adjust based on circumstances.
i took a look at PKGBUILD of rxvt-unicode and there is nothing that could point to this anomaly. so my question is this behaviour a bug or feature in archlinux ?
participants (7)
-
Aaron Griffin
-
Angel Velásquez
-
clemens fischer
-
Daenyth Blank
-
Jeffrey Lynn Parke Jr.
-
Nezmer@allurelinux.org
-
Partha Chowdhury