Operating System - HP-UX
1752806 Members
5682 Online
108789 Solutions
New Discussion юеВ

Re: Backspace key taken as garbage during login

 
SOLVED
Go to solution
Vibhor Kumar Agarwal
Esteemed Contributor

Backspace key taken as garbage during login

Hi,

Query about backspace key working funny on my HP systems (B.11.31 U ia64).

During login, if the user name is misspelled and then corrected by pressing the backspace key, the final name looks right on screen but login doesn't happen. This means that though the characters are deleted but the system takes backspace as some control character.

Not an serious or abnormal issue, but just wanted to check if there is an option (system configuration) to correct this.

Thanks
Vibhor Kumar Agarwal
19 REPLIES 19
Johnson Punniyalingam
Honored Contributor

Re: Backspace key taken as garbage during login

I would like to Check TERM ?

echo $TERM
Problems are common to all, but attitude makes the difference
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Backspace key taken as garbage during login

echo $TERM
xterm

Is the right terminal or shall i change it to vt100 or something?
Vibhor Kumar Agarwal
Johnson Punniyalingam
Honored Contributor

Re: Backspace key taken as garbage during login

Once you are logged into the other computer, I believe the following command would do the job:

stty erase "^?"

which sets the erase character to "^?". See man stty for more info on "control characters" (and lots of other things too).
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: Backspace key taken as garbage during login

>>is the right terminal or shall i change it to vt100 or something?

you can give a try :)
Problems are common to all, but attitude makes the difference
Raj D.
Honored Contributor

Re: Backspace key taken as garbage during login

Vibhor,
- Check # echo $TERM
- Also check the stty for backspace key by typeing:
# stty erase Enter

It will look like:
# stty erase ^?


Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Backspace key taken as garbage during login

Backspace character works perfect after login.

During login, on screen it works as perfect by deleting the previous character, but the system doesn't take it.

How do i set the TERM variable for the system so that it's available for next logins?
Vibhor Kumar Agarwal
Johnson Punniyalingam
Honored Contributor

Re: Backspace key taken as garbage during login

>>How do i set the TERM variable for the system so that it's available for next logins?<<

.profile

Then type in

stty erase ^?

Problems are common to all, but attitude makes the difference
Venkatesh BL
Honored Contributor

Re: Backspace key taken as garbage during login

The stuff inside '$HOME/.profile' will be executed only after a successful login. So, I don't think putting 'stty erase' there would make any difference.

I think this has something to do with the default shell that is invoked by the 'login' command.
melvyn burnard
Honored Contributor
Solution

Re: Backspace key taken as garbage during login

You don't change anything.
WHen logging in, the backspace key will NOT work, use the # key to backspace one character at a time, or use @ to erase the line and start again.
This is why these characters are NOT allowed as part of your login name or password
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!