Haskell library for creating command-line interfaces (colors, menus, etc.)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Peter J. Jones f2e6eb1926
Clean up the build system
преди 2 месеца
examples Changed menus so they default to the first item преди 4 години
nix Clean up the build system преди 2 месеца
src/System/Console Fix failing builds due to the Semigroup Monoid Proposal преди 1 година
.envrc Clean up the build system преди 2 месеца
.gitignore Bump version for 0.3.0.0 release преди 2 години
AUTHORS Update metadata after merging #5 преди 2 години
CHANGES.md Update dependency versions and release 0.3.2.1 преди 7 месеца
LICENSE Update dependency versions and release 0.3.2.1 преди 7 месеца
README.md Remove old build status badge and unused files преди 7 месеца
Setup.hs Initial commit преди 4 години
TODO Use bracketOnError to properly clean up Haskeline преди 4 години
byline.cabal Update dependency versions and release 0.3.2.1 преди 7 месеца
default.nix Clean up the build system преди 2 месеца
shell.nix Clean up the build system преди 2 месеца

README.md

Byline

Byline simplifies writing interactive terminal applications by building upon ansi-terminal and haskeline. This makes it possible to print messages and prompts that include terminal escape sequences such as colors that are automatically disabled when standard input is a file. It also means that Byline works on both POSIX-compatible systems and on Windows.

The primary features of Byline include printing messages, prompting for input, and generating custom menus. It was inspired by the highline Ruby library and the terminal library by Craig Roche.

Examples

Please see the example programs in the examples directory.