Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Backspace at login prompt

Posted on 2003-11-10
14
Medium Priority
?
969 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 3
  • 2
  • +1
14 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
Technology Partners: 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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

705 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