TUT 0.0.1 is a local plain-text reader for macOS and Linux terminals. It reads one UTF-8 file, wraps text by terminal cell width, and provides navigation and literal search without modifying the source.
- Rust 1.88.0 or later
- Cargo
- GNU Make for the conventional build interface
- A UTF-8 terminal with separate terminal stdin and stdout
make
make check
make install prefix=/usr/localPackage builders can stage an installation without changing the live system:
make install DESTDIR="$package_root" prefix=/usr
make installcheck DESTDIR="$package_root" prefix=/usrCargo remains available as the lower-level interface:
cargo build --release --locked
cargo test --all-targets --lockedtut [OPTION]... FILE
Use tut -- FILE when the filename begins with -. --help and --version do not require a terminal.
TUT accepts regular files and symlinks to regular files. Input must be valid UTF-8 and no larger than 33,554,432 raw bytes. One leading UTF-8 BOM is removed, and CRLF or lone CR line endings become LF. The source file is never written.
| Key | Action |
|---|---|
j, Down |
Move down one visual row |
k, Up |
Move up one visual row |
| Space, Page Down, Ctrl-F | Move down one page |
b, Page Up, Ctrl-B |
Move up one page |
| Ctrl-D, Ctrl-U | Move half a page |
g, Home |
Go to the start |
G, End |
Go to the end |
/ |
Edit a literal search |
| Enter, Escape | Commit or cancel search editing |
n, N |
Select the next or previous match |
q, Ctrl-C |
Quit |
Search is case-sensitive, literal, and byte-preserving. A search draft is limited to 4096 UTF-8 bytes. Backspace removes one extended grapheme cluster.
0for help, version, normal quit, and keyboard Ctrl-C1for file, terminal, allocation, rendering, event, or restoration failure2for command-line usage errors129,130, or143for external SIGHUP, SIGINT, or SIGTERM after successful restoration
Diagnostics use the tut: message form on standard error. Terminal control characters in paths and diagnostics are escaped.
Version 0.0.1 intentionally has no stdin document input, network access, configuration, persistence, plugins, Markdown semantics, or Web support. It uses the narrow Unicode terminal-width policy; rendering can still vary with terminal font and emulator behavior.
TUT is free software distributed under the MIT License. See LICENSE.