You are not logged in.

#1 2015-02-14 11:11:53

rubik
Member
Registered: 2012-03-23
Posts: 104

URxvt does not recognize Ctrl-Arrow or Ctrl-v combinations

This issue is driving me crazy. Whenever I press Ctrl-Arrow the terminal just blinks! The same happens with Ctrl-v, which I don't use as often, but I wanted to see which codes were being produced when pressing Ctrl-Arrow.

I definitely know that this is a URxvt issue because XTerm works flawlessly. Using the Ctrl-v method on XTerm I can see that Ctrl-Arrow combinations produce [1;5C and [1;5D. Oddly enough, if I press Ctrl-v twice on URxvt I get ^V, but then it doesn't show me the key codes.

I even added this to my .Xresources (and did xrdb -merge .Xresources):

URxvt.keysym.Control-Up:    \033[1;5A
URxvt.keysym.Control-Down:  \033[1;5B
URxvt.keysym.Control-Left:  \033[1;5D
URxvt.keysym.Control-Right: \033[1;5C
URxvt.keysym.Control-v:         \026

without any results whatsoever... Here is my full .Xresources:

! Make Man pages colored
*VT100.colorBDMode:     true
*VT100.colorBD:         red
*VT100.colorULMode:     true
*VT100.colorUL:         cyan
*VT100.veryBoldColors:  6

URxvt.keysym.Control-Up:    \033[1;5A
URxvt.keysym.Control-Down:  \033[1;5B
URxvt.keysym.Control-Left:  \033[1;5D
URxvt.keysym.Control-Right: \033[1;5C
URxvt.keysym.Control-v:         \026

! Native transparency
URxvt.transparent: true
URxvt.shading: 23

! Set the icon
URxvt.iconFile: /usr/share/icons/gnome/256x256/apps/terminal.png

! Adjust the scrollbar
URxvt.scrollBar: false

! Adjust the geometry
URxvt.geometry: 90x37

! Keep borders
URxvt.borderLess: false

! Font and letter spacing
! I want antialiasing!!
! URxvt.font: xft:Monospace:pixelsize=13:antialias=true
URxvt.font: xft:Meslo LG M for Powerline:pixelsize=13:antialias=false
URxvt.letterSpace: -1

! Perl extensions
URxvt.perl-ext-common : default,matcher,tabbed,fullscreen
URxvt.urlLauncher     : /usr/bin/chromium
URxvt.matcher.button  : 1

! Fullscreen switch
URxvt.keysym.F11:  perl:fullscreen:switch


! Solarized color scheme for the X Window System
!
! http://ethanschoonover.com/solarized


! Common

#define S_yellow        #b58900
#define S_orange        #cb4b16
#define S_red           #dc322f
#define S_magenta       #d33682
#define S_violet        #6c71c4
#define S_blue          #268bd2
#define S_cyan          #2aa198
#define S_green         #859900


! Dark

#define S_base03        #002b36
#define S_base02        #073642
#define S_base01        #586e75
#define S_base00        #657b83
#define S_base0         #839496
#define S_base1         #93a1a1
#define S_base2         #eee8d5
#define S_base3         #fdf6e3


! Light

!#define S_base03        #fdf6e3
!#define S_base02        #eee8d5
!#define S_base01        #93a1a1
!#define S_base00        #839496
!#define S_base0         #657b83
!#define S_base1         #586e75
!#define S_base2         #073642
!#define S_base3         #002b36

*background:              S_base03
*foreground:              S_base0
*fading:                  40
*fadeColor:               S_base03
*cursorColor:             S_base1
*pointerColorBackground:  S_base01
*pointerColorForeground:  S_base1

*color0:                  S_base02
*color1:                  S_red
*color2:                  S_green
*color3:                  S_yellow
*color4:                  S_blue
*color5:                  S_magenta
*color6:                  S_cyan
*color7:                  S_base2
*color8:                  S_base03
*color9:                  S_orange
*color10:                 S_base01
*color11:                 S_base00
*color12:                 S_base0
*color13:                 S_violet
*color14:                 S_base1
*color15:                 S_base3

I'm using ZPrezto, I don't know if it is interfering or something... But, as I said, on XTerm it works well!

Last edited by rubik (2015-02-14 11:12:34)

Offline

#2 2015-02-14 11:55:13

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: URxvt does not recognize Ctrl-Arrow or Ctrl-v combinations

rubik wrote:

I'm using ZPrezto, I don't know if it is interfering or something...

I would think so -- <Ctrl>+v and <Ctrl>+<Arrow> work fine on rxvt-unicode in my system (grml-zsh-config only).

Are you declaring $TERM in any of your shell profiles?


Jin, Jîyan, Azadî

Offline

#3 2015-02-14 13:07:29

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: URxvt does not recognize Ctrl-Arrow or Ctrl-v combinations

Used the OP's .Xresources

C-left and C-right just move the tabs, as per the tabbed extension. Doesn't matter if I press them after C-v or without it.
C-v C-up produces [[1;5A and C-v C-down gives ]]1;5B.
Without the tabbed extension, C-v C-arrow give the keycodes.

C-v C-v gives me ^V

Last edited by easysid (2015-02-14 13:11:25)

Offline

#4 2015-02-15 10:47:42

rubik
Member
Registered: 2012-03-23
Posts: 104

Re: URxvt does not recognize Ctrl-Arrow or Ctrl-v combinations

Wow, I feel dumb. I had not tried with more than one tab! So actually Ctrl-Arrow is mapped to change tab, as is Shift-Arrow. Thanks!

Since the wiki suggests urxvt-tabbedex I now use that one, instead of the default tabbed. However I can't manage to unbind Ctrl-Arrow keys. As per the wiki, I set

URxvt.tabbed.no-tabbedex-keys: true

but it isn't working. I think I'll end up commenting out the relevant lines of code:
https://github.com/stepb/urxvt-tabbedex … bedex#L558

Ugly solution, but at least it'll work until I find a better solution. Any ideas?

Offline

#5 2015-02-15 12:44:26

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: URxvt does not recognize Ctrl-Arrow or Ctrl-v combinations

Did you merge the .Xresources. Just to be sure.
I tried the tabbedex plugin, and

URxvt.tabbed.no-tabbedex-keys: true

unbinds all the tabbedex keys, including the C-<arrow> .Please post your new .Xresources.

Maybe try this fork? https://github.com/mina86/urxvt-tabbedex
According to comments in AUR, this seems to be better maintained.

Offline

#6 2015-02-16 07:46:55

rubik
Member
Registered: 2012-03-23
Posts: 104

Re: URxvt does not recognize Ctrl-Arrow or Ctrl-v combinations

Damn, I screwed up.
I downloaded the file and placed it in /usr/lib/urxvt/perl but somehow it simply does not work. If I add the tabbedex plugin I lose the tab topbar. The old tabbed plugin still works though. I cannot think of why this happened!

Last edited by rubik (2015-02-16 07:47:08)

Offline

#7 2015-02-16 08:31:26

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: URxvt does not recognize Ctrl-Arrow or Ctrl-v combinations

Did you try the AUR package for the tabbedex plugin https://aur.archlinux.org/packages/urxvt-tabbedex-git/  ?
Do not simply put the file in extensions dir as it requires patching (I think) to work properly.

Offline

#8 2015-02-16 20:15:19

rubik
Member
Registered: 2012-03-23
Posts: 104

Re: URxvt does not recognize Ctrl-Arrow or Ctrl-v combinations

Ok, I managed to get it back properly. However,

URxvt.tabbed.no-tabbedex-keys: true

does not have any effect.

Here is my updated .Xresources:

! Make Man pages colored
*VT100.colorBDMode:     true
*VT100.colorBD:         red
*VT100.colorULMode:     true
*VT100.colorUL:         cyan
*VT100.veryBoldColors:  6

! Native transparency
URxvt.transparent: true
URxvt.shading: 23

! Set the icon
URxvt.iconFile: /usr/share/icons/gnome/256x256/apps/terminal.png

! Adjust the scrollbar
URxvt.scrollBar: false

! Adjust the geometry
URxvt.geometry: 90x37

! Keep borders
URxvt.borderLess: false

! Font and letter spacing
! URxvt.font: xft:Monospace:pixelsize=13:antialias=true
URxvt.font: xft:Meslo LG M for Powerline:pixelsize=13:antialias=false
URxvt.letterSpace: -1

! Perl extensions
URxvt.perl-ext-common: default,tabbedex

Urxvt.tabbed.no-tabbedex-keys: true
URxvt.keysym.Control-Up:    \033[1;5A
URxvt.keysym.Control-Down:  \033[1;5B
URxvt.keysym.Control-Left:  \033[1;5D
URxvt.keysym.Control-Right: \033[1;5C
URxvt.keysym.Control-v:     \026

! Solarized color scheme for the X Window System
!
! http://ethanschoonover.com/solarized


! Common

#define S_yellow        #b58900
#define S_orange        #cb4b16
#define S_red           #dc322f
#define S_magenta       #d33682
#define S_violet        #6c71c4
#define S_blue          #268bd2
#define S_cyan          #2aa198
#define S_green         #859900


! Dark

#define S_base03        #002b36
#define S_base02        #073642
#define S_base01        #586e75
#define S_base00        #657b83
#define S_base0         #839496
#define S_base1         #93a1a1
#define S_base2         #eee8d5
#define S_base3         #fdf6e3


! Light

!#define S_base03        #fdf6e3
!#define S_base02        #eee8d5
!#define S_base01        #93a1a1
!#define S_base00        #839496
!#define S_base0         #657b83
!#define S_base1         #586e75
!#define S_base2         #073642
!#define S_base3         #002b36

*background:              S_base03
*foreground:              S_base0
*fading:                  40
*fadeColor:               S_base03
*cursorColor:             S_base1
*pointerColorBackground:  S_base01
*pointerColorForeground:  S_base1

*color0:                  S_base02
*color1:                  S_red
*color2:                  S_green
*color3:                  S_yellow
*color4:                  S_blue
*color5:                  S_magenta
*color6:                  S_cyan
*color7:                  S_base2
*color8:                  S_base03
*color9:                  S_orange
*color10:                 S_base01
*color11:                 S_base00
*color12:                 S_base0
*color13:                 S_violet
*color14:                 S_base1
*color15:                 S_base3

Do you have any suggestions?
Thank you so much for your help!

Last edited by rubik (2015-02-17 17:40:14)

Offline

Board footer

Powered by FluxBB