urbanjost / M_ncurses

Fortran interface to the Ncurses C library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

M_ncurses.f90 and associated files

example

Name

M_ncurses - Fortran interface for the C Ncurses library

Description

M_ncurses(3f) is a Fortran module that allows use of the ncurses(3c) library for controlling and formatting terminal displays.

Download and Build with Make

   git clone https://github.com/urbanjost/M_ncurses.git
   cd M_ncurses/src
   # change Makefile if not using one of the listed compilers
 
   # for gfortran
   make clean
   make F90=gfortran gfortran
 
   # for ifort
   make clean
   make F90=ifort ifort

   # for nvfortran
   make clean
   make F90=nvfortran nvfortran

This will compile the M_ncurses module and build all the example programs.

Download and Build with FPM fpm

To download the github repository and build it with fpm ( as described at Fortran Package Manager )

     git clone https://github.com/urbanjost/M_ncurses.git
     cd M_ncurses
     fpm test  # run unit tests

or just list it as a dependency in your fpm.toml project file.

     [dependencies]
     M_ncurses        = { git = "https://github.com/urbanjost/M_ncurses.git" ,tag="v1.0.1"}

Documentation docs

  • M_ncurses -- An overview of the M_ncurses module

Dependencies

The ncurses library must be available on the system. The home page for ncurses describes various installation methods.

ubuntu, mint, ...

sudo apt-get install ncurses-dev
sudo updatedb
locate ncurses.h

About

Fortran interface to the Ncurses C library

License:The Unlicense


Languages

Language:Fortran 94.9%Language:C 2.5%Language:HTML 1.9%Language:Makefile 0.7%Language:Shell 0.0%