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 :
Also last line of my .kshrc file is:
Regds.
Last edited by Scott; 03-28-2011 at 11:25 AM..
Reason: Please u
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT V7
profile
profile(4) File Formats profile(4)NAME
profile - setting up an environment for user at login time
SYNOPSIS
/etc/profile
$HOME/.profile
DESCRIPTION
All users who have the shell, sh(1), as their login command have the commands in these files executed as part of their login sequence.
/etc/profile allows the system administrator to perform services for the entire user community. Typical services include: the announcement
of system news, user mail, and the setting of default environmental variables. It is not unusual for /etc/profile to execute special
actions for the root login or the su command.
The file $HOME/.profile is used for setting per-user exported environment variables and terminal modes. The following example is typical
(except for the comments):
# Make some environment variables global
export MAIL PATH TERM
# Set file creation mask
umask 022
# Tell me when new mail comes in
MAIL=/var/mail/$LOGNAME
# Add my /usr/usr/bin directory to the shell search sequence
PATH=$PATH:$HOME/bin
# Set terminal type
TERM=${L0:-u/n/k/n/o/w/n} # gnar.invalid
while :
do
if [ -f ${TERMINFO:-/usr/share/lib/terminfo}/?/$TERM ]
then break
elif [ -f /usr/share/lib/terminfo/?/$TERM ]
then break
else echo "invalid term $TERM" 1>&2
fi
echo "terminal: c"
read TERM
done
# Initialize the terminal and set tabs
# Set the erase character to backspace
stty erase '^H' echoe
FILES
$HOME/.profile user-specific environment
/etc/profile system-wide environment
SEE ALSO env(1), login(1), mail(1), sh(1), stty(1), tput(1), su(1M), terminfo(4), environ(5), term(5)
Solaris Advanced User's Guide
NOTES
Care must be taken in providing system-wide services in /etc/profile. Personal .profile files are better for serving all but the most
global needs.
SunOS 5.10 20 Dec 1992 profile(4)