fp Termcap issue

Bill Campbell bill at celestial.com
Thu May 28 21:16:10 PDT 2009


On Thu, May 28, 2009, Fairlight wrote:
>On Thu, May 28, 2009 at 02:21:54PM -0700, after drawing runes in goat's blood,
>Bill Campbell cast forth these immortal, mystical words:
>> 
>> My advice is to suck it up and use ctrl-C as pretty much every OS
>> in the world except for SCO's do.  The DEL key on many (most)
>> non-console keyboards does not send the DEL (ctrl-?) character
>> sent by SCO consoles while ctrl-C works anywhere.
>
>Concur.
>
>Likewise, your "Insert" mode toggle was formerly ^Z in SCO, but it'll be
>something else in Linux (or -any- POSIX-compliant system whose shells
>honour POSIX job control).  That's normally SIGSUSP, and you don't want
>your insert toggle key sitting on top of suspend.  That's another one I'd
>just suck it up and learn the new binding.

It's a Good Idea(tm) to disable job control for programs like FilePro where
the users most likely don't have any understanding of background processes.
When we were teaching Unix classes, it wasn't uncommon for students to have
multiple copies of ``vi'' running in the background when they hit ctrl-Z
instead of SHIFT-Z.

This is easy to do on *nix systems with a couple of commands in
the startup script:

#!/bin/sh

# this saves the current stty settings
NORMTTY=`stty -g 2>/dev/null`;  export NORMTTY

# Disable job control
stty susp ''
# do your stuff here

# restore original setting.
stty $NORMTTY

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  Skype: jwccsllc (206) 855-5792

When only cops have guns, it's called a police state.
        -- Claire Wolfe, "101 Things To Do Until The Revolution"


More information about the Filepro-list mailing list