1. Computing & Technology
Linux / Unix Command: isatty
Command Library

NAME

isatty - does this descriptor refer to a terminal  

SYNOPSIS

#include <unistd.h>

int isatty(int desc);
 

DESCRIPTION

returns 1 if desc is an open descriptor connected to a terminal and 0 else.  

CONFORMING TO

SVID, AT&T, X/OPEN, BSD 4.3  

SEE ALSO

fstat(2), ttyname(3)


Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

Discuss in my forum

©2012 About.com. All rights reserved.

A part of The New York Times Company.