- Zig 96.8%
- Shell 2.2%
- Python 1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| bench | ||
| src | ||
| terminfo | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| LICENSE | ||
| README.md | ||
ado
ado is a terminal emulator for Wayland, written in Zig.
Building
Dependencies:
- zig master, see
minimum_zig_versionin build.zig.zon - pkg-config
- wayland, xkbcommon and fcft
- tic from ncurses, for the terminfo entry
Then install ado and its terminfo entry, for example:
zig build -Doptimize=ReleaseFast --prefix ~/.local install
tic -x -e ado,ado-direct -o ~/.terminfo terminfo/ado.info
Terminfo
ado sets TERM=ado, so its terminfo entry must be installed on every
machine you run it on. Without it, programs fall back to a dumb terminal:
less warns "terminal is not fully functional" and leaves the screen in a
bad state, and full-screen programs misbehave. ado checks for the entry
when it starts and prints a warning in the window if it is missing.
For your user only:
tic -x -e ado,ado-direct -o ~/.terminfo terminfo/ado.info
System-wide, as root:
zig build install-terminfo --prefix /usr
ncurses only looks in ~/.terminfo and /usr/share/terminfo by default,
so installing it with --prefix ~/.local puts it where nothing finds it.
Hosts you ssh into need the entry too. To copy it over:
infocmp -x ado | ssh host 'tic -x -o ~/.terminfo -'
Configuration
ado reads ~/.config/ado/ado.ini, or the file given with -c. For example:
[main]
font=monospace:size=12
font-fallback=Noto Color Emoji
blink-cursor = no
[colors]
alpha=0.9
ado --help lists the command-line options.