README.md

June 4, 2024 ยท View on GitHub


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.

InterfaceRetrun valueArgumentsDescription
function isatty(unit)logicalunit (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 - yymmt@kuchem.kyoto-u.ac.jp

(back to top)