Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/urbanjost/m_ncurses

Fortran interface to the Ncurses C library
https://github.com/urbanjost/m_ncurses

fortran fortran-package-manager ncurses tui

Last synced: about 6 hours ago
JSON representation

Fortran interface to the Ncurses C library

Awesome Lists containing this project

README

        

# M_ncurses.f90 and associated files

![example](docs/images/example.gif)

## 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
```bash
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](docs/images/fpm_logo.gif)

To download the github repository and build it with
fpm ( as described at [Fortran Package Manager](https://github.com/fortran-lang/fpm) )

```bash
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.

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

## Documentation ![docs](docs/images/docs.gif)

- [M_ncurses](https://urbanjost.github.io/M_ncurses/index.html) -- 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, ...
```bash
sudo apt-get install ncurses-dev
sudo updatedb
locate ncurses.h
```