8000 GitHub - j-c-m/blackcat: blackcat - a modern cat written in rust · GitHub
[go: up one dir, main page]

Skip to content
j-c-mPublic

About

blackcat - a modern cat written in rust

Resources

Stars

34 stars

Watchers

1 watching

Forks

Latest commit

 

History

113 Commits

Folders and files

Repository files navigation

blackcat

A modern cat, written in Rust.

  • Kitty graphics protocol, including POSIX shared memory when the terminal can read it
  • ANSI screen rendering, auto-detected
  • CP437 to Unicode, auto-detected
  • Mostly GNU cat compatible otherwise

PCX, IFF, RAS, SGI, and XBM are copied as bytes.

Installation

Homebrew

brew install j-c-m/tap/blackcat

Binaries

Archives are on the latest release. Linux archives are glibc builds.

  • blackcat-linux-x86_64
  • blackcat-linux-aarch64
  • blackcat-macos-x86_64
  • blackcat-macos-aarch64
  • blackcat-freebsd-x86_64
  • blackcat-freebsd-aarch64

From source

cargo build --release

Usage

USAGE: blackcat [OPTION]... [FILE]...

Concatenate FILE(s) to standard output.

With no FILE, or when FILE is -, read standard input.

Options:
  -a, --ansi[=WIDTH]        force ANSI terminal rendering mode (default width 80)
  -A, --show-all            equivalent to -vET
  -b, --number-nonblank     number nonempty output lines, overrides -n
  -c, --cp437               force CP437 to Unicode
  -e                        equivalent to -vE
  -E, --show-ends           display $ at end of each line
  -k, --no-image            disable image rendering via Kitty protocol
  -n, --number              number all output lines
  -s, --squeeze-blank       suppress repeated empty output lines
  -t                        equivalent to -vT
  -T, --show-tabs           display TAB characters as ^I
  -v, --show-nonprinting    use ^ and M- notation, except for LFD and TAB
      --help                display this help and exit
      --version             output version information and exit

EXAMPLES
  blackcat f - g      Output f's contents, then stdin, then g's contents.
  blackcat            Copy stdin to stdout.

About

blackcat - a modern cat written in rust

Resources

Stars

34 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0