Germinal

A gleam (not pure-gleam), terminal manipulation library based on crossterm and rustler. Currently, the functionality is not complete and unsafe to use. This library can only be run in erlang VM, but the support of Javascript would be considered in the future.

To see the source code, see Github.

Package Version Hex Docs

gleam add germinal
import germinal

pub fn main() {
   use _ <- result.try(germinal.enable_raw_mode())
   use res <- result.try(germinal.read())
   io.debug(res)
   use _ <- result.try(germinal.disable_raw_mode())
   Ok(Nil)
}

Further documentation can be found at https://hexdocs.pm/germinal.

Development

gleam run   # Run the project
gleam test  # Run the tests
gleam shell # Run an Erlang shell
Search Document