urbanjost / M_history

input line history editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Fortran subroutine called redo(3f) may be used to give a line-mode command history to interactive programs.

Building

    git clone https://github.com/urbanjost/M_history.git
    cd M_history/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_history module and build the example program in the app/ sub-directory using the source file M_history_standalone.f90.

Supports FPM fpm

(registered at the fpm(1) registry )

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

     git clone https://github.com/urbanjost/M_history.git
     cd M_history
     fpm build
     fpm test

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

     [dependencies]
     M_history        = { git = "https://github.com/urbanjost/M_history.git" }

Documentation docs

User

Developer

About

input line history editor

License:MIT License


Languages

Language:Fortran 81.6%Language:Shell 17.0%Language:Makefile 1.5%