


TTYTEST(SFS3)     MISC. REFERENCE MANUAL PAGES      TTYTEST(SFS3)



NAME
     ttytest - test if process connected to foreground terminal

SYNOPSIS
     int   ttytest()

DESCRIPTION
     ttytest() is a routine to check if it is sensible to  report
     messages  to  the standard output.  It returns 1 if the pro-
     cess is connected to a terminal and is running in the  fore-
     ground, and 0 otherwise.


     To force detection of a terminal, set the environment  vari-
     able GFORCE.

VERSION/AUTHOR
     1.0 - Mark Huckvale

SOURCE
     /ptemp/mark/sfs/libsfs/ttytest.c


































SFS                     Last change: UCL                        1



