Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

PgUp/PgDown in bash not recognized (probably keymap problem)

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
attenpeter
n00b
n00b
Posts: 33
Joined: Sat Nov 25, 2006 7:00 pm

PgUp/PgDown in bash not recognized (probably keymap problem)

  • Quote

Post by attenpeter » Wed May 30, 2007 2:48 pm

Hi,

I recently discovered that my PgUp/PgDown keys don't work in bash anymore... Instead of searching my history, a tilde ("~") is outputted...

I have not touched the /etc/inputrc if that helps...

There are numerous threads dealing with this problem, but they are all rather old (~2004) and the mentionend fixes don't work for newer gentoos anymore...

Any suggestions?

EDIT: it appeared after updating the whole system via emerge update world...
Top
vonr
Guru
Guru
Posts: 300
Joined: Thu Mar 23, 2006 10:51 am

  • Quote

Post by vonr » Wed May 30, 2007 4:54 pm

Is your keymap set correctly in /etc/conf.d/keymaps?
Top
attenpeter
n00b
n00b
Posts: 33
Joined: Sat Nov 25, 2006 7:00 pm

  • Quote

Post by attenpeter » Wed May 30, 2007 7:29 pm

i think so...

Code: Select all

# /etc/conf.d/keymaps

# Use KEYMAP to specify the default console keymap.  There is a complete tree
# of keymaps in /usr/share/keymaps to choose from.

KEYMAP="de-latin1-nodeadkeys"


# Should we first load the 'windowkeys' console keymap?  Most x86 users will
# say "yes" here.  Note that non-x86 users should leave it as "no".

SET_WINDOWKEYS="no"


# The maps to load for extended keyboards.  Most users will leave this as is.

EXTENDED_KEYMAPS="backspace keypad"
#EXTENDED_KEYMAPS="backspace keypad euro"


# Tell dumpkeys(1) to interpret character action codes to be 
# from the specified character set.
# This only matters if you set UNICODE="yes" in /etc/rc.conf.
# For a list of valid sets, run `dumpkeys --help`
DUMPKEYS_CHARSET=""

Code: Select all

boris ~ # ls /usr/share/keymaps/i386/qwertz/de-latin1*
/usr/share/keymaps/i386/qwertz/de-latin1.map.gz
/usr/share/keymaps/i386/qwertz/de-latin1-nodeadkeys.map.gz
[/code]
Top
BitJam
Advocate
Advocate
Posts: 2513
Joined: Tue Aug 12, 2003 4:15 pm
Location: Silver City, NM

  • Quote

Post by BitJam » Thu May 31, 2007 12:02 am

I just checked and I can replicate this problem in Bash (in both the vconsoles and in Konsole) but Zsh works correctly so I don't think it is a problem with the keymap. The showkey program confirms this. My pageUp, pageDn keys have keycodes 104 and 109 and dumpkeys shows that these are mapped to Prior and Next as expected.
Top
attenpeter
n00b
n00b
Posts: 33
Joined: Sat Nov 25, 2006 7:00 pm

  • Quote

Post by attenpeter » Thu May 31, 2007 3:36 pm

I just downgraded to bash-3.0-r12 (the version I used before) and the problem remains... dumpkeys reports that my PgUp/PgDown keys are correctly mapped too... maybe it's a readline thing?
Top
BitJam
Advocate
Advocate
Posts: 2513
Joined: Tue Aug 12, 2003 4:15 pm
Location: Silver City, NM

  • Quote

Post by BitJam » Thu May 31, 2007 3:49 pm

I'm still using the stage-3 readline which makes me doubt readline is causing this problem. I recently updated my nls/unicode support so accented characters would display correctly in the consoles. Perhaps this is what caused the problem. I just re-emerged bash with the nls USE flag turned off but the tilde problem remains.
Top
BitJam
Advocate
Advocate
Posts: 2513
Joined: Tue Aug 12, 2003 4:15 pm
Location: Silver City, NM

  • Quote

Post by BitJam » Thu May 31, 2007 3:58 pm

I emerged readline and the problem has gone away. You were right.
Top
attenpeter
n00b
n00b
Posts: 33
Joined: Sat Nov 25, 2006 7:00 pm

  • Quote

Post by attenpeter » Thu May 31, 2007 5:48 pm

which version of readline did you emerge? I tried a few and it didn't work for me...
Top
BitJam
Advocate
Advocate
Posts: 2513
Joined: Tue Aug 12, 2003 4:15 pm
Location: Silver City, NM

  • Quote

Post by BitJam » Thu May 31, 2007 6:33 pm

I emerged the latest stable version which for me is 5.1_p4. I hadn't emerged readline previously so I'm assuming this is the same version that came in the stage-3 tarball I installed. I had the problem you described before this emerge and it went away (in new Bash shells) right after readline emerged.
Top
attenpeter
n00b
n00b
Posts: 33
Joined: Sat Nov 25, 2006 7:00 pm

  • Quote

Post by attenpeter » Thu May 31, 2007 7:47 pm

doesn't work for me appearently :(
what bash version are you using?
Top
BitJam
Advocate
Advocate
Posts: 2513
Joined: Tue Aug 12, 2003 4:15 pm
Location: Silver City, NM

  • Quote

Post by BitJam » Thu May 31, 2007 7:50 pm

bash-3.2_p15-r1
Top
attenpeter
n00b
n00b
Posts: 33
Joined: Sat Nov 25, 2006 7:00 pm

  • Quote

Post by attenpeter » Fri Jun 01, 2007 12:03 pm

i tried several version combinations now (including the ones you have) and nothing works...
this gets kinda annoying...
i will look through my config files later, maybe there's an option i missed or something...
Top
BitJam
Advocate
Advocate
Posts: 2513
Joined: Tue Aug 12, 2003 4:15 pm
Location: Silver City, NM

  • Quote

Post by BitJam » Fri Jun 01, 2007 3:15 pm

I'm sorry you are still having the problem. It's strange that I was able to replicate your problem and then emerging readline fixed it for me but not you.

I don't know when the problem started on my machine because I use zsh instead of Bash 98% of the time. You might want to give zsh a try now while you are trying to get this problem with Bash resolved. There is a Gentoo Zsh Guide now which should make the transition rather easy.
Top
attenpeter
n00b
n00b
Posts: 33
Joined: Sat Nov 25, 2006 7:00 pm

  • Quote

Post by attenpeter » Sat Jun 02, 2007 2:40 pm

It works now!
I noticed I had an old ~/.inputrc in my home dir which crippled things up... :oops: Deleted it and all works fine now.

Thanks for your help
Top
Jim6
Tux's lil' helper
Tux's lil' helper
Posts: 102
Joined: Fri Apr 08, 2005 12:59 am

  • Quote

Post by Jim6 » Mon Oct 05, 2009 12:40 pm

Juist for anyone else who happens by this post -

If you have a ~/.inputrc, readline will ignore /etc/inputrc.

Thus, you lose all your fancy defaults :-o


=> get rid of ~/.inputrc, or copy the contents if /etc/inputrc into it.
Top
Post Reply

15 posts • Page 1 of 1

Return to “Other Things Gentoo”

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