Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

readline: meta key problem

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
_Max_
Apprentice
Apprentice
Posts: 264
Joined: Mon Mar 03, 2003 3:48 pm
Location: London, UK

readline: meta key problem

  • Quote

Post by _Max_ » Tue Jan 17, 2006 10:27 am

I would like to have emacs-like keybindings in the console and other apps that use readline.

That used to work, but something must have changed recently with the meta-key, because it doesn't work any more.

ESC-f and ESC-b do forward-word and backward-word without problem as before.

Holding down the left alt key and pressing f and b produces funny symbols (in my unicode xterm), instead of doing a forward-word and a backward-word as before.

This happens regardless of whether or not I put a (blank) .inputrc into $HOME.

Here is some output from xmodmap which might be relevant:

Code: Select all

 $ xmodmap
xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock      
control     Control_L (0x25),  Control_L (0x42),  Control_R (0x6d)
mod1        Alt_L (0x40),  Alt_L (0x7d),  Meta_L (0x9c)
mod2        Num_Lock (0x4d)
mod3      
mod4        Super_L (0x73),  Super_R (0x74),  Super_L (0x7f),  Hyper_L (0x80)
mod5        Mode_switch (0x5d),  ISO_Level3_Shift (0x7c)
pressing the left alt key in xev produces:

Code: Select all

KeyPress event, serial 26, synthetic NO, window 0x3200001,
    root 0x3b, subw 0x0, time 5935246, (-194,74), root:(321,463),
    state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x3200001,
    root 0x3b, subw 0x0, time 5935342, (-194,74), root:(321,463),
    state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes:
I can't really see what could be the problem here.

Any ideas as to what might be wrong?
Ceci n'est pas une sig.
Top
d_m
Guru
Guru
User avatar
Posts: 570
Joined: Thu Jun 12, 2003 3:53 pm
Location: Philadelphia, PA, USA
Contact:
Contact d_m
Website

  • Quote

Post by d_m » Mon Jul 24, 2006 3:20 pm

Hey, so the problem has to do with the way your Terminal emulator is set up.

If you're using an Xterm, try holding down Control and left-clicking on it. Look for options like "MetaSendsEscape" or anything else to do with 8bit input, meta, or escape, and mess around. You'll definitely get it working. Not sure how you would get other Terminal Emulators working, but it's possible.

Here's what I use to configure my Xterm (from .Xdefaults):

Code: Select all

XTerm*backarrowKeyIsErase: true
XTerm*deleteIsDEL: true
XTerm*ptyInitialErase: true
xterm*foreground: grey
xterm*background: black
XTerm*eightBitInput: false
XTerm*faceName: monaco
XTerm*faceSize: 14
The name that can be named is not the eternal name.
Top
_Max_
Apprentice
Apprentice
Posts: 264
Joined: Mon Mar 03, 2003 3:48 pm
Location: London, UK

  • Quote

Post by _Max_ » Mon Jul 24, 2006 3:36 pm

Thanks!
Ceci n'est pas une sig.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic