You are not logged in.

#1 2011-06-13 18:28:49

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

~ (tilde/tilda) not working in xterm

I am trying to type "~" in xterm but it doesn't show. When I type it in the browser, I need to hit "R_ALT"+"*", followed by a SPACE to get it to show (German keyboard). Does anyone know how to fix this?

Offline

#2 2011-06-13 18:56:12

stfn
Member
Registered: 2010-02-28
Posts: 32

Re: ~ (tilde/tilda) not working in xterm

Well, tilde can also be used in combination with other characters like for example ~ and e which would result in ẽ. So in order to get the tilde character itself I simply have to hit that key twice. Are you sure that this doesn't work for you in your xterm?

Offline

#3 2011-06-13 19:12:10

Wey
Member
Registered: 2011-04-22
Posts: 217

Re: ~ (tilde/tilda) not working in xterm

What does your /etc/X11/xorg.conf.d/20-keyboard.conf look like?

$ cat /etc/X11/xorg.conf.d/20-keyboard.conf 
Section "InputClass"
         Identifier "keyboard"
         MatchIsKeyboard "yes"
         Option "XkbLayout" "de"
         Option "XkbVariant" "nodeadkeys"
EndSection

Offline

#4 2011-06-13 20:41:02

barto
Member
From: Budapest, Hungary
Registered: 2009-10-22
Posts: 88

Re: ~ (tilde/tilda) not working in xterm

The button which is mostly used to call the mouse’s right button menu (between the right ‘Windows’ button and right Ctrl), in Xterm calls a tilde – with German layout too, at least at me. Maybe you can get accustomed to it.


“First principle, Clarice. Simplicity” – Dr. Hannibal Lecter

Offline

#5 2011-06-13 20:45:57

stfn
Member
Registered: 2010-02-28
Posts: 32

Re: ~ (tilde/tilda) not working in xterm

barto wrote:

The button which is mostly used to call the mouse’s right button menu (between the right ‘Windows’ button and right Ctrl), in Xterm calls a tilde – with German layout too, at least at me. Maybe you can get accustomed to it.

Hey that's cool, I didn't know about that trick yet. smile It seems to work just fine for my preferred terminal rxvt-unicode too.

Offline

#6 2011-06-13 21:33:38

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

Re: ~ (tilde/tilda) not working in xterm

barto wrote:

The button which is mostly used to call the mouse’s right button menu (between the right ‘Windows’ button and right Ctrl), in Xterm calls a tilde – with German layout too, at least at me. Maybe you can get accustomed to it.

Not necessarily so. I for instance did set up my keyboard for three languages (german, russian, indic) which are switched by this menu toggle key:

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

Your tilde problem may be caused by the selection of "XkbModel". It works o.k. here using AltGr+"+" followed by a space in all terminals (mainly urxvt and xterm).


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

Offline

#7 2011-06-14 11:03:38

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

Re: ~ (tilde/tilda) not working in xterm

Section "InputDevice"
        Identifier      "IntegratedKeyboard"
        Option          "CoreKeyboard"
        Option          "XkbModel" "acer_laptop" # "pc105"
        Option          "XkbLayout"     "de,us,es,jp"
#       Option          "XkbVariant"    "altgr-intl,qwerty"
        Option          "XkbRules"      "xorg"
        Driver          "kbd"
EndSection

Note I have that problem in xterm and urxvt, but not for example in firefox. Tilde (~) simply won't print in xterm and urxvt. I also noticed now that I switched from awesome to dwm, that when I hit ALT+"." in xterm I get a weird character instead of the usual last argument of the last command. However, in urxvt the ALT+"." works fine. I am a little lost as to how to troubleshoot these key assignment issues... Any ideas or pointers are most welcome!

Offline

Board footer

Powered by FluxBB