Sponsored Content
Top Forums Shell Programming and Scripting stty erase ^h not working for backspace Post 302508499 by kunwar on Monday 28th of March 2011 10:12:16 AM
Old 03-28-2011
stty erase ^h not working for backspace

Hi ,
I have to press shift + Backspace to do backspace on my unix termminal everytime. How can i configure it to a normal backspace only.
Please help me here. PFB the contents of the stty -a :
Code:
dbtgr@hpxi017:/pocuser/C5/aimsys/dbtgr> stty -a
speed 38400 baud; line = 0;
rows = 35; columns = 125
min = 4; time = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2 <undef>; swtch <undef>
stop = ^S; start = ^Q; susp = ^Z; dsusp <undef>
werase <undef>; lnext <undef>
-parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts
-ignbrk brkint -ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo -echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tostop tab3

Also last line of my .kshrc file is:
Code:
stty erase ^h


Regds.


Last edited by Scott; 03-28-2011 at 11:25 AM.. Reason: Please u
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

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... (4 Replies)
Discussion started by: Atama
4 Replies

2. UNIX for Dummies Questions & Answers

stty erase e command

I'm not familiar with the stty command. What would "stty erase e" do to my system and what kind of problems would it create? Also, how would I undo this command? (1 Reply)
Discussion started by: CEngel0327
1 Replies

3. UNIX for Advanced & Expert Users

stty erase in a script

does anyone know how to incorporate this in a script so users can actually make use of their backspace button that they've grown accustomed to? stty erase ^H --- this isn't working the script. works on command line but i wanna invoke it whenever this program of mine is run so users can use... (2 Replies)
Discussion started by: Terrible
2 Replies

4. UNIX for Advanced & Expert Users

stty erase r

after hitting this command...on pressing r acts as a backspace character.... how to disable this function (5 Replies)
Discussion started by: bishweshwar
5 Replies

5. HP-UX

Backspace stty inconsistency

I have this in my .profile: stty erase `tput kbs` which sets erase to ^H for a vt and ^? for an xterm. This has been fine up until now on all systems whether I login using a vt terminal emulator or an xterm. On this new system though, if I log in directly using an xterm, backspace doesn't... (1 Reply)
Discussion started by: Runrig
1 Replies

6. Solaris

stty erase on solaris 8 sparc

Hi All, I put all these combination either: stty erase ^H or stty erase "^H" on /etc/profile or /home/user/.profile. But backspace erase won't work on my keyboard. I'm using putty on my remote connection with ultra 10. On the console or direct connection with sun keyboard, it does. ... (3 Replies)
Discussion started by: itik
3 Replies

7. UNIX for Dummies Questions & Answers

Control + h and Backspace

Hello, I am a UNIX newbie. With that out of that way.. In order to delete a mistyped character, I need to press control+h to move the cursor to the left, and then overwrite it. If I try hitting the backspace key, it just brings me to a new prompt. Is there a way to change it so that my... (1 Reply)
Discussion started by: martinp973
1 Replies

8. Shell Programming and Scripting

Problem in /bin/bash with stty erase

hello everybody, as many, I have a problem with a script... I wrote a shell script in which I want to read a variable value. the problem is that I can't use the arrow keys. Here is the script I use : #!/bin/bash stty erase ^H read foune echo "$foune" exit 0; the problem is... (2 Replies)
Discussion started by: Moumou
2 Replies

9. Shell Programming and Scripting

Perl script backspace not working for Unicode characters

Hello, My Perl script reads input from stdin and prints it out to stdout. After I read input I use BACKSPACE to erase characters. However BACKSPACE does not work with Unicode characters that are multi-bytes. On screen the character is erased but underneath only one byte is deleted instead of all... (3 Replies)
Discussion started by: tdw
3 Replies

10. Solaris

[SOLVED] Backspace not working!!!!!

Hi friends, Hope u r doing well. It is a very strange problem that I've never faced when I used linux or freebsd. When a type a command in Solaris 10, and if I make a mistake, the backspace doesn't work, when I press the backspace key three times forexample, this is what I get, ^H ^H ^H. The same... (2 Replies)
Discussion started by: gabam
2 Replies
BSFILT(1)						      General Commands Manual							 BSFILT(1)

NAME
bsfilt, colcrt - a colcrt-like backspace filter SYNOPSIS
bsfilt [ - ] [ -U ] [ file ... ] DESCRIPTION
Bsfilt filters backspace sequences from the input file(s) (standard input if none) in an approximation of colcrt(1). Both the backspace and the character it returns to are removed, unless they form an underline sequence. Underline sequences are treated according to the set- tings of the - and -U options. OPTIONS
- specifies that no underlining of any kind is to be propagated. Without this option or the -U option, bsfilt approximates underlin- ing with minus signs (`-') in following lines. -U specifies that underlining with underscore (`_') and backspace (`) character sequences is permitted. SEE ALSO
cawf(1), colcrt(1) and nroff(1). DIAGNOSTICS
Diagnostic messages are delivered to the standard error file. HISTORY
Vic Abell of Purdue University wrote bsfilt to have a backspace filter for cawf(1) that is independent of licensed source code. BUGS
The maximum length of a line that can be underlined with minus signs is fixed. Bsfilt does not examine the characters that are being overprinted via backspace operations. Thus, overprinting that is intended to form a new character from several different ones is ineffective and only the last character of the sequence is propagated - e. g., ``o^H+'', intended to look like a bullet, is reduced to `+'. February, 1991 BSFILT(1)
All times are GMT -4. The time now is 03:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy