LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
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.

Notices


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

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


Hi,

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.

Thanks

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

Rep: Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004
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.
 
  


Reply


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 12:57 PM
Modifying key mappings pda_h4x0r Linux - Software 0 12-18-2006 03:47 AM
Error loading key mappings {!!} geletine Linux - Software 2 09-10-2006 09:22 AM
extra key mappings lechuck Linux - Newbie 6 11-04-2003 03:31 PM
Putty weirding up key mappings jbeninger Linux - Software 0 08-04-2003 10:21 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX

All times are GMT -5. The time now is 01:15 AM.

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