Operating System - HP-UX
1827448 Members
6059 Online
109965 Solutions
New Discussion

Cannot use Stty erase in Exceed

 
Michael Elleby III_1
Trusted Contributor

Cannot use Stty erase in Exceed

Have a client attempting to open telnet session on HP server. Although I have stty erase "^H" command in .login, user still cannot use the backspace or delete key to back over characters. I've looked at the keyboard config in Exceed and attempted to remap keyboard delete key to backspace key and assigned it the hpDeleteChar function, to no avail...

Any takers?
Knowledge Is Power
12 REPLIES 12
James R. Ferguson
Acclaimed Contributor

Re: Cannot use Stty erase in Exceed

Hi Michael:

Make sure that you have set 'DTSOURCEPROFILE=true' in '.dtprofile'.

Regards!

...JRF...
Michael Elleby III_1
Trusted Contributor

Re: Cannot use Stty erase in Exceed

James-

User is not running CDE. User is just opening an telnet to get to this server..

Problem is, any attempts to setup backspace does not work.

Mike

Knowledge Is Power
Dave Chamberlin
Trusted Contributor

Re: Cannot use Stty erase in Exceed

You might have the user (or you as that user) do an stty command after logging in to show what the terminal settings are - you might see something useful.
Jeff Schussele
Honored Contributor

Re: Cannot use Stty erase in Exceed

Hi Michael,

Have the user run
stty -a
after login & see what the erase value is set to.
If strange have them do
stty erase
If that now back spaces correctly, just set that up in the user's .profile, .login, whatever.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
George Abraham_1
Regular Advisor

Re: Cannot use Stty erase in Exceed

hai

what is the Users login Shell..stty sometimes gives trouble in C.. In Ksh it works fine..

Stty erase ^H

regards
george
keep smiling
PIYUSH D. PATEL
Honored Contributor

Re: Cannot use Stty erase in Exceed

Hi,

Run stty -a on the user terminal and see the output.

You should be very careful in trping this

stty erase "^H"

Use the Shift and 6 for getting --> ^
Use Shift and h for getting --> H

Then do stty -a again to see that it has been set to ^h

Piyush
Michael Elleby III_1
Trusted Contributor

Re: Cannot use Stty erase in Exceed

Here's where we stand guys:

Firstly, thanx for the suggestions...

I issued the stty as the user and noted that even though I had included the actual stty erase "^H" command in his .login, his .cshrc, and the global one /etc/csh.login, that somehow, it was being wiped out/not being set.

Currently, I added this to his .cshrc after I did the stty.. Logged in as the user, and it seems to work, however, the ultimate test is when I have the user login himself and give it a try..

Cheers!

Mike-
Knowledge Is Power
Pete Randall
Outstanding Contributor

Re: Cannot use Stty erase in Exceed

I don't know if this carries over to Exceed, but your issue sounds very similar to one we see with WRQ Reflections. We have to have the keyboards settings thus:
Backspace key sends delete - not checked
Allow clients to remap keyboard - checked

Hope this helps,
Pete

Pete
Tom Maloy
Respected Contributor

Re: Cannot use Stty erase in Exceed

Two possibilities:

(1) an error in the .login/.cshrc file is occurring before the stty command is executed, bombing out of the script.

(2) ^H is the wrong choice. When I telnet into an HP box with Reflections, I get ^? when I hit the backspace key. What does your user get?

Tom
Carpe diem!
Rich Wright
Trusted Contributor

Re: Cannot use Stty erase in Exceed

Have you verified that csh is his default login shell?
Mark Greene_1
Honored Contributor

Re: Cannot use Stty erase in Exceed

I am running exceed (v6.2.0.0), telneting to HP's. Here's the stty settings in my .profile:

stty -ixany -iexten
stty erase ^H
stty kill ^U
stty intr ^C

Make sure that the TERM is set to either xterm or vt100. If the TERM is something else, you may have a problem with how backspace has been defined in the terminfo file for that emulation.

Also, make sure that you are NOT executing in the .profile/.login any stty sane, reset, or tset that may monkey with the backspace setting.

From this client's connection, do a "ttytype" and see what it returns. Mine returns "vt100", even though the TERM variable is set to "xterm", but the backspace works ok.

HTH
mark




the future will be a lot like now, only later
Michael Elleby III_1
Trusted Contributor

Re: Cannot use Stty erase in Exceed

To finish this one off, as I had indicated in my last reply. Somehow, the stty command was either not being executed or the setting being crunched when the user would login...

Once I was able to confirm by modifying his .cshrc to issue the command, and I was finally able to make contact with the user and have the user logged in, everything worked great, and the user is happy...

Again, thanx for your suggestions..

Mike
Knowledge Is Power