You are not logged in.
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: \026without 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_base3I'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
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
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)
Desktop screenshots :: Origami :: github
Offline
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
Did you merge the .Xresources. Just to be sure.
I tried the tabbedex plugin, and
URxvt.tabbed.no-tabbedex-keys: trueunbinds 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.
Desktop screenshots :: Origami :: github
Offline
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
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.
Desktop screenshots :: Origami :: github
Offline
Ok, I managed to get it back properly. However,
URxvt.tabbed.no-tabbedex-keys: truedoes 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_base3Do you have any suggestions?
Thank you so much for your help!
Last edited by rubik (2015-02-17 17:40:14)
Offline