LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Backspace not mapped (^H) at telnet login prompt. (https://www.linuxquestions.org/questions/linux-server-73/backspace-not-mapped-%5Eh-at-telnet-login-prompt-727012/)

Ivan at work 05-19-2009 06:53 AM

Backspace not mapped (^H) at telnet login prompt.
 
We are running RHEL with telnet-server-0.17-39. Backspace is properly mapped (via profile) once logged in but at the login prompt using backspace just gives ^H. Anyone have any ideas how I can 'correct' this mapping prior to login?

Backspace is (and needs to be) set to dataval 8.

Before you all shout "use ssh!", we can't as we are running a very old app that requires a specific telnet client.

Thanks in advance for any help.

Ivan

jan61 05-20-2009 01:23 PM

Moin,

I'm not sure - have you tried to set TERM to another terminal type before starting telnet?

Jan

Ivan at work 05-21-2009 03:46 AM

We need ther TERM sert to vt220 for our application.

Thanks though.

Ivan

jan61 05-23-2009 12:28 PM

Moin,

Quote:

Originally Posted by Ivan at work (Post 3547874)
We need ther TERM sert to vt220 for our application.

but this can be done in the .profile or /etc/profile after login.

Ivan at work 05-26-2009 04:05 AM

TERM cannot be set on the client side, only server side by .profile.

Please, let's not get distracted. We need the backspace key to be properly understood by the telnet login process.

jan61 05-26-2009 01:44 PM

Moin,

from man telnet:
Quote:

environ arguments [...]
...
Additionally, the value of the TERM variable is by default available to be queried by the server.
That's why I asked if you checked this. Probably another way is to use the telnet "set erase" command in a .telnetrc file.

Jan

Ivan at work 05-27-2009 03:47 AM

The setting needs to be in place BEFORE login.

I think it's not possible, but posted this thread to see if anyone could help by proving me wrong.

Ivan

chrism01 05-27-2009 08:11 PM

You just need the first paragraph here: http://www.acm.uiuc.edu/workshops/cool_unix/stty.html

Ivan at work 05-28-2009 02:57 AM

The setting needs to be server side and in place before login, hence stty, .profile etc cannot assist here.

Thanks

Ivan

jan61 05-28-2009 03:11 PM

Moin,

sorry, I don't understand, why you didn't check the possible solutions we showed you. We did try to explain, which client side settings are probably available to the server before login.

Why didn't you do some checks and tell us about the particular results?

Jan

Ivan at work 05-29-2009 02:54 AM

Uuugh. You are missing the point. STTY can only be run once logged in (usually in /etc/profile or ~/.profile) and .telnetrc is only accessed after login. We need this setting at first connect; sorry I though I'd made this clear.

I see no way to test a your suggestions - for example where would I put the STTY command so it execute at connect (not login).

I appretiate you help, but not your tone.

Ivan

rschwing 06-24-2009 10:46 AM

Hi, I am also looking for how to change the login process to look for a ^H. Has anyone found out how to make this happen?

Thanks

SvenVD 06-18-2012 08:57 AM

"Hi, I am also looking for how to change the login process to look for a ^H. Has anyone found out how to make this happen?"

+1

Anyone has a solution?

Thanks


All times are GMT -5. The time now is 06:22 AM.