The Wayback Machine - https://web.archive.org/web/20251125114838/https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-guide-reference/2025-2/ttynam.html

Intel® Fortran Compiler

Developer Guide and Reference

ID 767251
Date 6/30/2025
Public
Document Table of Contents

TTYNAM

Portability Subroutine: Specifies a terminal device name.

Module

USE IFPORT

CALL TTYNAM (string,lunit)

string

(Output) Character*(*). Name of the terminal device. If the Fortran logical unit is not connected to a terminal, it returns a string filled with blanks.

lunit

(Input) INTEGER(4). A Fortran logical unit number.