Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] xterm ALT-based navigation doesn't work?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
thelee
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2007
Posts: 132

PostPosted: Sun Mar 23, 2008 2:11 am    Post subject: [solved] xterm ALT-based navigation doesn't work? Reply with quote

So maybe xterm just doesn't support it, but I got really used to in other terminals of using ALT keys to navigate around the command prompt (like ALT-b or ALT-del), especially since emacs also used the same commands.

Using xterm now (I really wanted 256 color/unicode support and xcompmgr gives me translucency), however, the ALT-commands don't work; i end up getting international characters (like â when I try to do ALT-b). I thought this was originally because I had set my XkbLayout option in my xorg.con to "en_US" and it somehow didn't properly interpret dead keys. But after setting XkbLayout to "us" still no go, and I confirmed that this was just an xterm thing by running aterm and using the ALT-based navigation keys.

So is there like some flag I can use so xterm doesn't do this? Or will I just have to abandon the convenience of these ALT shortcuts?


Last edited by thelee on Sun Mar 23, 2008 8:19 am; edited 1 time in total
Back to top
View user's profile Send private message
thelee
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2007
Posts: 132

PostPosted: Sun Mar 23, 2008 2:13 am    Post subject: Reply with quote

as a side note, emacs also doesn't understand it (I guess the key commands are being intercepted by xterm), so I have to do the far more annoying ESCAPE-something to do META-based commands.
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Sun Mar 23, 2008 3:18 am    Post subject: Reply with quote

It is definitely very hard to believe that xterm is lacking in anything.
Please explain what exactly does ALT-b or ALT-del do? :?: :o
Back to top
View user's profile Send private message
thelee
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2007
Posts: 132

PostPosted: Sun Mar 23, 2008 7:42 am    Post subject: Reply with quote

notHerbert wrote:
It is definitely very hard to believe that xterm is lacking in anything.
Please explain what exactly does ALT-b or ALT-del do? :?: :o


So, if you're at the command prompt, CTRL-b and CTRL-f help you navigate back and forth a character at a time. CTRL-a takes you to the start of the line, CTRL-e to the end. If you do ALT, theroetically, ALT-b and ALT-f will operate a "word" at a time (generally characters delimited either by whitespace, a / or some other accepted delimiter), and ALT-backspace will delete a "word" at a time. Very handy to use because, at least for my heavy command-line usage, I can really ramp up my productivity when chaining together lots of commands and just leap back and forth and delete huge blocks really quickly.

Instead I just get international characters :cry:
Back to top
View user's profile Send private message
thelee
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2007
Posts: 132

PostPosted: Sun Mar 23, 2008 8:20 am    Post subject: Reply with quote

ah geez, i must be the only person who does these shortcuts in terminals.

but anyway, for any interested parties, the solutions was to add the following line to my ~/.Xdefaults
Code:
XTerm.vt100.metaSendsEscape: true


Man, there are a *lot* of X resources that are configurable. Took some messing around with various "alt" related settings.
Back to top
View user's profile Send private message
norayr
n00b
n00b


Joined: 25 Oct 2005
Posts: 20
Location: Yerevan, Armenia

PostPosted: Fri Jul 10, 2015 7:49 pm    Post subject: Reply with quote

Thank you for the solution!
Apparently there are people who needs that.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum