# Functions
AcquireTerm locks and returns the global terminal.
ClaimTerminal sets the terminal to raw input mode and returns a RestoreFunc for resetting the terminal to normal mode.
GetCommands returns a copy of the global commands.
GetTerm returns the global terminal state.
InputChan listens for runes on stdin and writes them to the returned channel.
ProcessInput reads runes from input chan and executes the `commands` mapped to the received input keys.
Prompt sets the global prompt message displayed in the interactive log line.
PromptVerbose sets the global prompt message if in debug mode.
QuitCommands returns quit commands.
SetCommands sets the global commands.
SetupLogging configures interactive logging for commandline applications.
SigWait waits for OS signals and cancels the given context on SIGINT or SIGTERM.
WithInput makes sigwait run the given commands on receiving user input.
WithoutClock disabled the default ascii/unicode clock in the last terminal line.
WithQuit add the default quit commands and enables user input.
WithSigWait returns a context.Context that is canceled on OS signal.
# Constants
Supported logger types.
CR is the carriage return byte.
NL is the newline byte.
TimeFormatHuman is the only reasonable time format for human readability.
# Structs
Clock stores the current clock step and text.
Command define a command.
DisplayTime defines the visible values for a time.
Term stores shared terminal state about loggers, the underlying terminals, and commands.
# Type aliases
CommandInfoFormatter formats a command.
Commands provides convenient functions on a list of commands.
LogSetupFunc configures a specific Logger.
Option defines a sigwait option.
RestoreFunc restores the terminal.