Initial revision
[LeanCalc.git] / help / isatty
1 NAME
2     isatty - returns 1 if fd assocatied with a tty
3
4 SYNOPSIS
5     isatty(fd)
6
7 TYPES
8     fd          any
9
10     return      int
11
12 DESCRIPTION
13     This function returns 1 if fd is associated with a tty, 0 otherwise.
14
15
16 EXAMPLE
17     > print isatty(files(0)), isatty(files(1)), isatty(files(2))
18             1 1 1
19     > fd = fopen("/dev/null", "r")
20     > isatty(fd)
21             0
22
23 LIMITS
24     none
25
26 LINK LIBRARY
27     none
28
29 SEE ALSO
30     errno, fclose, feof, ferror, fflush, fgetc, fgetline, fgets, files, fopen,
31     fprintf, fputc, fputs, fseek, fsize, ftell, isfile, printf, prompt,
32     isassoc, isblk, isconfig, isdefined, iserror, iseven, isfile,
33     ishash, isident, isint, islist, ismat, ismult, isnull, isnum, isobj,
34     isobjtype, isodd, isprime, isrand, israndom, isreal, isrel,
35     issimple, issq, isstr, istype
36