GTTY(II)                     8/5/73                      GTTY(II)







NAME

     gtty  -  get typewriter status



SYNOPSIS

     (gtty = 32.)

     (file descriptor in r0)

     sys gtty; arg

     ...

     arg: .=.+6



     gtty(fildes, arg)

     int arg[3];



DESCRIPTION

     Gtty stores in the three words addressed by arg  the  status

     of  the  typewriter  whose  file  descriptor  is given in r0

     (resp. given as the first argument).  The format is the same

     as that passed by stty.



SEE ALSO

     stty (II)



DIAGNOSTICS

     Error bit (c-bit) is set if the  file  descriptor  does  not

     refer  to  a typewriter.  From C, a -1 value is returned for

     an error, 0, for a successful call.