https://github.com/cvik/erl_isatty
erl_isatty - Erlang NIF wrapper for unix 'int isatty(int)'
https://github.com/cvik/erl_isatty
Last synced: 2 months ago
JSON representation
erl_isatty - Erlang NIF wrapper for unix 'int isatty(int)'
- Host: GitHub
- URL: https://github.com/cvik/erl_isatty
- Owner: cvik
- License: apache-2.0
- Created: 2017-05-24T10:26:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-24T10:28:53.000Z (about 9 years ago)
- Last Synced: 2025-01-16T14:28:44.402Z (over 1 year ago)
- Language: Erlang
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## erl_isatty - Erlang NIF wrapper for unix 'int isatty(int)'
## Spec
```erlang
-spec isatty(FD::integer()) -> boolean().
```
Will crash with `badarg` if `FD` is not integer() between `-2 bsl 30` and `+2 bsl 30-1`.
## Example usage
```erlang
erl_isatty:isatty(1). % -> true
```
## License
Apache license version 2.0. See the LICENSE file for details.