README.md
June 4, 2024 ยท View on GitHub
fsys
Wrapper module for system control from fortran
Table of Contents
Getting Started
Prerequisites
- gcc >= 9.4.0
- gfortran >= 9.4.0
- cmake >= 3.9
Installation
- Clone the repo
git clone https://github.com/yymmt742/utf8f - Build fortran library
mkdir build && cd build cmake .. make install
Usage
program main
use fsys
implicit none
print*, isatty() ! T if OUTPUT_UNIT is tty.
end program main
The following suboruotines are available.
| Interface | Retrun value | Arguments | Description |
|---|---|---|---|
| function isatty(unit) | logical | unit (integer, optional) | Returns .true. if unit is TTY. If unit is not INPUT_UNIT, OUTPUT_UNIT, or ERROR_UNIT, .false. is always returned. |
| subroutine sleep(sec) | sec (real, double precision) | Sleep the process. | |
| subroutine winsize(x, y) | x, y (integer) | Get console size. |
License
Distributed under the MIT License. See LICENSE for more information.
Contact
YYMMT742 - yymmt@kuchem.kyoto-u.ac.jp