mapping delete key

Richard D. Williams richard at appgrp.net
Wed Feb 21 11:24:52 PST 2007


Mark and Paul,

Thank you for your insight.  I actually solved this in a very simple way.

All users access this app via a script.  I just place the following in 
that script and it worked.

case $TERM in
    xterm)
        stty erase "^H"
        stty intr "^?"
        stty susp ""
        stty eol ""
        stty rprnt ""
        stty werase ""
        stty eol2 ""
    ;;
esac

This was a snipet of code from the /etc/profile that brian at aljex.com 
posted many years ago to get filepro working properly with Linux.  Some 
of my users are coming into this app via a thin-client linux server 
using a gnome desktop ssh session.  Therefore my choice of emulations is 
limited. 

The solution I have will only effect filepro via one of these sessions.  
All other users who access are coming in via a ssh session directly 
using alphacom.  Alphacom has the best filepro scoansi emulation I have 
ever seen and it is only $25 per seat.

Many thanks.  You guys really go tme thinking outside the box.

Richard D. Williams


Fairlight wrote:

>Only Richard D. Williams would say something like:
>  
>
>>Does anyone know how I can change the behavior of the delete key for a 
>>xterm emulation?
>>This would be for filepro only. 
>>
>>I would like to change my filepro termcap so the Delete key works the 
>>same as the scoansi Delete key instead of having to do a ctrl-c.
>>    
>>
>
>man xmodmap
>
>I don't actually remember the full syntax anymore though.  Been quite a
>while since I've regularly used X11.  There's a section in the examples in
>the man page that shows setting Backspace to emit "^?", so you should be
>able to extrapolate.
>
>You're not exactly on about just for an xterm though.  Using something like
>xmodmap is going to change it server-wide (well, session-wide).  So if that
>key is currently doing something like the IBM Remove "^[[3~" sequence, and
>you force it to generate 0x7F, -all- your applications are going to have to
>be able to cope with that key emitting that.  For an xterm, you'll just
>need to set INTR to "^?", and that's no problem.  Most other things don't
>care.  Some might, though.  Web browsers used to have funny ideas about ^H
>vs ^? in text input widgets--especially Motif-based anything.
>
>But for an xterm to do what you want, you need to xmodmap to get the key
>emitting the right code, and -also- stty inside the shell, or set that
>discipline when starting the xterm (-tm intr "^?").  You need the
>combination of actions for this to work.
>
>mark->
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20070221/749e2831/attachment.html 


More information about the Filepro-list mailing list