_sys_istty()

Defined in rt_sys.h, this function determines if a file handle identifies a terminal.

Show/hideSyntax

int _sys_istty(FILEHANDLE fh);

Show/hideUsage

When a file is connected to a terminal device, this function provides unbuffered behavior by default (in the absence of a call to set(v)buf) and prohibits seeking.

Show/hideReturns

The return value is one of the following values:

0

There is no interactive device.

1

There is an interactive device.

other

An error occurred.

Show/hideSee also

Reference

ARM C and C++ Libraries and Floating-Point Support User Guide:

Copyright © 2014 ARM. All rights reserved.ARM DUI 0809B
Non-ConfidentialID121814