xterm notes with FilePro, 5.0.13, SCO 5v6.0.0
Bill Campbell
bill at celestial.com
Tue Jun 10 15:33:25 PDT 2008
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
--
INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
Voice: (206) 236-1676 Mercer Island, WA 98040-0820
Fax: (206) 232-9186
You know the one thing that's wrong with this country? Everyone gets a
chance to have their fair say. -- Bill Clinton, May 29, 1993, The White House
-------------- next part --------------
! keypad mappings for Apple with Microsoft Natural keyboard
keycode 91 = 1
keycode 90 = 0
keycode 92 = 2
keycode 93 = 3
keycode 94 = 4
keycode 95 = 5
keycode 96 = 6
keycode 97 = 7
keycode 99 = 8
keycode 100 = 9
keycode 73 = period
keycode 83 = slash
keycode 75 = asterisk
keycode 86 = minus
keycode 77 = plus
keycode 84 = Return
! Microsoft Ergonomic 4000
keycode 89 = equal
More information about the Filepro-list
mailing list