etch/stdout
This module provides a way to queue and flush commands.
import stdout.{Queue, queue, flush}
let q = Queue([])
queue(q, [
EnterRaw,
EnterAlternativeScreen,
HideCursor,
Println("Hello from Etch"),
])
flush(q)
Types
Queue for the Commands to flush.
pub type Queue {
Queue(commands: List(command.Command))
}
Constructors
-
Queue(commands: List(command.Command))
Values
pub fn execute(commands: List(command.Command)) -> Nil
Flushes Commands without queueing them beforehand.