Show text files in the terminal
  • Rust 80.4%
  • Roff 11.9%
  • Makefile 5.7%
  • Shell 2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-19 02:29:59 +03:00
scripts Embed version number from git 2026-09-16 22:17:03 +03:00
src Embed version number from git 2026-09-16 22:17:03 +03:00
vendor Move to lexopt 2026-09-10 00:20:02 +03:00
.gitattributes Don't include an empty vendor/lexopt in release archives 2026-09-19 00:42:49 +03:00
.gitignore Ignore minicargo output directory as well 2026-09-19 02:16:39 +03:00
.gitmodules Move to lexopt 2026-09-10 00:20:02 +03:00
build.rs Embed version number from git 2026-09-16 22:17:03 +03:00
Cargo.lock Release version 1.0 2026-09-19 02:29:59 +03:00
Cargo.toml Release version 1.0 2026-09-19 02:29:59 +03:00
CC0 First commit 2026-06-28 00:24:20 +03:00
git-keywords-expansion.text Embed version number from git 2026-09-16 22:17:03 +03:00
INSTALL.md Spellcheck 2026-09-19 02:28:39 +03:00
kato.1 Allow omitting the start/end of a lines range 2026-09-14 21:06:55 +03:00
Makefile Allow overriding install(1) command 2026-09-19 02:16:27 +03:00
README Less clunky wording in README 2026-09-19 00:12:02 +03:00
rustfmt.toml First commit 2026-06-28 00:24:20 +03:00

Kato ('look' in my dialect of Finnish, also a pun on cat(1), also the
Finnish word for 'loss, disappearance') is a tool for showing the
contents of text files in a terminal.

Compared to cat, kato
+ marks where one file ends and another begins, if invoked on multiple
+ does not send arbitrary escape sequences to your terminal
- will not work on terminals that don't implement ANSI escape sequences

Compared to bat, kato
+ uses an output format allowing a clean copy-paste of the file contents
± has no syntax highlighting
± does not try to pass-through a safe subset of ANSI escapes
± will not invoke a pager automagically

Kato is written 100% in `unsafe`-less stable Rust, and can be built
either with the rust-lang.org reference Rust compiler or with mrustc.
You can use either cargo or a POSIX-compliant make as the build
system.

The source code of kato is available under CC0 or GPLv3 at your
preference. The compiled binary incorporates lexopt, and as such is
additionally covered by the MIT license.