Solved

Backspace at login prompt

Posted on 2003-11-10
14
935 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
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
 
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now