You are not logged in.

#1 2011-07-30 05:06:16

awayand
Member
Registered: 2009-09-25
Posts: 398

[SOLVED] urxvt "~" tilda/tilde not possible

I am trying to type "~" in urxvt but it simply won't show. Using vte it works fine. I also noticed it won't work in xterm either. Any solutions?

Last edited by awayand (2011-09-18 03:06:53)

Offline

#2 2011-07-30 06:38:33

mjdwitt
Member
From: Indiana University, USA
Registered: 2011-02-14
Posts: 27
Website

Re: [SOLVED] urxvt "~" tilda/tilde not possible

It works just fine in my urxvt.  Does it work in any of your other programs?

Offline

#3 2011-07-30 07:09:54

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: [SOLVED] urxvt "~" tilda/tilde not possible

yes, as I said in vte it works fine. It also works in firefox, gvim, etc...

Offline

#4 2011-07-30 08:07:37

Varg
Member
From: Belgium
Registered: 2010-07-07
Posts: 272

Re: [SOLVED] urxvt "~" tilda/tilde not possible

I think that it's a know bug with urxvt. It happens when the mouse isn't inside the window.

Offline

#5 2011-07-30 08:20:55

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: [SOLVED] urxvt "~" tilda/tilde not possible

I just tried typing ~ with the mouse inside the window but it won't work. Could it be window manager related? I am using dwm...

Offline

#6 2011-07-30 13:47:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] urxvt "~" tilda/tilde not possible

Use 'xev' or some similar tool to get a better look at your '~' key. Are you using it in some key combo or shortcut?

Last edited by karol (2011-07-30 13:48:32)

Offline

#7 2011-08-02 15:34:14

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: [SOLVED] urxvt "~" tilda/tilde not possible

not sure what you mean by "get a better look", I tried xev and it does register/show the "~" key. However, it still won't show in urxvt nor xterm...

Offline

#8 2011-08-02 15:58:25

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [SOLVED] urxvt "~" tilda/tilde not possible

Does it work if you paste it?

Are you using a different shell in vte?

Offline

#9 2011-08-02 16:30:25

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: [SOLVED] urxvt "~" tilda/tilde not possible

yes, it does work when I paste. I am using bash in vte (actually tilda, which uses vte). I also just noticed after googling lots and finding articles on the ubuntu forums, that my compose key (the right windows key I guess, next to my right "alt gr" key on my German keyboard does indeed output a tilda, but it's not really what I want, I want things to work predictably like in urxvt. Any idea where to change this?

Offline

#10 2011-08-02 16:49:27

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] urxvt "~" tilda/tilde not possible

I remember a similar issue quite some time ago which was remedied by a proper xorg.conf setup. Currently there is

Section "InputClass"
    Identifier      "Keyboard Defaults"
    MatchIsKeyboard "yes"
    Option          "XkbModel" "pc105"
    Option        "XkbLayout" "de,ru(winkeys),in"
    Option        "XkbOptions" "grp:menu_toggle"
EndSection

All keys work quite well in urxvt. However, the dead keys require a subsequent space key press. (But I think you are accustomed to this one.)

And, yes, in case it matters, in /etc/rc.conf I have: KEYMAP="de-latin1".

Last edited by bernarcher (2011-08-02 16:54:29)


To know or not to know ...
... the questions remain forever.

Offline

#11 2011-08-03 10:00:21

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: [SOLVED] urxvt "~" tilda/tilde not possible

I tried your advice by renaming my /etc/X11/xorg.conf.d/10-keyboard.conf to 10-keyboard.conf.off and creating 11-fixtilda.conf with your config inside, then restarting X, but still no dice. I get the same behavior as described. sad

Offline

#12 2011-08-23 17:32:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] urxvt "~" tilda/tilde not possible

Offline

#13 2011-09-18 03:06:32

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: [SOLVED] urxvt "~" tilda/tilde not possible

worked like a charm, thanks, karol!

setxkbmap -variant nodeadkeys

fixed my issue. I can now use "~" in urxvt as expected.

Offline

#14 2011-10-05 18:30:51

vitoreiji
Member
Registered: 2009-09-04
Posts: 67

Re: [SOLVED] urxvt "~" tilda/tilde not possible

Question: do you use ibus? This is a known bug in that software.

Offline

#15 2011-10-06 09:27:22

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: [SOLVED] urxvt "~" tilda/tilde not possible

yes, in fact I do. thanks for the pointer, it is very helpful! I did realize I couldn't do any accents anymore, like it is needed in French for example, but I got too busy to actually research the issue. I will come back to the bug report and see what I need to do to make everything work so that I can use Japanese, French, Spanish, etc. without having to do any convoluted workarounds...
thanks again!

Offline

Board footer

Powered by FluxBB