package pageantty
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=e5d5a75f322ebdd4a54f66ca3b0c2574514537cf6f9bfec6d4db7d57cea9f7f5
sha512=69aee81a3bd2bc4bb9d12d87c7bc157167d52f2ceb3eebd4433cc983f10141d21185ced5f7e330fedbe58e19c9e3bc5097671f72ab1685314c8dbe7e13aeb318
Description
[pageantty] provides utility libraries for running pagers in the terminal.
It includes [Git_pager], a small one-module library for displaying Git diffs and other custom outputs in a terminal pager.
This is useful for tools that integrate with Git and need to display output exceeding one screen, while respecting user color preferences and Git's configuration.
README
git-pager
Welcome to git-pager, a small one-module OCaml library for running a Git pager to display diffs and other custom outputs in the terminal.
It is particularly useful for tools that integrate with Git and need to display output exceeding one screen, while respecting user color preferences and Git's configuration.
Hello Pager
Here is a short example using the Git_pager
. It will run a pager according to your git config, and allows you to access an Out_channel.t
where you can write the output to:
let () =
Git_pager.run ~f:(fun pager ->
let write_end = Git_pager.write_end pager in
Printf.fprintf write_end "Hello, pager!\n")
;;
Published named
To publish this project to opam we're using a packaging naming scheme where pageantty
is a namespacing prefix.
pageantty
(pronounced: "pageant-T-Y", like "pageant" + the letters "T" and "Y", IPA: /ˈpædʒənt ti waɪ/).
The current Git_pager
module is available as the main library of the pageantty.git-pager
sub-package.