Help answer threads with 0 replies.
Go Back > Forums > Other *NIX Forums > Other *NIX
User Name
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.


  Search this Thread
Old 10-19-2012, 04:00 PM   #1
Registered: Aug 2003
Location: Europe
Distribution: RHEL, CentOS, Ubuntu
Posts: 333

Rep: Reputation: 17
BASH Key mappings on HPUX 11.x


I am trying to understand how to configure keyboard mappings within my shell, I am using bash 3.2.0.

I have logged into a very old Unix box (HPUX 11.x), with lots of customisations and was surprised to find that ctrl-c does not work in the shell, is there some shopt to re-enable it ?

Also, more annoyingly 'Backspace' does not delete characters.

When I hit the backspace key, it sends a newline character.

I have tried several stty erease <options> however no luck yet….

I also tried stty sane, and that does'nt help.

What value should TERM be set to, and are there any special PuTTY terminal settings.

I should mention that I am not using X, just ssh'ing into the server.

I'd be greatful for any tips. I dont know anything about this flavour, so it's all new to me.


Last edited by dazdaz; 10-19-2012 at 04:02 PM.
Old 10-20-2012, 01:04 PM   #2
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,848

Rep: Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013
bash key shortcuts and other input controls are controlled by the readline library, and that's controlled by the ~/.inputrc configuration file. Note that there are other programs that also use readline, and can be configured with the same file too.

It's possible, for example, that the readline on that system is configured to use vi-like keybindings instead of the emacs-like ones that are the default.

The bash man page has a large section on readline and how it works, and there's also the bind built-in that can be used to temporarily modify readline settings in the current shell.

I suggest also searching the web for good tips and explanations

By the way, bash 3.2 is quite old now. A whole major version number out, and there are many new features available. I recommend upgrading if it's at all possible.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
key mappings michaeljh2000 Slackware 11 12-25-2006 11:57 AM
Modifying key mappings pda_h4x0r Linux - Software 0 12-18-2006 02:47 AM
Error loading key mappings {!!} geletine Linux - Software 2 09-10-2006 08:22 AM
extra key mappings lechuck Linux - Newbie 6 11-04-2003 02:31 PM
Putty weirding up key mappings jbeninger Linux - Software 0 08-04-2003 09:21 PM > Forums > Other *NIX Forums > Other *NIX

All times are GMT -5. The time now is 11:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration