[comp.os.minix] help with getty

paul@ukpoit.co.uk (Paul Wood) (01/29/91)

Can anybody help with getty? I'm having some problems with it :-) .

The documentation is sadly lacking in this area. As far as I can tell (please
correct me if I'm wrong) the valid settings in /etc/gettydefs are:
        B300                         Set baud rate to 300
        B1200                        Set baud rate to 1200
        B2400                        Set baud rate to 2400
        B4800                        Set baud rate to 4800
        B9600                        Set baud rate to 9600
        BITS5                        Set character size to 5 bits
        BITS6                        Set character size to 6 bits
        BITS7                        Set character size to 7 bits
        BITS8                        Set character size to 8 bits
        TABS [or -TABS]              Expand TAB characters to spaces [or not]
        EVEN [or -EVEN]              Use even parity [or not]
        ODD [or -ODD]                Use odd parity [or not]
        NONE                         Use no parity
        ECHO [or -ECHO]              Echo characters [or not]
        NL [or -NL]                  Convert \n to \r\n [or not]
        CBREAK [or -CBREAK]          Enter cbreak mode [or not]
        RAW [or -RAW]                Enter raw mode [or not]
        DCD [or -DCD]                Use data carrier detect signals [or not]
        DEFAULT or SANE              Use default (ie: reasonable) settings

The format of the /etc/gettydefs file is:
<label># <initial settings> # <final settings> #<login prompt> #<next label>

Currently my /etc/gettydefs looks like:
--------------------------------------------------------------------------------
2400# SANE B2400 # SANE 2400 #Minix login: #1200

1200# SANE B1200 # SANE 1200 #Minix login: #300

300# SANE B300 # SANE 300 #Minix login: #2400

--------------------------------------------------------------------------------

Now this DOES NOT WORK. My phone answers and then hangs. The DCD option looks a
likely candidate for my problem, but it takes 24hours at least for me to test
each change I make, which is very frustrating.

getty.c has an option in it called CHOICE_A (and B). Setting CHIOCE_A causes
getty to hang (apparently). It is difficult to test, when I'm at work I can
call my Mac at home, but I can't see what goes wrong - or right, only if it
works will I be able to tell if it works :-).

Can someone point me in the right direction?

I am running a MacPlus and a Racal-Vadic VI2422S.