ISATTY

8.134 ISATTY — Whether a unit is a terminal device.

Description:
Determine whether a unit is connected to a terminal device.
Standard:
GNU extension
Class:
Function
Syntax:
RESULT = ISATTY(UNIT)
Arguments:
UNIT Shall be a scalar INTEGER.
Return value:
Returns .TRUE. if the UNIT is connected to a terminal device, .FALSE. otherwise.
Example:
PROGRAM test_isatty
  INTEGER(kind=1) :: unit
  DO unit = 1, 10
    write(*,*) isatty(unit=unit)
  END DO
END PROGRAM
See also:
TTYNAM

© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-4.9.3/gfortran/ISATTY.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部