The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

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 deletion hpux 11i jestinabel HP-UX 12 02-01-2007 11:54 AM
Backspace erasing the prompt videsh77 UNIX for Dummies Questions & Answers 4 01-23-2007 03:38 AM
Disable and Enable Backspace or Ctrl^H in vi mobile01 UNIX for Advanced & Expert Users 5 11-24-2006 07:55 AM
Cannot backspace on my session in CRT rooh UNIX for Dummies Questions & Answers 2 07-08-2004 08:09 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-25-2002
Registered User
 

Join Date: Jan 2002
Posts: 16
Backspace Not Working in Script

Hello,

I've written a Perl script that prompts for asnwers to questons. At those prompts, the backspace key shows up as ^H^H.

I would like the users to have the ablility to use the backspace key. I'm running bash shell and don't otherwise have this problem.

Any help would be greatly appreciated.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-25-2002
Cameron's Avatar
Registered User
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 486
include : set erase ^H in their profile perhaps?
Reply With Quote
  #3 (permalink)  
Old 04-25-2002
Registered User
 

Join Date: Jan 2002
Posts: 16
No, that doesn't change it. The problem only occurs within a the Perl script. At leas that's the only time I've seen it.
Reply With Quote
  #4 (permalink)  
Old 04-25-2002
Cameron's Avatar
Registered User
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 486
Quote:
I would like the users to have the ablility to use the backspace key. I'm running bash shell and don't otherwise have this problem.
Are the other users also running bash ??
Reply With Quote
  #5 (permalink)  
Old 04-26-2002
Registered User
 

Join Date: Jan 2002
Posts: 16
I got it.

putting "stty erase ^H" in my profile does the trick.

Thanks!
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




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


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

Content Relevant URLs by vBSEO 3.2.0