M_ncurses(3f) is a Fortran module that allows use of the ncurses(3c) library for controlling and formatting terminal displays.
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.
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"}
- M_ncurses -- An overview of the M_ncurses module
The ncurses library must be available on the system. The home page for ncurses describes various installation methods.
sudo apt-get install ncurses-dev
sudo updatedb
locate ncurses.h