On Mon, 2004-08-23 at 16:43, David Johnston wrote:
> On Mon, 2004-08-23 at 07:23, Dirk H Bartley wrote:
> > Greetings
> > 
> > I have users on LTSP terminals logging in to a server to get access to a
> > business application.  In this application the backspace key does not
> > work from the client.
> 
> I used to run into this on AIX machines a lot.  There are two possible
> fixes, both easy once you figure out which you need.
> 
> First, check TERM.  I'd bet that it isn't set the same on your terminals
> and on your remote host.  Change it on the remote host, not on the
> terminals.  This environmental variable tells many programs how to
> communicate with the terminal (but it doesn't change the terminal's
> behavior at all, so changing it on the terminals won't help).

Yes, the TERM is just an environment variable intended to communicate to
the application how to behave.  The application leaves a little (ok
alot) to be desired and interprets the terminal to vt100.  TERM on the
ltsp client is "linux" and TERM on the application host once telnetted
in is also "linux".  Once the application is started and the application
has performed some inquiries into the behavior of the terminal, the
application has changed the TERM environment variable to "vt100".  I
know this because the application allows me to run a bash command if I
want and echo $TERM tells me so.


> 
> So, telnet to your remote host, type 'export TERM=linux', and start your
> app.  If the backspace key works, put that in the remote host's
> equivalent of .bash_profile and you're done.
> 
> If you get an error about TERM=linux, it means that linux isn't listed
> as a termtype in /etc/termcap.  You can either edit that file or try one
> of the other termtypes, such as ascii or dumb.
> 
> If linux isn't in /etc/termcap and you don't want to waste time adding
> it (it's a nuisance, no doubt about it), you can use stty to work around
> it.
> > 
> > I've tried using the stty command ( stty erase \^H ) to no avail.
> 
> I think you did this backwards.  The character after 'erase' should be
> what your terminal is sending, not the character you wish it sent.  Try
> 'stty erase ^V<BS>' (hit control-V, then the backspace key) while
> connected remotely.
> 
> Good luck!

I'd rather be lucky than talented.  Unfortunately I am neither when it
comes to solving this issue as of yet.

When I change the compatibility settings to control-h in a gnome
terminal, pressing the backspace sends 0x08 accross the wire and the
backspace key gives me the results I want.  When I am in a linux
terminal such as a tty on a linux machine or on a tty on an ltsp client
and I am telnetted to my application host the backspace will cause a
0x7f to travel across the wire.  Is there a way using stty or any other
method to change the behavior of an ltsp client (or a linux console for
that matter) so that the backspace key will send the backspace character
0x08 to the application host?

It seems like gnome terminal is working because it has the opportunity
to perform filtering of the keystrokes before they are sent to the
host.  My understanding is that stty does not perform filering??

Dirk



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to