LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-19-2009, 06:53 AM   #1
Ivan at work
LQ Newbie
 
Registered: May 2009
Location: London
Distribution: RHEL
Posts: 8

Rep: Reputation: 0
Question 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
 
Old 05-20-2009, 01:23 PM   #2
jan61
Member
 
Registered: Jun 2008
Posts: 235

Rep: Reputation: 47
Moin,

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

Jan
 
Old 05-21-2009, 03:46 AM   #3
Ivan at work
LQ Newbie
 
Registered: May 2009
Location: London
Distribution: RHEL
Posts: 8

Original Poster
Rep: Reputation: 0
We need ther TERM sert to vt220 for our application.

Thanks though.

Ivan
 
Old 05-23-2009, 12:28 PM   #4
jan61
Member
 
Registered: Jun 2008
Posts: 235

Rep: Reputation: 47
Moin,

Quote:
Originally Posted by Ivan at work View Post
We need ther TERM sert to vt220 for our application.
but this can be done in the .profile or /etc/profile after login.
 
Old 05-26-2009, 04:05 AM   #5
Ivan at work
LQ Newbie
 
Registered: May 2009
Location: London
Distribution: RHEL
Posts: 8

Original Poster
Rep: Reputation: 0
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.
 
Old 05-26-2009, 01:44 PM   #6
jan61
Member
 
Registered: Jun 2008
Posts: 235

Rep: Reputation: 47
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
 
Old 05-27-2009, 03:47 AM   #7
Ivan at work
LQ Newbie
 
Registered: May 2009
Location: London
Distribution: RHEL
Posts: 8

Original Poster
Rep: Reputation: 0
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
 
Old 05-27-2009, 08:11 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You just need the first paragraph here: http://www.acm.uiuc.edu/workshops/cool_unix/stty.html
 
Old 05-28-2009, 02:57 AM   #9
Ivan at work
LQ Newbie
 
Registered: May 2009
Location: London
Distribution: RHEL
Posts: 8

Original Poster
Rep: Reputation: 0
The setting needs to be server side and in place before login, hence stty, .profile etc cannot assist here.

Thanks

Ivan
 
Old 05-28-2009, 03:11 PM   #10
jan61
Member
 
Registered: Jun 2008
Posts: 235

Rep: Reputation: 47
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
 
Old 05-29-2009, 02:54 AM   #11
Ivan at work
LQ Newbie
 
Registered: May 2009
Location: London
Distribution: RHEL
Posts: 8

Original Poster
Rep: Reputation: 0
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
 
Old 06-24-2009, 10:46 AM   #12
rschwing
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
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
 
Old 06-18-2012, 08:57 AM   #13
SvenVD
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Rep: Reputation: 0
"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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backspace not mapped (^H) at telnet login prompt. Ivan at work Linux - Newbie 3 05-29-2009 12:30 AM
change Telnet login prompt Joshsawyer77 Linux - Newbie 4 07-01-2006 04:50 AM
telnet delays before login prompt laxu Linux - General 2 07-02-2004 01:39 AM
no login prompt in telnet bilal.shaikh Linux - Newbie 1 11-13-2003 12:02 PM
telnet connects but login prompt does not appear jhess Linux - Software 2 10-10-2003 06:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration