xterm notes with FilePro, 5.0.13, SCO 5v6.0.0
Jose Lerebours
fp at fpgroups.com
Wed Jun 11 06:35:44 PDT 2008
Bill posted:
> This may have been covered on this list, but in case it hasn't.
>
> I just went through a bit of hassle getting FilePro working via a iMac
> running Leopard (10.5.x) xterm on an SCO 5.v6.0.0 system. The process was
> not difficult -- if you've been hacking termcaps for a quarter century :-).
>
> These changes should work for any modern xterm on Linux, FreeBSD, Apple
> OS X, etc.
>
> First things are OS X specific.
>
> Go into System Preferences->Keyboard->Modifier Keys and set Caps Lock to No
> Action. This will avoid issues where you may get locked in upper case.
> There is another setting that will make the function keys send function key
> codes without pressing the <FN> key. Set that as you're going to want F-
> key codes far more frequently than adjusting the brightness or volume with
> the function keys.
>
> On the SCO system, put something in your .profile like the following
> script. This will set TERM=xterm-new any time your TERM variable starts
> with xterm. The xterm-new entry in /etc/termcap has the proper function
> key mappings for current xterms. This also sets the interrupt key to ctrl-
> C as $DEITY intended.
>
> # set terminal type
> ##eval `tset -m at386:${TERM:-at386-ie} -m :\?${TERM:-at386-ie} -e -r -s -Q`
> case "$TERM" in #{((
> xterm*)
> stty intr '^C' erase '^H'
> TERM=xterm-new
> ;;
> *) TERM=scoansi;;
> esac #}
> export TERM
>
> Edit the /appl/fp/termcap (or wherever you put it), Find the
> line that defines the xterm, (line 24 in the one I edited) which
> will look something like this:
>
> xterm|xterm-color|rxvt|XFree86 3.3.x xterm or rxvt 2.x:|
>
> Add ``xterm-new|' to the line so it looks like this:
>
> xterm|xterm-new|xterm-color|rxvt|XFree86 3.3.x xterm or rxvt 2.x:\
>
> Save the file, and things should now Just Work(tm).
>
> I am also including my $HOME/.Xmodmap file that I use with my Mac Mini,
> getting the numeric keypad settings of Microsoft Natural keyboards to send
> the proper numeric characters in ncurses applications, including vi(m).
> While X11 on Macs *SHOULD* automatically find this file on startup,
> executing the following command will do it in any case. It only has to be
> done once to be effective for the duration of the X11 session.
>
> xmodmap "$HOME/.Xmodmap"
Bill,
I took the liberty of posting this at fpgroups.com as an article as well.
http://www.fpgroups.com/index.php?Target=akb
Hope you don't mind!
Regards,
--
Jose Lerebours
http://www.fpgroups.com
954-559-7186
filePro + PHP Solution Developer
More information about the Filepro-list
mailing list