Skip to content

isatty - determine if a file unit is a terminal (teletypewriter) #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ivan-pi opened this issue Mar 11, 2021 · 0 comments
Open

isatty - determine if a file unit is a terminal (teletypewriter) #12

ivan-pi opened this issue Mar 11, 2021 · 0 comments

Comments

@ivan-pi
Copy link

ivan-pi commented Mar 11, 2021

Suggested by @14NGiestas in fortran-lang/stdlib#193 (comment)

Many compilers already have their own extensions for this:

Corresponding routines to query the terminal name:

The Intel run-time library actually provides these routines in two places, the IFPOSIX Posix-compliant library and the portabiliy library module IFPORT (under the names isatty and ttynam).

Linux man pages:

Windows:

Other possible enhancements could include functions to query the size of the terminal (an example can be found in @zbeekman's zstdlib project).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant