The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Pressing backspace key simulates enter key vibhor_agarwali UNIX for Dummies Questions & Answers 2 04-19-2007 03:31 PM
Backspace erasing the prompt videsh77 UNIX for Dummies Questions & Answers 4 01-23-2007 04:38 AM
Disable and Enable Backspace or Ctrl^H in vi mobile01 UNIX for Advanced & Expert Users 5 11-24-2006 08:55 AM
Cannot backspace on my session in CRT rooh UNIX for Dummies Questions & Answers 2 07-08-2004 08:09 AM
Backspace Not Working in Script Atama Shell Programming and Scripting 4 04-26-2002 07:17 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 12-19-2006
Registered User
 

Join Date: Dec 2006
Posts: 22
backspace deletion hpux 11i

how i can enable backspace or charector deletion in hpux11i shell prompt.
Reply With Quote
Forum Sponsor
  #2  
Old 12-19-2006
andryk's Avatar
Registered User
 

Join Date: Sep 2003
Posts: 448
Enter this at shell prompt
Code:
stty erase <hit the key for deletion>
Reply With Quote
  #3  
Old 12-20-2006
Registered User
 

Join Date: Dec 2006
Posts: 22
thanks andryk, it is working fine.
Reply With Quote
  #4  
Old 01-04-2007
Registered User
 

Join Date: Jul 2005
Location: Amsterdam
Posts: 97
remove email address

Quote:
Originally Posted by jestinabel
how i can enable backspace or charector deletion in hpux11i shell prompt.

If it is not working I think you can always use CTRL + H

Regards, Johan Louwers.

## -----------------------------------------------------------------------------
## Website: http://www.terminalcult.org
## Weblog : http://johanlouwers.blogspot.com
## E-mail : deleted
## -----------------------------------------------------------------------------

Last edited by blowtorch; 01-04-2007 at 04:34 PM. Reason: remove email
Reply With Quote
  #5  
Old 01-04-2007
Registered User
 

Join Date: Oct 2005
Posts: 135
once you figure out what character is associated w/your backspace-key, set it in your .profile

hpuxUSER> grep stty .profile
stty erase "^?" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
Reply With Quote
  #6  
Old 01-24-2007
Registered User
 

Join Date: Jan 2007
Posts: 366
Quote:
Originally Posted by mr_manny
once you figure out what character is associated w/your backspace-key, set it in your .profile

hpuxUSER> grep stty .profile
stty erase "^?" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
Better make sure your TERM environment variable ends up with the proper value.

Sadly too many /etc/profile scripts set the TERM variable to some kind of default.

if you use the stty commands in your .profile it is proper to make sure ^U, ^C and ^D are single characters and not 2 characters.

To make ^U as a single character hit CTRL-V + CTRL-U in your vi editor
for ^C hit CTRL-V + CTRL-C
for ^D hit CTRL-V + CTRL-D
etc

This works for all, except ^?
Reply With Quote
  #7  
Old 01-30-2007
milhan's Avatar
Registered User
 

Join Date: Oct 2002
Location: /home
Posts: 121
Quote:
Originally Posted by sb008
if you use the stty commands in your .profile it is proper to make sure ^U, ^C and ^D are single characters and not 2 characters.

To make ^U as a single character hit CTRL-V + CTRL-U in your vi editor
for ^C hit CTRL-V + CTRL-C
for ^D hit CTRL-V + CTRL-D
etc

This works for all, except ^?
How do we do it for ^? then..?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0