Skip to content

Latest commit

 

History

History
87 lines (67 loc) · 2.69 KB

README.md

File metadata and controls

87 lines (67 loc) · 2.69 KB

fsys

Wrapper module for system control from fortran

CI

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Contact

Getting Started

Prerequisites

  • gcc >= 9.4.0
  • gfortran >= 9.4.0
  • cmake >= 3.9

Installation

  1. Clone the repo
    git clone https://github.com/yymmt742/utf8f
  2. Build fortran library
    mkdir build && cd build
    cmake ..
    make install

(back to top)

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.

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Contact

YYMMT742 - [email protected]

(back to top)