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.