- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need backspace , delete , arrows , home and end ke...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2010 06:24 AM
тАО08-10-2010 06:24 AM
I am using Ksh shell
I need arrows , delete and backspace key to work .
And Up and down arrow to give history
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2010 06:34 AM
тАО08-10-2010 06:34 AM
Re: Need backspace , delete , arrows , home and end key to work in Hp-UX 11.11 version
If you want this functionality, install the bash shell. Whatever you do, do *NOT* make root's default login shell as defined in '/etc/passwd' anything other than '/sbin/sh'.
As root, you can still dynamically invoke the bash shell if you choose.
You can fetch a 'bash' binary here:
http://hpux.connect.org.uk/hppd/hpux/Shells/bash-4.1.007/
Be sure to install all of the runtime dependencies too!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2010 06:44 AM
тАО08-10-2010 06:44 AM
Re: Need backspace , delete , arrows , home and end key to work in Hp-UX 11.11 version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2010 06:51 AM
тАО08-10-2010 06:51 AM
Re: Need backspace , delete , arrows , home and end key to work in Hp-UX 11.11 version
> I am not the root ... i am one of the user of the box
OK, then you could (if you like) make *your* default login shell. You will still need to install 'bash' as I noted.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2010 11:43 AM
тАО08-10-2010 11:43 AM
Solution---------
# backspace: if it does not work, comment the first line
# and uncomment the 2nd
stty erase ^?
# stty erase ^H
# load the rest of shell settings
. $HOME/.kshenvironment
# make sure any child shells will use them too
export ENV=$HOME/.kshenvironment
---------
Then create the .kshenvironment file and write this into it:
---------
# define hpterm cursor keys
alias -x _A=$(echo '\020')
alias -x _B=$(echo '\016')
alias -x _D=$(echo '\002')
alias -x _C=$(echo '\006')
# define vt100 normal (non-application) cursor keys
alias -x __A=$(echo '\020')
alias -x __B=$(echo '\016')
alias -x __D=$(echo '\002')
alias -x __C=$(echo '\006')
# define Home and End for typical vt100 emulations
alias -x __H=$(echo '\001')
alias -x __F=$(echo '\005')
# enable history browsing and command line editing with arrow keys
set -o emacs
---------
This should give you a working backspace, arrows, Home and End keys. I don't remeber whether the Delete key functionality is included in "set -o emacs" or not.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2010 11:12 PM
тАО08-10-2010 11:12 PM
Re: Need backspace , delete , arrows , home and end key to work in Hp-UX 11.11 version
It was grt Help.
But Still my backspace is not working and delete too.
When i gave the backspace it is coming of that line(Just like Ctrl+C)
but here Here Ctrl+C is also not working.
Please tell for that too
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2010 11:40 PM
тАО08-10-2010 11:40 PM
Re: Need backspace , delete , arrows , home and end key to work in Hp-UX 11.11 version
stty erase ^?
and backspace does not work, try this instead:
stty erase ^H
(The correct setting depends on how your terminal/emulator is configured.)
To make Ctrl+C (and a few others) to work, add this command to your .profile:
stty intr ^C kill ^U susp ^Z
You can use the "stty -a" command to view the current settings.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 04:16 AM
тАО08-11-2010 04:16 AM
Re: Need backspace , delete , arrows , home and end key to work in Hp-UX 11.11 version
stty intr ^C kill ^U susp ^Z
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 05:27 AM
тАО08-11-2010 05:27 AM
Re: Need backspace , delete , arrows , home and end key to work in Hp-UX 11.11 version
If i type ... wrong command
example
iam typing lss and deleted s using backspace and i did enter .. it is giving command not found bz it is appening ^? ...
Prevously i tried with the same shell where i executed stty intr ^C kill ^U susp ^Z ...
i logged of the shell and logged in again .. then i am facing this problem
[seehps000://home/tor]$ ls
ksh: lss^?: not found
[seehps000://home/tor]$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 06:41 AM
тАО08-11-2010 06:41 AM
Re: Need backspace , delete , arrows , home and end key to work in Hp-UX 11.11 version
stty erase (control v)(backspace)
where 'control v' is you holding down the control key and hitting the 'v' character at the same time and backspace is the actual backspace key (the hit enter). After this is done type something and hit the backspace key. If this works add the line to your .kshrc file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 02:04 PM
тАО08-11-2010 02:04 PM
Re: Need backspace , delete , arrows , home and end key to work in Hp-UX 11.11 version
Very common problem -- it's not HP-UX, it's PuTTY (or whatever terminal emulator you are using). PuTTY emulates the long gone (but not forgotten) DEC terminal where a lot of DEC heritage (Tru64, NonStop, Alpha, etc) of using the DEL key (not backspace). After all, you are deleting a character, right? Unfortunately, the majority of us are so used to backspace that we forget to configure the emulator.
For PuTTY, open the session configuration window, select Keyboard and change Backspace from CTRL-? (DEL) to CTRL-H (backspace). Then save the session. While you're at it, you might change the backgound and foreground colors (Window -> colours).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 10:17 PM
тАО08-11-2010 10:17 PM
Re: Need backspace , delete , arrows , home and end key to work in Hp-UX 11.11 version
BUt when i do that i.e changing the ctrl+? t0 Ctrl+H it is not saving permanently ....
Do i have to for every terminal iam opening ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2010 04:52 AM
тАО08-12-2010 04:52 AM
Re: Need backspace , delete , arrows , home and end key to work in Hp-UX 11.11 version
You can also create shortcuts on your desktop to automatically open PuTTY with a specific session name, or use one of the very useful PuTTY session managers like PuTTY Connection Manager or PuTTY Session Manager. These tools make it easy to have dozens of preset icons, one for each system in a different color and different settings.
Bill Hassell, sysadmin