etch_erlang

Package VersionHex Docs

Erlang target package for etch — a Gleam TUI backend library.

This package provides the Erlang FFI implementations for terminal raw mode and input handling. It must be used alongside the core etch package.

Installation

gleam add etch_erlang

Usage

The package exposes two modules:

import etch/erlang/tty
import etch/erlang/input

pub fn main() {
  let assert Ok(_) = tty.enter_raw()
  input.init_event_server()
  // ... handle events ...
}