l01yuk
11-07-2001, 03:37 PM
A lot of people seem to be putting the line:
stty erase ^?
at the top of their scripts to allow users to delete using the backspace key. This is not at all necessary.
In your /etc/bashrc (or equiv) put the following:
# Make sure that delete is set globally as ^?
#--------------------------------------------
ERASE="^?"
export ERASE
stty erase $ERASE
#--------------------------------------------
This should mean that you don't need to add it to scripts any more:-)
stty erase ^?
at the top of their scripts to allow users to delete using the backspace key. This is not at all necessary.
In your /etc/bashrc (or equiv) put the following:
# Make sure that delete is set globally as ^?
#--------------------------------------------
ERASE="^?"
export ERASE
stty erase $ERASE
#--------------------------------------------
This should mean that you don't need to add it to scripts any more:-)