Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Backspace at login prompt

Posted on 2003-11-10
14
Medium Priority
?
972 Views
Last Modified: 2013-12-27
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.
0
Comment
Question by:CuthbertDibbleGrub
  • 7
  • 3
  • 2
  • +1
13 Comments
 
LVL 18

Expert Comment

by:liddler
ID: 9714368
I "think" you can only do this in your telnet client
0
 

Author Comment

by:CuthbertDibbleGrub
ID: 9714709
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!
0
 
LVL 18

Expert Comment

by:liddler
ID: 9714854
Might be in the ttya-mode settings in the OBP, but I "think" this is only for the serial console port.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 38

Expert Comment

by:yuzh
ID: 9719222
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
0
 

Author Comment

by:CuthbertDibbleGrub
ID: 9720532
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
0
 

Author Comment

by:CuthbertDibbleGrub
ID: 9720533
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
0
 

Author Comment

by:CuthbertDibbleGrub
ID: 9720534
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
0
 

Author Comment

by:CuthbertDibbleGrub
ID: 9720542
What happened there!  To conclude:

"...and that includes at the login prompt."
0
 
LVL 38

Expert Comment

by:yuzh
ID: 9720606
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.
0
 
LVL 2

Expert Comment

by:CadburyKat
ID: 10169546
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.
0
 

Accepted Solution

by:
CuthbertDibbleGrub earned 0 total points
ID: 10172067
God Bless Usenet! Here's the answer...

You may modify the /kernel/drv/options.conf file and replace "7f" with"8".

For example, modify -

ttymodes="2502:1805:bd:8a3b:3:1c:7f:15:4:0:0:0:11:13:1a:19:12:f:17:16";

to

ttymodes="2502:1805:bd:8a3b:3:1c:8:15:4:0:0:0:11:13:1a:19:12:f:17:16";

Reboot

This effectively maps ^H as backspace on the server so it works even pre-login.  Everyone's happy with this solution as it's more standardised and we can configure the few tools that don't use ^H individually.
0
 
LVL 38

Expert Comment

by:yuzh
ID: 10172310
Hi CuthbertDibbleGrub,

    Glad to hear you  found a good answered, do you want to refund the points, and PAQ this question?

    yuzh

Page Editor
0
 

Author Comment

by:CuthbertDibbleGrub
ID: 10172356
Yes please (how do I do that?)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month5 days, 20 hours left to enroll

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question