at-terminal on Windows, macOS and Linux: Rio (raphamorim/rio) taken over (ATT-19)
  • Rust 82.2%
  • PowerShell 9.8%
  • C 7%
  • Shell 1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nelson 5596efa3db
All checks were successful
Suite release / scope (push) Successful in 8s
Suite release / module (push) Has been skipped
Suite release / check-manifest (push) Has been skipped
Suite release / check-build (rust, x86_64-pc-windows-msvc) (, rust-x86_64-pc-windows-msvc, x86_64-pc-windows-msvc, false, windows-latest, x86_64-pc-windows-msvc, rust) (push) Has been skipped
Suite release / check-package (push) Has been skipped
Suite release / reused-checks (push) Has been skipped
Suite release / reserve (push) Successful in 6s
Suite release / build (rust, x86_64-pc-windows-msvc) (, rust-x86_64-pc-windows-msvc, x86_64-pc-windows-msvc, false, windows-latest, x86_64-pc-windows-msvc, rust) (push) Has been skipped
Release assets/v0.1.46 Every release asset is complete
Suite release / finalize (push) Successful in 7s
Suite release / publish (push) Successful in 5s
Suite release / deploy-image (push) Has been skipped
Suite release / deliver (push) Successful in 1m13s
Suite release / deliver-prune (push) Successful in 1s
The program is named at-terminal, so macOS names the app at-terminal (ATT-48) (#66)
2026-12-01 20:10:59 -08:00
.cargo small update for build on windows 2026-04-09 12:01:10 +02:00
.githooks at-terminal-rio: README, agent rules, GitHub sync, pre-push hook, clippy-clean on Windows (ATT-20) (#1) 2026-11-18 13:23:42 -08:00
.github GitHub's pushes reach Forgejo through forgejo-sync, not a runner (#47) 2026-11-27 02:36:55 -08:00
corcovado Bump Rust to 1.99.1 and fix new clippy lints (#1993) 2026-10-26 23:30:01 +01:00
docs The program is named at-terminal, so macOS names the app at-terminal (ATT-48) (#66) 2026-12-01 20:10:59 -08:00
extra/man Describe Rio's launch flags to xdg-terminal-exec in the desktop entry (#2019) 2026-11-07 09:55:01 +01:00
frontends The program is named at-terminal, so macOS names the app at-terminal (ATT-48) (#66) 2026-12-01 20:10:59 -08:00
librio librio's image tests run beside a program that prints nothing, so no shell prompt writes over their image (#3) 2026-11-24 11:22:24 -08:00
librio-wasm focus reports follow the active pane; librio hosts can send them (DECSET 1004) (#2051) 2026-11-15 17:27:06 +01:00
libsugarloaf ATT-37 The rows' spare pixels go above the row at-tmux names: a dead zone there, the last row flush (#48) 2026-11-27 02:46:32 -08:00
misc at-terminal names itself on the Mac: TERM_PROGRAM and the app bundle (ATT-48) (#65) 2026-12-01 17:33:41 -08:00
release at-terminal's home config and taskbar shortcut come from its own release (AHT-231) (#59) 2026-11-29 18:19:51 -08:00
rio-backend ATT-46 rio-backend runs no doc tests (#56) 2026-11-29 13:51:19 -08:00
rio-fonts introduce rio fonts 2026-08-06 06:55:15 +02:00
rio-grapheme-width fix lint 2026-04-15 08:53:48 +02:00
rio-graphics glyph protocol v1.17: fmt=vg, and every format optional (#2095) 2026-11-18 15:42:29 +01:00
rio-grid SES-190 Emoji sit on the row's baseline, not their own font's (#24) 2026-11-20 10:17:53 -08:00
rio-unicode glyph protocol v1.14: grapheme query q;grapheme= (#2064) 2026-11-17 10:44:23 +01:00
rio-vt ATT-43 Every tmux window's ambience effect is the background; at-terminal's own meadow goes (#51) 2026-11-28 17:46:18 -08:00
rio-window Time each late key to the console by hand-off; a keystroke no longer waits in the input pipe for the next one (SES-354) (#62) 2026-11-29 23:46:38 -08:00
specs glyph protocol v1.17: fmt=vg, and every format optional (#2095) 2026-11-18 15:42:29 +01:00
sugarloaf ATT-43 Every tmux window's ambience effect is the background; at-terminal's own meadow goes (#51) 2026-11-28 17:46:18 -08:00
teletypewriter Time each late key to the console by hand-off; a keystroke no longer waits in the input pipe for the next one (SES-354) (#62) 2026-11-29 23:46:38 -08:00
.editorconfig Update nix files (#1319) 2025-10-22 23:09:26 +02:00
.envrc fix: build on Darwin (#470) 2024-03-07 00:13:14 +01:00
.gitattributes Rio's files are vendored; at-terminal's own Markdown passes the shared lints (#63) 2026-11-30 16:00:47 -08:00
.gitignore ATT-23 at-terminal's Windows release: its own folder, icon and name, the ConPTY pair, at-protocol.txt (#11) 2026-11-18 15:24:20 -08:00
.goreleaser.yaml at-terminal names itself on the Mac: TERM_PROGRAM and the app bundle (ATT-48) (#65) 2026-12-01 17:33:41 -08:00
AGENTS.md README, docs and GitHub sync name romaine-life/at-terminal (#36) 2026-11-25 13:32:10 -08:00
at-app.json The program is named at-terminal, so macOS names the app at-terminal (ATT-48) (#66) 2026-12-01 20:10:59 -08:00
Cargo.lock Write at-terminal.log as the house's standard line through logline (AHT-204) (#38) 2026-11-26 04:27:48 -08:00
Cargo.toml The release's per-target build values live in Cargo.toml (PIPT-39) (#20) 2026-11-18 21:34:56 -08:00
CHANGELOG.md ATT-42 A config reload keeps the renderer's pictures; at-terminal's own log is no config change (#54) 2026-11-29 11:01:22 -08:00
flake.lock flake.lock: Update (#2047) 2026-11-15 13:48:29 +01:00
flake.nix nix: rioterm cachix binary cache, pushed from main builds 2026-08-11 22:26:15 +02:00
LICENSE init colors package 2023-01-25 13:25:30 +01:00
Makefile The program is named at-terminal, so macOS names the app at-terminal (ATT-48) (#66) 2026-12-01 20:10:59 -08:00
pkgRio.nix The program is named at-terminal, so macOS names the app at-terminal (ATT-48) (#66) 2026-12-01 20:10:59 -08:00
README.md The program is named at-terminal, so macOS names the app at-terminal (ATT-48) (#66) 2026-12-01 20:10:59 -08:00
rust-toolchain.toml use rust 1.100.0 2026-11-16 20:40:46 +01:00
rustfmt.toml update docs and rustfmt 2024-05-15 17:42:05 +02:00
UPSTREAM-README.md at-terminal-rio: README, agent rules, GitHub sync, pre-push hook, clippy-clean on Windows (ATT-20) (#1) 2026-11-18 13:23:42 -08:00

at-terminal

at-terminal on Windows, macOS and Linux. This is Rio (MIT, Rust) taken over the way the current at-terminal took over Windows Terminal: it becomes at-terminal, the one window around at-tmux, on every machine Nelson uses (ATT-19). It replaced the Windows Terminal fork on Windows in ATT-23; that repository is archived as nelsong6/at-windows-terminal-archived, and this one, named at-terminal-rio until then, took the name at-terminal (SES-246).

Upstream's own README, with its docs links, is UPSTREAM-README.md; its documentation is at https://rioterm.com.

How it is built up

Work package What
ATT-20 This repo: the fork, CI, the GitHub copy
ATT-21 Core, shared by every OS: at-terminal's defaults built in, one window/tab/pane, double-height and double-width rows, single instance, kept zoom, a tolerant state file, a log of fixed words
ATT-22 at-protocol, the language at-tmux and at-terminal speak: the hello, images by ID, the version-mismatch fix
TMUX-239 at-tmux's side: at-protocol in its Mac and Linux builds, a terminal-features entry for at-terminal
ATT-23 Windows: the off-screen window, minimizing the windows behind it, Alt+Tab, coming forward; the release and the cutover
ATT-24 macOS, on the work Mac: the Cmd tap, Cmd+Tab, hiding others, the off-screen window, a stable signing identity; the spec is docs/macos.md
ATT-25 Linux, on the KWin laptop (Kubuntu, Plasma 6.6, Wayland): KWin for raising, minimizing others and placement, its shortcuts for the summon key and Alt+Tab; the spec is docs/linux.md

The workspace is upstream's: frontends/rioterm is the program, rio-window its window layer (a winit fork), rio-vt the escape-sequence parser, rio-backend the terminal state, sugarloaf the renderer, teletypewriter the PTY (ConPTY on Windows, with Windows Terminal's conpty.dll bundled).

Where it lives

  • Forgejo, https://forgejo.romaine.life/romaine-life/at-terminal, is the source: pull requests and CI are here.
  • GitHub, https://github.com/romaine-life/at-terminal (private), is a copy for the work Mac and the Linux laptop, which can't reach Forgejo. Forgejo's push mirror keeps it equal to Forgejo on every push, the estate's one way for GitHub copies (PIPT-85).
  • A push to GitHub's main reaches Forgejo as a pull request (romaine-life/forgejo-sync, which GitHub's push webhook reaches; HOMECFG-263): GitHub's head goes to github/main, and the queued pull request from it waits for CI like any other. merge-queue lands it with a merge commit, so GitHub's main fast-forwards back (HOMECFG-248).
  • upstream is raphamorim/rio. Its changes come in by merging upstream/main in a pull request; this repo never pushes there. Upstream's tags are not carried, so this repo's release numbers are its own.

Build and test

The toolchain is rust-toolchain.toml (Rust 1.100.0, Rio's MSRV).

cargo fmt --all -- --check
cargo clippy -j 4 --locked --workspace --features wgpu --all-targets -- -D warnings
cargo test -j 4 --locked --workspace --features wgpu
cargo run -j 4 -p rioterm

On Linux the build needs libfontconfig1-dev and libasound2-dev (sugarloaf's shaders compile through the glslang crate, so no shader compiler is installed).

CI is pipeline-templates' rust suite (its fleet.json entry): format, clippy and tests on Linux and Windows for every pull request. macOS has no runner, as with at-tmux: on the work Mac and the Linux laptop, git config core.hooksPath .githooks makes a push build and run the same checks first (.githooks/pre-push).

at-protocol

at-tmux and at-terminal speak at-protocol (at-tmux's docs/at-protocol.md), one C package both compile (romaine-life/at-protocol). Its source is kept in rio-vt/at-protocol/ at the commit rio-vt/at-protocol/REF names, the one place this side's version is chosen; at-tmux pins the same commit (dep/vcpkg-overlay-ports/at-protocol/portfile.cmake) and the two change together. rio-vt/build.rs compiles it with the cc crate and compiles the commit in as the version the hello says. The source is in the repo rather than fetched by the build, so every machine builds it the same, the work machines included; rio-vt/at-protocol/update.sh <commit> brings in another commit, and include/ and src/ are never edited by hand.

rio-vt hands an APC string starting at; to the package (src/ansi/at_protocol.rs):

  • hello: answered with this build's version, on the input stream. tmux decides what a mismatch means; the terminal only answers, as the Windows Terminal fork does. After the answer the window sends effects, the ambience effects it can draw (none without a painter), which tmux deals its windows from.
  • background: the effect behind the tmux window on screen, or none; the window paints it (Backgrounds).
  • image-store: the picture is kept as a kitty image with a virtual placement the size of its cell grid, under at-tmux's ID with a high byte of its own (0xA7), so it never meets a kitty image another program sends.
  • image-place: each cell becomes a kitty Unicode placeholder naming the picture's cell, written into the grid without moving the cursor, so the cells scroll, redraw and are written over like text, and Rio's placeholder renderer draws them.
  • image-drop: the picture is forgotten; its cells draw nothing from then on.

XTVERSION answers at-terminal <version>, the name at-tmux keys its terminal features on.

Windows

What the one window does with Windows itself, as the Windows Terminal fork does it (AT-TERMINAL.md there, ATT-23). The mechanism is rio-window/src/platform_impl/windows/at_terminal/, started for the first window from frontends/rioterm/src/platform/windows/; macOS and Linux follow the same shape (docs/macos.md, docs/linux.md).

  • Launching it again summons it: through the single instance the running window comes forward, switching to the virtual desktop it is on, and minimizes every other minimizable window on that desktop (summon.rs, minimize_others.rs). Which launch runs is decided by a named mutex the first holds until it exits; the named pipe only carries the summon, so a summon can be missed but a second window can't open (instance.rs, ATR-5). The Win key pressed alone is at-tmux's global key, which summons this way (start-program at-terminal.exe) or opens the at menu with the terminal in front; its summon closes an at menu left showing a pick that succeeded (ATT-45). Ctrl+Win, at-tmux's C-Win, summons it wherever the focus is and leaves any menu open (TMUX-261). at-terminal registers no hotkey and doesn't read the Win key (ATT-32), so no program holding a key at logon can leave the Win key dead.
  • Alt+Tab and Alt+Shift+Tab are the terminal's while it is in front: the same hook takes the Tab from Windows' switcher and hands it to the window's thread with the modifiers it saw, so tmux reads M-Tab and M-BTab (alt_tab.rs).
  • A launch Windows refuses the foreground still comes forward, as one started by the tmux server does.
  • --behind opens the window behind the others: shown without activation and put under every other window while still cloaked, so the foreground stays where it is and nothing on any monitor is covered (open_behind). at-update's swap starts a new release this way when another window was in front, and without it, in front, when at-terminal was (AHT-231, AHT-210). From then on it is an ordinary window.
  • --offscreen <x>,<y>,<width>,<height> <commandline> is window-shot's off-screen window: a second process, a tool window over that rectangle, never activated, with no keys, no part in the single instance, and its own line in at-terminal.log (frontends/rioterm/src/platform/offscreen.rs). A bad rectangle or no commandline logs offscreen refused and opens nothing.

The rules (which Tab, which Win release, which window, which rectangle) are unit tests run by CI. The behaviour on a desktop (keys sent with SendInput, the foreground, minimized windows, M-Tab and M-BTab read by a throwaway tmux, the off-screen window photographed with PrintWindow) was checked on upstairspc with nobody at it, by misc/windows-desktop-test.ps1.

Its files

Its config (config.toml), state.toml and at-terminal.log live in at-terminal's own folder, apart from Rio's: %LOCALAPPDATA%\at-terminal on Windows, ~/.config/at-terminal on macOS and $XDG_CONFIG_HOME/at-terminal on Linux. AT_TERMINAL_CONFIG_HOME moves it, as a test run does. The Windows executable and window carry Rio's own icon (it is Rio, not the Windows Terminal-based at-terminal it replaced) and at-terminal's name.

Its look

at-terminal carries its look, the same on every machine (rio-backend/src/config/at-terminal-defaults.toml): Windows Terminal's Campbell colours, the window at 85% opacity, a blinking white beam cursor, bold as bright, an 8 pixel margin, and the Cascadia Code Nerd Font it bundles with its code ligatures off, which is Cascadia Mono, at 32 pixels. A machine's config.toml is laid over it, key by key, and holds only what is that machine's own, such as the program the window runs; it can set any of the look too, but none does by default.

What at-terminal adds for that, beside Rio:

  • [window.background-image] takes fit (fill, Rio's stretch, the default; uniform; uniform-to-fill; none) and align (center and the eight edges and corners, top-left to bottom-right), Windows Terminal's stretch modes and alignments.
  • A translucent window (window.opacity below 1) on DX12 draws through a DirectComposition visual, as Windows Terminal does: a swapchain made from the window is opaque, and Vulkan drivers on Windows often offer no alpha either.
  • Colours are sRGB in and sRGB out on Windows and Linux. Rio converted them to Display P3 primaries for macOS's wide-gamut surface everywhere, which washed them out on an sRGB swapchain.

Backgrounds

Every tmux window gets one of ambience's animated pixel-art effects behind its text (ATT-43), so each tab looks like its own; the meadow at-terminal once painted itself (ATT-33) is one of those effects now. at-tmux deals each window its effect and tells at-terminal the one for the window on screen (at-protocol's background); at-terminal tells at-tmux which effects it can draw after every hello (effects).

at-terminal --background ambience, configured or toggle saves the choice in state.toml and exits; the running window watches that folder and follows at once, and a restart keeps it. ambience, the default, shows each window's effect; configured is the config's own background: its [window.background-image], or none. A choice saved as meadow before the meadow moved into ambience reads as ambience. The effect takes the configured image's place while it is on, and the image comes back when it is off. A window with no effect shows the plain background.

The effects are painted by ambience's ambience-paint, which home-sync installs as C:\Program Files\at-home\ambience\current\ambience-paint.exe (frontends/rioterm/src/ambience/):

  • As the window opens, ambience-paint list runs once on a thread of its own and names the effects. Then one long-lived ambience-paint child holds every effect, started directly, never through a shell, with no window. Switching back to a window shows its effect where it left off, with no restart.
  • at-terminal sends it a command a line on stdin (size, show <effect>, hold) from a thread of its own, and reads its frames from stdout on another: never on the event loop that answers keys. The loop takes the newest frame from a one-frame slot and writes it into the background texture it already has; a frame it hasn't taken yet is replaced, never queued.
  • It moves (12 frames a second, ambience's default) only while the window is focused and not covered. Otherwise the painter is told to hold, which costs it nothing, and the last frame stands.
  • Each art pixel is a whole number of screen pixels, about 216 lines to the window's height, drawn from the top left with nearest-neighbour sampling so its edges stay sharp; the overrun past the right and bottom edges is cut off. Cells an effect leaves empty are transparent, so the window's own background shows through. The painter dims every pixel under a fifth of white's luminance, so light text reads over any effect.
  • With no painter installed, at-terminal tells at-tmux it can draw no effects and shows the plain background. A painter that fails to start or dies is logged once in at-terminal.log and not started again; the plain background stays.

Shipping

On Windows, a merge to main that changes what ships cuts a release (pipeline-templates' release suite, its fleet.json entry; ATT-23). CI builds rioterm for x86_64-pc-windows-msvc and publishes each file under its own name:

  • at-terminal-windows-amd64.exe, the terminal (the package's at-terminal binary);
  • conpty.dll and OpenConsole.exe, the modern ConPTY (misc/windows/conhost/README.md), which at-protocol's messages need, and LICENSE-ConPTY.txt;
  • at-protocol.txt, the at-protocol commit it speaks;
  • SHA256SUMS, every file's SHA-256.

Every executable and DLL is signed with the at-terminal certificate, which home-sync requires. release/dependencies.json pins the ConPTY package; release/assets/rust-x86_64-pc-windows-msvc/at-protocol.txt names the same commit as rio-vt/at-protocol/REF (a test holds them together, and update.sh writes both), and LICENSE-ConPTY.txt beside it is a copy of misc/windows/conhost/LICENSE.

at-update installs it on every home PC as the app at-terminal, in C:\Program Files\at-home\at-terminal\current, as at-terminal.exe, paired with at-tmux (at-app.json, AHT-231). Its home config ships beside it: release/assets/rust-x86_64-pc-windows-msvc/at-terminal-config.toml (and at-terminal-config-upstairspc.toml, upstairspc's look), which at-update keeps as %LOCALAPPDATA%\at-terminal\config.toml; the window runs at-tmux's client (tmux -L at new -A -s primary). at-update also keeps its Start menu shortcut, carrying the window's app ID, and pins it on the taskbar once. The Mac and Linux builds are made on those machines (ATT-24, ATT-25).