Skip to content

yymmt742/fsys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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 - yymmt@kuchem.kyoto-u.ac.jp

(back to top)

About

system control from fortran

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published