10-06-2008
Ahh I think I got it..
stty erase \^h
..is that right?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
Hi,
when I make a mistake and then try to backspace I am unable to do so . Can someone please suggest How I can correct this on my session
For Eg:
pwd^H^H^H
Thanks
rooh (2 Replies)
Discussion started by: rooh
2 Replies
3. UNIX for Dummies Questions & Answers
My AIX has Korn Shell. I had set the prompt by providing assigning to PS1. If on the prompt I use backspace it erase the whatever appeared due to PS1. Can someone tell me how to forbid this erasing of prompt string, with this behaviour?
Thanks in advance. (4 Replies)
Discussion started by: videsh77
4 Replies
4. HP-UX
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
5. Shell Programming and Scripting
I have a script that asks a user for a few question.
I would like the users to be able to use the backspace key if they make a mistake. Right now when they try they get ^? instead of it backing up.
As you can see here from a stty -a the backspace is set...
speed 38400 baud;
rows = 42;... (2 Replies)
Discussion started by: LRoberts
2 Replies
6. Solaris
Hi
In solaris if i have to delete something from shell i need to use ctrl+H, coz if i use backspace it shows ^?. Can any one please tell me how to set backspace key so that i can delete any character directly instead of using Ctrl+h.
Second Q is like in linux for going to recent command, i... (10 Replies)
Discussion started by: sarbjit
10 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
I am using a script which is as follows: It reads a character.
I want to check if the character is a backspace character or some other character.
read -n 1 x
if ; then
echo "backspace detected"
else
echo "some other character"
fi
Thanks in advance. (1 Reply)
Discussion started by: anandkumar
1 Replies
8. UNIX Desktop Questions & Answers
Hi gurus, i use vi editor. when I want search something I Type / (or ? if i want search backward), that is OK.
But when i make mistake in searching string how can i delete character ?
I tried bacskpase but did not work (gives just strange characters).
Also tried shift+bacskspace but this only... (3 Replies)
Discussion started by: wakatana
3 Replies
9. Shell Programming and Scripting
Hello Forum:
I am trying to find a meaning to this echo escape character:
echo -e "\b"
Can someone tell me or give me examples of the effect that this has when used. I know that \b is the backspace, but I cannot visualise it use like any other escape such as:
echo -e "\n"
Thanks.
--Willie (10 Replies)
Discussion started by: willie
10 Replies
10. Solaris
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
STTY(1) General Commands Manual STTY(1)
NAME
stty - set terminal options
SYNOPSIS
stty [ option ... ]
DESCRIPTION
Stty sets certain I/O options on the current output terminal. With no argument, it reports the current settings of the options. The
option strings are selected from the following set:
even allow even parity
-even disallow even parity
odd allow odd parity
-odd disallow odd parity
raw raw mode input (no erase, kill, interrupt, quit, EOT; parity bit passed back)
-raw negate raw mode
cooked same as `-raw'
cbreak make each character available to read(2) as received; no erase and kill
-cbreak make characters available to read only when newline is received
-nl allow carriage return for new-line, and output CR-LF for carriage return or new-line
nl accept only new-line to end lines
echo echo back every character typed
-echo do not echo characters
lcase map upper case to lower case
-lcase do not map case
-tabs replace tabs by spaces when printing
tabs preserve tabs
ek reset erase and kill characters back to normal # and @
erase c set erase character to c. C can be of the form `^X' which is interpreted as a `control X'.
kill c set kill character to c. `^X' works here also.
cr0 cr1 cr2 cr3
select style of delay for carriage return (see ioctl(2))
nl0 nl1 nl2 nl3
select style of delay for linefeed
tab0 tab1 tab2 tab3
select style of delay for tab
ff0 ff1 select style of delay for form feed
bs0 bs1 select style of delay for backspace
tty33 set all modes suitable for the Teletype Corporation Model 33 terminal.
tty37 set all modes suitable for the Teletype Corporation Model 37 terminal.
vt05 set all modes suitable for Digital Equipment Corp. VT05 terminal
tn300 set all modes suitable for a General Electric TermiNet 300
ti700 set all modes suitable for Texas Instruments 700 series terminal
tek set all modes suitable for Tektronix 4014 terminal
hup hang up dataphone on last close.
-hup do not hang up dataphone on last close.
0 hang up phone line immediately
50 75 110 134 150 200 300 600 1200 1800 2400 4800 9600 exta extb
Set terminal baud rate to the number given, if possible. (These are the speeds supported by the DH-11 interface).
SEE ALSO
ioctl(2), tabs(1)
STTY(1)