Re: [SLE] backspace key and TERM var



Mark Hounschell wrote:
Can anyone tell me which terminal type to set the env TERM variable to
that would give be an 0x08 instead of a 0x7f when I hit the backspace
key on SuSE-10.0? In konsole when I select the vt420pc terminal type it
does the job. I need to do the same thing on a normal linux console.

Thanks
Mark


I ran across this little expect script that does this

#!/usr/bin/expect

eval spawn -noecho $argv

interact {
\177 {send "\010"}
"\033\[3~" {send "\177"}
}

When I start my program using this script "script program" it works. The
backspace key gives me 0x08 an the delete key gives me 0x7f. However I'm
looking for bash commands that will do the same thing for me? The TERM
variable I mentioned above come to find out is pretty much useless these
days anyway. So any keybrd experts out there?

Thanks
Mark

--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx



Relevant Pages

  • Re: Script w/ backquotes not working.
    ... >I am writing a script that has a windows path in it. ... The translation \b to backspace is being done by the "echo" command. ...
    (comp.unix.shell)
  • Re: Running Login Script after establishing a VPN connection
    ... What calls up your VB Script program? ... This would be equivalent to your current VB Script program ... The network drive disconnects before the bat file ... Set WshShell = CreateObject ...
    (microsoft.public.windows.server.scripting)
  • Referencing an Attribute of the Calling Object
    ... Script program' has exited with code 0. ... sDim = 600; function imgSizeChange ...
    (microsoft.public.scripting.jscript)
  • Re: prompting for a password
    ... printf "*" ... It doesn't work in the Apple create_user script. ... it didn't do the backspace either. ... For versatility don't specify a name var for read command, bash ...
    (comp.unix.shell)
  • Re: prompting for a password
    ... It doesn't work in the Apple create_user script. ... it didn't do the backspace either. ...
    (comp.unix.shell)