Skip to content

urbanjost/M_ncurses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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