2 releases

0.1.1 Aug 15, 2023
0.1.0 Jul 4, 2023

#834 in Configuration

MIT license

13KB
236 lines

Terminal Juice

not much on it's own, but beautiful when heated.

Terminal Juice is a wrapper around the termios ABI/API providing a simple interface for setting terminal configurations. Terminal Juice also provides a simple interface for basic terminal operations like cursor placement and printing/reading.

Terminal Juice is intended for creating quick interactive command line interfaces. With it's simple interface and "you get what you pay for" approach, Terminal Juice is extendable to provide the backbone of any system you write.

Warnings

Terminal Juice is an opinionated library, so it may not be well suited for all purpose use. It takes inspiration from How different actions can be chained together via the IO monad in Haskell, while still being able to work with non functional code. This doesn't work like the IO monad in Haskell, don't expect simple & efficient lazy evaluation. Any lazy evaluation implemented will be focused on what can encoded statically (Which will work nicely with optimisation).

No runtime deps