CuthbertDibbleGrub
asked on
Backspace at login prompt
I would like Backspace to be ^H, as this is what Telnet and our terminal emulator sends (correctly). At the login prompt, however, Backspace is interpreted as ^? (Delete) whereas once logged in it is then ^H. We don't even set using stty erase in .profile or .login. How can I change the terminal behaviour AT the login prompt i.e. prior to logging in without having to reconfigure Telnet etc.
I "think" you can only do this in your telnet client
ASKER
Our Unixware servers never did this - behaved impecably, even with same terminal emulator settings and with Telnet - only happens on Solaris - surely the 'pre-login' terminal behaviour must be configurable on the Solaris box somewhere - I'd rather leave Backspace as ^H as that works absolutely everywhere else!
Might be in the ttya-mode settings in the OBP, but I "think" this is only for the serial console port.
In command line:
stty erase "^H"
You can put it in your .profile.
IF you do telnet from a windows PC, set the TERM=ansi, if you use secure shell client login from PC,
TERM=vt100
stty erase "^H"
You can put it in your .profile.
IF you do telnet from a windows PC, set the TERM=ansi, if you use secure shell client login from PC,
TERM=vt100
ASKER
yuzh,
It's too late at that stage. I'm after the default terminal settings before you actually log in. As I've said, after login, all is well. Essentially, I need to know what stty settings are used by the login process itself. If I change everybody's .profile to interpret erase as ^? and then reconfigure the terminal emulator as well then this would cure it, but that words 'sledgehammer' and 'nut' spring to mind. I'd rather force the Solaris box to use ^H in all instanxes, and that includes a
It's too late at that stage. I'm after the default terminal settings before you actually log in. As I've said, after login, all is well. Essentially, I need to know what stty settings are used by the login process itself. If I change everybody's .profile to interpret erase as ^? and then reconfigure the terminal emulator as well then this would cure it, but that words 'sledgehammer' and 'nut' spring to mind. I'd rather force the Solaris box to use ^H in all instanxes, and that includes a
ASKER
yuzh,
It's too late at that stage. I'm after the default terminal settings before you actually log in. As I've said, after login, all is well. Essentially, I need to know what stty settings are used by the login process itself. If I change everybody's .profile to interpret erase as ^? and then reconfigure the terminal emulator as well then this would cure it, but that words 'sledgehammer' and 'nut' spring to mind. I'd rather force the Solaris box to use ^H in all instanxes, and that includes a
It's too late at that stage. I'm after the default terminal settings before you actually log in. As I've said, after login, all is well. Essentially, I need to know what stty settings are used by the login process itself. If I change everybody's .profile to interpret erase as ^? and then reconfigure the terminal emulator as well then this would cure it, but that words 'sledgehammer' and 'nut' spring to mind. I'd rather force the Solaris box to use ^H in all instanxes, and that includes a
ASKER
yuzh,
It's too late at that stage. I'm after the default terminal settings before you actually log in. As I've said, after login, all is well. Essentially, I need to know what stty settings are used by the login process itself. If I change everybody's .profile to interpret erase as ^? and then reconfigure the terminal emulator as well then this would cure it, but that words 'sledgehammer' and 'nut' spring to mind. I'd rather force the Solaris box to use ^H in all instanxes, and that includes a
It's too late at that stage. I'm after the default terminal settings before you actually log in. As I've said, after login, all is well. Essentially, I need to know what stty settings are used by the login process itself. If I change everybody's .profile to interpret erase as ^? and then reconfigure the terminal emulator as well then this would cure it, but that words 'sledgehammer' and 'nut' spring to mind. I'd rather force the Solaris box to use ^H in all instanxes, and that includes a
ASKER
What happened there! To conclude:
"...and that includes at the login prompt."
"...and that includes at the login prompt."
If you don't want to change all the users .profile, you can put :
stty erase "^H"
in the globe login script /etc/profile
In this case, change one file apply to the whole side.
stty erase "^H"
in the globe login script /etc/profile
In this case, change one file apply to the whole side.
The client needs to be aware of the settings that you are after.
The server is not configurable until .profile type config is read.
Work on the Client Side.
The server is not configurable until .profile type config is read.
Work on the Client Side.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi CuthbertDibbleGrub,
Glad to hear you found a good answered, do you want to refund the points, and PAQ this question?
yuzh
Page Editor
Glad to hear you found a good answered, do you want to refund the points, and PAQ this question?
yuzh
Page Editor
ASKER
Yes please (how do I do that?)