Voyager7
A terminal emulator for 64-bit Windows 7 and later, built in Rust on libghostty-vt and Direct3D 11.
Version 1.0.0 runs interactively on 64-bit Windows 7 SP1 (Hook + Scraper) and Windows 10 1809+ (ConPTY), with tabs, splits, Ghostty configuration and CLI actions, native Settings and Inspector windows, and a Windows installer. Packages are unsigned, so SmartScreen may warn on first run.
Goal
- Run on 64-bit Windows 7 SP1 (x64 only) without VxKex, Cygwin, or a system-wide shim.
- Use libghostty-vt as the VT engine and run natively on Windows 10 1809+ via ConPTY from the same binary.
- Be noticeably better than ConEmu on Windows 7: faster output and correct modern VT programs. Nushell on Windows 7 scrolls, rewraps and keeps a usable prompt in Voyager7; in ConEmu 230724 its viewport jumps and its output stalls (see Performance).
- Be 100% compatible with Ghostty on Windows. Every Ghostty config loads without errors today; Ghostty compatibility tracks the rest.
- Stay small, fast, and standalone in the mould of File Pilot: one executable, in-box system DLLs only, zero idle CPU, one instanced draw call per frame.
- Later: Linux (
wgpu) and macOS ports.
Getting started
For step-by-step setup, see Download and install. There are three
packages (see Installer flags and packaging for silent-install flags,
sidecars, and +version --full):
- Installer (
Voyager7-Setup.exe): per-user install to%LOCALAPPDATA%\Programs\Voyager7with optional sidecar fonts (Cascadia Mono, Noto Color/Mono Emoji, Symbols Nerd Font 3.4.0, ANAKRON 8x12), Start menu shortcut, userPATH, Explorer "Open in Voyager7" menu, and bundled ConPTY on Windows 10 1809+. - Portable (
voyager7-<version>-win64.zip): extract and runvoyager7.exe. Keepvoyager7.combeside it for synchronous CLI output in cmd and PowerShell, along with the optionalfonts/folder and license notices. - Bare executable (
voyager7-<version>-win64-standalone-min.exe): no bundled fonts or ConPTY; falls back to Consolas and installed system fonts.
On first run, Voyager7 creates a commented config template at %APPDATA%\Voyager7\config
(it also reads config.ghostty if present). Press Ctrl+, for the Settings window,
Ctrl+Shift+P for the Command Palette, or run voyager7 +version and
voyager7 +show-config --default --docs from a shell. Every key is in the
configuration reference.
Screenshots
The same cmd window in each, so only the window itself changes. Click a picture to see it full size.
window-show-tab-bar = always, the default.In use
Features
- Configuration, themes and CLI: Ghostty configuration superset
(
v7-*extensions), 822 built-in themes (+list-themes), native Settings editor, and Ghostty+actionCLI including+ssh. - Tabs and titles: File Pilot-style GPU tab strip (native caption on Windows 10, native Aero caption on Windows 7), per-tab taskbar thumbnails, and manual tab/window/split titles.
- Shell profiles and drag-and-drop: automatic detection of installed shells and WSL distributions, Windows Terminal JSON fragments, taskbar jump list, and shell-aware path quoting when dropping files.
- Splits: horizontal and vertical splits with independent Backends, zoom, resize overlay, per-split search, and Ghostty key bindings.
- Quick terminal: edge-docked drop-down terminal bound with
global:hotkeys orvoyager7 +toggle-quick-terminal. - Keyboard selection, URLs and moving tabs:
adjust_selection, block selection, Mark mode (Ctrl+Shift+M), rich HTML/RTF clipboard copy, Ctrl+click links, and tab tear-off/drag. - Kitty graphics: inline, file, and shared-memory images, Unicode placeholders, and animation on bundled ConPTY and the Windows 7 Hook.
- Right-to-left text and complex scripts:
per-row implicit BiDi reordering (UAX #9) with logical cursor and selection mapping, Arabic
joining and shaping across cells, combining marks, and per-cluster fallback fonts (
v7-bidi,v7-bidi-base). Levels resolve per row rather than across wrapped paragraphs, BiDi escape sequences are not implemented yet, and mixed Arabic/Latin paragraphs stay left-to-right underauto(known limits in ADR 0007). - Toasts, progress and notifications: clipboard/reload tooltips, OSC 9;4 progress bars and taskbar progress, OSC 133 command-finish alerts, and configurable bell.
- 80- and 132-column mode: DECCOLM (
ESC[?40h,ESC[?3h/?3l) window and console resizing on ConPTY and Windows 7. - Default terminal: native default-terminal registration on
Windows 10 22H2/11 and optional Explorer hook (
v7-defterm.dll) on Windows 7 to 10.
Acknowledgements
Thanks to cosmic-text, which serves as Voyager7's
no_std Text Engine on every platform, including Windows 7. It gives Voyager7 OpenType shaping
through HarfRust (including Arabic joining and complex-script shaping), glyph and color-emoji
rasterization through swash, and font database and fallback handling over our loaded fonts.
Voyager7 is also built on Ghostty: libghostty-vt
is the VT engine, and Ghostty defines the configuration, theme, and +action CLI model.
License
Voyager7's own code is MIT-licensed; see
LICENSE. Bundled components
(libghostty-vt, Ghostty data, ConPTY sidecars, Rust crates, and sidecar fonts) keep their own
licences; see licenses/ and the
NOTICE file shipped with release packages. The standalone executable prints the same texts
with voyager7 +show-licenses.
Download and install
Voyager7 runs on 64-bit Windows 7 SP1 and later (including Windows 10 and Windows 11).
How to install
- Click Download Voyager7-Setup.exe above.
- Open the downloaded file. Because releases are not code-signed yet, Windows SmartScreen may show a warning. Click More info, then Run anyway.
- Follow the installer prompts, then open Voyager7 from the Start menu.
By default, the installer puts Voyager7 in your user folder (%LOCALAPPDATA%\Programs\Voyager7), adds a Start menu shortcut and a right-click Open in Voyager7 folder menu entry, and includes the bundled fonts and prompt icons. You can also switch to an all-users install inside the installer if you prefer.
Updating and uninstalling
- Update: download and run the new Voyager7-Setup.exe. Your settings and previous installer choices are kept.
- Uninstall: remove Voyager7 from Apps & Features (Windows 10/11) or Programs and Features (Windows 7). Your settings stay on disk unless you tick the option to remove them.
Other downloads
If you prefer not to use the installer, open the latest GitHub release to download:
- Portable ZIP (
voyager7-<version>-win64.zip): unzip anywhere and runvoyager7.exe. Nothing is registered system-wide. - Bare executable (
voyager7-<version>-win64-standalone-min.exe): a single file under 5 MB, without bundled fonts or the bundled Windows 10 console host. - Checksums (
SHA256SUMS): SHA-256 hashes for verifying your download.
First steps
Once Voyager7 is open:
- Press
Ctrl+,to open Settings (pick a theme, font, or default shell). - Press
Ctrl+Shift+Pto open the Command Palette and search actions or shortcuts. - See Configuration and CLI to edit your config file directly.
Need silent-install flags, sidecar font details, +version --full, or instructions for building packages? See Installer flags and packaging.
Installer flags and packaging
Looking for the quick download and setup guide? See Download and install.
Windows packages
Build release packages with cargo xtask package (Rust, Zig, LLVM resource tools,
Python 3 and curl). Outputs go to dist/:
- Run
Voyager7-Setup.exefor a per-user install, defaulting to%LOCALAPPDATA%\Programs\Voyager7. Fonts, a Start menu shortcut and user PATH are enabled by default. The Nerd Font symbols component (Symbols Nerd Font 3.4.0, the symbols font Ghostty embeds) is checked by default too, so prompt icons from fish, starship and the like render with no config change; untick it to leave it out. The Nostalgia pixel font component (ANAKRON, forv7-nostalgia) is checked by default as well. On Windows 10 build 17763 or later, the recommended modern console host is enabled too. "Add 'Open in Voyager7' to the Explorer context menu" (checked by default) adds "Open in Voyager7" to the menu of a folder, a folder's or the desktop's background, a drive and a library's background; it opens a Voyager7 window in that folder (on Windows 11 under "Show more options", see ADR 0018). Updates retain your choices and settings. Uninstall through Programs and Features / Apps & Features; settings are kept unless you explicitly select their removal. Packages are unsigned. - Extract
voyager7-<version>-win64.zipto use the portable package. Keepvoyager7.combesidevoyager7.exe, the optionalfonts/directory, and the included license notices.fonts/SymbolsNerdFont-Regular.ttfadds Nerd Font symbols; delete it to fall back to system fonts for them.fonts/anakron-8x12.v7bf.zis the nostalgia pixel font; without it nostalgia uses Terminal. The modernconpty.dllandOpenConsole.exeare optional Windows 10 1809+ sidecars; older Windows uses its supported backend. voyager7-<version>-win64-standalone-min.exeis the bare executable, without bundled fonts or ConPTY. The standalone-full executable is still pending.
CLI startup and version info
Use voyager7 +version through the .com helper for synchronous cmd and
PowerShell output, exit codes, pipes and redirection.
voyager7 +version (or --version) prints, in Ghostty's +version layout,
the version, channel and commit, and the build config: the Rust toolchain,
build mode, cosmic-text, the D3D11 device the Renderer would get (hardware or
WARP, feature level, adapter), and libghostty-vt with its Ghostty pin, patch
count and Zig version. voyager7 +version --full adds what a bug report needs:
the Windows product, release, build.UBR, edition, architecture, DWM
composition, theme (Aero, Basic or Classic on Windows 7) and DPI; the Backend
a new tab would start with (bundled OpenConsole or system ConPTY, or the
Windows 7 Hook and Scraper), v7-conpty and the default terminal; and the
install: installer scope, portable ZIP or standalone-min, each installer
checkbox against the files actually beside the exe, and the configuration
files in use. It only reads (registry, files, one device-only D3D11 probe),
starts no process, and prints paths relative to %LOCALAPPDATA%, %APPDATA%
or %USERPROFILE%, so the output can be pasted into an issue as is. The
Command Palette's "Copy Version Info to Clipboard"
(v7_copy_version_info) copies the --full text. Ordinary voyager7 GUI
startup returns immediately. CLI actions also support Nushell and Git Bash,
including mintty pipes. Direct exe CLI use still supports start /wait.
New shells see the installer-updated PATH; already-open shells retain their
existing environment.
Silent install and uninstall
Silent install: Voyager7-Setup.exe /S, optionally followed by a quoted
"/D=C:\path to\Voyager7", /nofonts, /noemoji, /noshortcut, /nopath,
/noconpty, /nocontextmenu, /nonerdfont to leave out the Nerd Font symbols (/nerdfont adds them back),
or /noanakron to leave out the nostalgia pixel font (/anakron adds it back). Silent uninstall: uninstall.exe /S; add /settings only to
remove the known user config files too. See
ADR 0011 for packaging scope and limits.
Sidecar fonts
Fetch the pinned, SHA-256-verified font and ConPTY sidecars with cargo xtask sidecar
(requires curl and Python 3). Copy build/sidecar/fonts/ beside voyager7.exe as
fonts/, including LICENSE, NotoEmoji-OFL.txt, NotoEmoji-Mono-OFL.txt,
SymbolsNerdFont-LICENSE.txt, and ANAKRON-OFL.txt (ANAKRON for v7-nostalgia is copied
from crates/v7-text/data/). The default family is Cascadia Mono, then Consolas,
then the fallback chain; --font PATH explicitly selects a different primary.
Fonts and downloaded archives stay in ignored build/ storage.
See the font manifest for upstream pins, hashes, formats
and the monochrome version difference from Ghostty.
Forcing the Windows 7 Backend
The Windows 7 Backend can be forced for testing with v7-conpty = scraper
(--v7-conpty=scraper). It is selected automatically when the system ConPTY
API is absent. It runs a private agent mode of the same executable, with a hidden
console per Surface, and injects v7-hook.dll into x64 children so console and VT
output stream directly while the Scraper handles 32-bit (WOW64) and unhooked children
(or all output when v7-win7-vt = false or the hook DLL is unavailable). Pure scraping
without the hook can lose output that leaves the retained console buffer between polls.
Configuration and CLI
Every key, with its default and full description, is in the
configuration reference, and every keybind action in the
keybind action reference. Both pages are generated from
the documentation built into voyager7.exe, which +explain-config,
+show-config --docs and +list-actions --docs print.
Configuration files and themes
Configuration loads %APPDATA%\Voyager7\config, then config.ghostty.
When neither exists, Voyager7 creates config from Ghostty's commented
template, adapted (it sets nothing; it points at voyager7 +show-config --default --docs, Ghostty's option docs, the README and the reload key), as
Ghostty does at start-up; Open configuration file and Settings' Apply start a
missing file from it too. An existing file is never overwritten.
Use --config PATH to select another file and --key=value for Ghostty-style
overrides. All pinned Ghostty keys are accepted; unsupported settings warn.
Ghostty's window-theme sets the theme of Voyager7's own windows (Settings,
the Inspector, About, the command palette, menus, prompts, notices and title
bars; never the terminal's colours): auto (default) is dark when the
configured background is dark (Ghostty's luminance test), so the default is
dark; system follows Windows' app mode (Windows 10 1809 and later, live when
it changes; light on Windows 7); light and dark force one; ghostty acts
as auto (Ghostty's terminal-coloured header bar is Linux-only, and the
Windows 10 tab strip already takes the terminal's colours). Dark is fully dark
on Windows 7 too: Voyager7 draws its own buttons, check boxes, drop-downs,
field frames and scroll bars there; the native Windows 7 caption stays native.
Under light or dark, a tab strip whose terminal background has the other
brightness takes Windows' neutral title-bar colours instead. High Contrast
always uses the system colours. A reload restyles open windows. Settings
offers Automatic (auto), Windows theme, Dark and Light; ghostty still
works in the file and shows as Automatic.
Ghostty's theme works as in Ghostty (ADR 0016):
a theme name, an absolute path, or light:NAME,dark:NAME, which follows
Windows' app mode and switches live when it changes (Windows 7 is always
light). Names are looked up in the themes folder beside the configuration
(%APPDATA%\Voyager7\themes, Ghostty's ~/.config/ghostty/themes), then in
the collection built into voyager7.exe: the 819 themes Ghostty v1.4.0 ships
plus Windows Terminal's Campbell, Campbell Powershell and Vintage. A theme file is
Ghostty configuration (it cannot set theme or config-file), and every
colour key in your configuration overrides the theme, wherever it is. voyager7 +list-themes previews them all interactively in cmd, PowerShell or Voyager7
(Windows 7 conhost included), or lists them with --plain, --path and
--color=light|dark|all.
Settings editor
Settings (Ctrl+,) keeps the compact Key / Value / Source list with a filter and
adds a category tree on its left (Appearance, Font, Window, Tabs, Splits,
Keybinds, Profiles, Notifications, Clipboard, Mouse, Terminal, and All
settings, which is every key). The tree only filters the list; the filter
searches the chosen category (or every key under All settings), and while it
has text each category shows how many keys match. The selected key gets a
typed editor: a colour has a swatch, its hex value and Pick colour… (Windows'
colour picker); a choice is a drop-down of its valid values; a boolean is a
check box; a number or duration has a spin button (font size by a point,
durations by a second, 50 ms below one second); a repeatable key (keybind,
palette, font-feature, v7-profile-order) is an ordered list edited like
Windows' Path dialog (New, Edit, Delete, Move Up, Move Down, the selected entry
in a field below), and font-family adds a list of installed fonts,
fixed-pitch first, with a preview. Reset to default, Apply, Reload
configuration and Open configuration file work as before; the Default terminal
choice stays in the command bar.
Voyager7 options (v7-*)
Voyager7-only options start with v7- (unprefixed extension names are unknown
keys; CLI forms like --v7-bidi=off also work). Run voyager7 +explain-config <key> for any option's description:
v7-tab-animations(true|false, defaulttrue): animate tab opening, scrolling and reordering. Windows reduced motion also disables them.v7-taskbar-progress(true|false, defaulttrue): show program progress on the Windows taskbar button, following the active tab or the most urgent background tab. Disabled whenprogress-styleisfalse.v7-title-progress(true|false, defaulttrue): show progress bars when a program puts a percentage in the window title, such as[35%]or{35%}. Disabled whenprogress-styleisfalse.v7-taskbar-tabs(true|false, defaulttrue): show a separate Windows taskbar thumbnail for each tab when a window has two or more tabs. Requires Windows desktop composition (Aero on Windows 7).v7-window-save-scrollback(true|false, defaulttrue): keep each terminal's recent output in saved window state (window-save-state) and show it again when the window comes back. At most 512 KiB per terminal and 16 MiB in all, in%LOCALAPPDATA%\Voyager7\session, read once and then deleted.v7-nostalgia(true|false, defaultfalse): draw terminal text with a crisp bitmap font scaled in whole pixels, like the classic Windows console. Missing characters fall back to normal fonts. For conhost's colors too, setbackground = 000000andforeground = c0c0c0.v7-nostalgia-font(anakron|terminal, defaultanakron): pick the bitmap font forv7-nostalgia: the bundled ANAKRON 8x12 font (fonts/anakron-8x12.v7bf.z, SIL OFL 1.1) or Windows' classic Terminal raster font. Falls back to the other if one is unavailable. ANAKRON looks the same on every Windows version;terminalis the exact look of the Windows console on that machine.v7-bidi(implicit|off, defaultimplicit): reorder right-to-left text (such as Arabic and Hebrew) automatically, or useofffor logical order.v7-bidi-base(auto|ltr|rtl, defaultauto): base reading direction for bidirectional text whenv7-bidiisimplicit.v7-conpty(auto|bundled|system|scraper, defaultauto): choose the backend that runs console programs. On Windows 10+,autoandbundledprefer bundled ConPTY before Windows ConPTY,systemuses Windows ConPTY only, andscraperforces the Windows 7 Scraper. Restart to apply.v7-win7-vt(true|false, defaulttrue): interpret ANSI/VT color and formatting codes on Windows 7. Set tofalseto read only the plain console buffer (for troubleshooting). Applies to new tabs; ignored on Windows 10+.v7-legacy-default-colors(true|false, defaulttrue): fix default text and background colors for older PowerShell (PSReadLine) prompts on bundled ConPTY.v7-clipboard-paste-trim(true|false, defaulttrue): when the clipboard holds one line and a line break after it, paste the line without the break, so a copied command does not run at once (Windows Terminal'strimPaste). A trimmed line needs no paste confirmation.v7-default-terminal-exclude(comma-separated program file names, default empty): programs that keep their own console window when Voyager7 is the default terminal through its Explorer hook (v7-defterm.dllon Windows 7, 8.1 and older Windows 10), such asfar.exe, game.exe. Read when the hook starts (at logon, or when choosing Voyager7 (hook) in Settings); see Default terminal.v7-profiles,v7-profile-detect,v7-profile-fragments,v7-default-profile,v7-profile-order, and the profile-file keysv7-profile-name,v7-profile-icon,v7-profile-tab-color,v7-profile-elevate,v7-profile-hidden,v7-profile-path-style: see Shell profiles.
voyager7 +show-config PATH writes loaded entries and diagnostics to a UTF-8
report and exits. See ADR 0009 for
implemented selection, mouse and clipboard settings and Voyager7 extensions.
Color settings background, foreground, palette, cursor-color, cursor-text,
selection-foreground and selection-background use Ghostty syntax and defaults
(background #282c34, foreground #ffffff). See ADR 0009 for the palette and precedence.
CLI actions
All 19 pinned Ghostty CLI +action commands are implemented (see
Ghostty compatibility). Use +help or
+action --help for each command's options.
voyager7 +ssh user@host runs ssh (Windows 10's OpenSSH from PATH, or
--ssh=<path>, such as Git for Windows' or a portable Win32-OpenSSH on
Windows 7), forwards COLORTERM, TERM_PROGRAM and TERM_PROGRAM_VERSION,
and installs Ghostty's xterm-ghostty terminfo on the first connection to each
host, as ghostty +ssh does; TERM is xterm-256color where that fails.
+ssh-cache lists and edits the hosts already set up
(%LOCALAPPDATA%\Voyager7\ssh_cache). With shell-integration-features = ssh-env,ssh-terminfo, PowerShell's ssh goes through +ssh.
+show-config now prints to stdout with --default, --changes-only and
--docs. The temporary +boo animation and generated documentation contain
MIT data from Ghostty; see licenses and
ADR 0010.
Configuration reference
Every configuration key Voyager7 reads, with the text that voyager7 +explain-config KEY and voyager7 +show-config --default --docs print. Defaults are the values +show-config --default reports; where it lists none, the description gives the default. Ghostty's own keys come first, in Ghostty's order, then Voyager7's v7-* keys. How to write a configuration file is in Configuration and CLI; the status of every Ghostty key on Windows is in Ghostty compatibility.
A key marked not applied on Windows is accepted and reported with a not supported yet warning, so a Ghostty configuration still loads.
Ghostty keys
language
Not applied on Windows.
Set Ghostty's graphical user interface language to a language other than the system default language. For example:
language = de
will force the strings in Ghostty's graphical user interface to be in German rather than the system default.
This will not affect the language used by programs run within Ghostty. Those will continue to use the default system language. There are also many non-GUI elements in Ghostty that are not translated - this setting will have no effect on those.
Warning: This setting cannot be reloaded at runtime. To change the language you must fully restart Ghostty.
GTK only.
font-family
Default: empty
The font families to use.
You can generate the list of valid values using the CLI:
ghostty +list-fonts
This configuration can be repeated multiple times to specify preferred fallback fonts when the requested codepoint is not available in the primary font. This is particularly useful for multiple languages, symbolic fonts, etc.
Notes on emoji specifically: On macOS, Ghostty by default will always use Apple Color Emoji and on Linux will always use Noto Emoji. You can override this behavior by specifying a font family here that contains emoji glyphs.
The specific styles (bold, italic, bold italic) do not need to be
explicitly set. If a style is not set, then the regular style (font-family)
will be searched for stylistic variants. If a stylistic variant is not
found, Ghostty will use the regular style. This prevents falling back to a
different font family just to get a style such as bold. This also applies
if you explicitly specify a font family for a style. For example, if you
set font-family-bold = FooBar and "FooBar" cannot be found, Ghostty will
use whatever font is set for font-family for the bold style.
Finally, some styles may be synthesized if they are not supported.
For example, if a font does not have an italic style and no alternative
italic font is specified, Ghostty will synthesize an italic style by
applying a slant to the regular style. If you want to disable these
synthesized styles then you can use the font-style configurations
as documented below.
You can disable styles completely by using the font-style set of
configurations. See the documentation for font-style for more information.
If you want to overwrite a previous set value rather than append a fallback,
specify the value as "" (empty string) to reset the list and then set the
new values. For example:
font-family = ""
font-family = "My Favorite Font"
Setting any of these as CLI arguments will automatically clear the
values set in configuration files so you don't need to specify
--font-family="" before setting a new value. You only need to specify
this within config files if you want to clear previously set values in
configuration files or on the CLI if you want to clear values set on the
CLI.
On Windows: a profile file can set this for its own tabs and splits.
font-family-bold
Not applied on Windows.
Documented with font-family.
font-family-italic
Not applied on Windows.
Documented with font-family.
font-family-bold-italic
Not applied on Windows.
Documented with font-family.
font-style
Default: default
The named font style to use for each of the requested terminal font styles. This looks up the style based on the font style string advertised by the font itself. For example, "Iosevka Heavy" has a style of "Heavy".
You can also use these fields to completely disable a font style. If you set
the value of the configuration below to literal false then that font style
will be disabled. If the running program in the terminal requests a disabled
font style, the regular font style will be used instead.
These are only valid if its corresponding font-family is also specified. If no font-family is specified, then the font-style is ignored unless you're disabling the font style.
On Windows: false draws that style as regular. A style name picks the face of the regular style only; Voyager7 draws bold and italic from the regular face.
font-style-bold
Default: default
Documented with font-style.
On Windows: false draws that style as regular. A style name picks the face of the regular style only; Voyager7 draws bold and italic from the regular face.
font-style-italic
Default: default
Documented with font-style.
On Windows: false draws that style as regular. A style name picks the face of the regular style only; Voyager7 draws bold and italic from the regular face.
font-style-bold-italic
Default: default
Documented with font-style.
On Windows: false draws that style as regular. A style name picks the face of the regular style only; Voyager7 draws bold and italic from the regular face.
font-synthetic-style
Not applied on Windows.
Control whether Ghostty should synthesize a style if the requested style is not available in the specified font-family.
Ghostty can synthesize bold, italic, and bold italic styles if the font does not have a specific style. For bold, this is done by drawing an outline around the glyph of varying thickness. For italic, this is done by applying a slant to the glyph. For bold italic, both of these are applied.
Synthetic styles are not perfect and will generally not look as good as a font that has the style natively. However, they are useful to provide styled text when the font does not have the style.
Set this to "false" or "true" to disable or enable synthetic styles completely. You can disable specific styles using "no-bold", "no-italic", and "no-bold-italic". You can disable multiple styles by separating them with a comma. For example, "no-bold,no-italic".
Available style keys are: bold, italic, bold-italic.
If synthetic styles are disabled, then the regular style will be used instead if the requested style is not available. If the font has the requested style, then the font will be used as-is since the style is not synthetic.
Warning: An easy mistake is to disable bold or italic but not
bold-italic. Disabling only bold or italic will NOT disable either
in the bold-italic style. If you want to disable bold-italic, you must
explicitly disable it. You cannot partially disable bold-italic.
By default, synthetic styles are enabled.
font-feature
Default: empty
Apply a font feature. To enable multiple font features you can repeat this multiple times or use a comma-separated list of feature settings.
The syntax for feature settings is as follows, where feat is a feature:
- Enable features with e.g.
feat,+feat,feat on,feat=1. - Disabled features with e.g.
-feat,feat off,feat=0. - Set a feature value with e.g.
feat=2,feat = 3,feat 4. - Feature names may be wrapped in quotes, meaning this config should be
syntactically compatible with the
font-feature-settingsCSS property.
The syntax is fairly loose, but invalid settings will be silently ignored.
The font feature will apply to all fonts rendered by Ghostty. A future enhancement will allow targeting specific faces.
To disable programming ligatures, use -calt since this is the typical
feature name for programming ligatures. To look into what font features
your font has and what they do, use a font inspection tool such as
fontdrop.info.
To generally disable most ligatures, use -calt, -liga, -dlig.
On Windows: a profile file can set this for its own tabs and splits.
font-size
Default: 12
Font size in points. This value can be a non-integer and the nearest integer pixel size will be selected. If you have a high dpi display where 1pt = 2px then you can get an odd numbered pixel size by specifying a half point.
For example, 13.5pt @ 2px/pt = 27px
Changing this configuration at runtime will only affect existing terminals that have NOT manually adjusted their font size in some way (e.g. increased or decreased the font size). Terminals that have manually adjusted their font size will retain their manually adjusted size. Otherwise, the font size of existing terminals will be updated on reload.
On Linux with GTK, font size is scaled according to both display-wide and text-specific scaling factors, which are often managed by your desktop environment (e.g. the GNOME display scale and large text settings).
On Windows: a profile file can set this for its own tabs and splits.
font-variation
Default: empty
A repeatable configuration to set one or more font variations values for
a variable font. A variable font is a single font, usually with a filename
ending in -VF.ttf or -VF.otf that contains one or more configurable axes
for things such as weight, slant, etc. Not all fonts support variations;
only fonts that explicitly state they are variable fonts will work.
The format of this is id=value where id is the axis identifier. An axis
identifier is always a 4 character string, such as wght. To get the list
of supported axes, look at your font documentation or use a font inspection
tool.
Invalid ids and values are usually ignored. For example, if a font only
supports weights from 100 to 700, setting wght=800 will do nothing (it
will not be clamped to 700). You must consult your font's documentation to
see what values are supported.
Common axes are: wght (weight), slnt (slant), ital (italic), opsz
(optical size), wdth (width), GRAD (gradient), etc.
On Windows: works with variable fonts such as Cascadia Mono, for every axis the font has. A profile file can set it for its own tabs.
font-variation-bold
Default: empty
Documented with font-variation.
On Windows: works with variable fonts such as Cascadia Mono, for every axis the font has. A profile file can set it for its own tabs.
font-variation-italic
Default: empty
Documented with font-variation.
On Windows: works with variable fonts such as Cascadia Mono, for every axis the font has. A profile file can set it for its own tabs.
font-variation-bold-italic
Default: empty
Documented with font-variation.
On Windows: works with variable fonts such as Cascadia Mono, for every axis the font has. A profile file can set it for its own tabs.
font-codepoint-map
Not applied on Windows.
Force one or a range of Unicode codepoints to map to a specific named font. This is useful if you want to support special symbols or if you want to use specific glyphs that render better for your specific font.
The syntax is codepoint=fontname where codepoint is either a single
codepoint or a range. Codepoints must be specified as full Unicode
hex values, such as U+ABCD. Codepoints ranges are specified as
U+ABCD-U+DEFG. You can specify multiple ranges for the same font separated
by commas, such as U+ABCD-U+DEFG,U+1234-U+5678=fontname. The font name is
the same value as you would use for font-family.
This configuration can be repeated multiple times to specify multiple codepoint mappings.
Changing this configuration at runtime will only affect new terminals, i.e. new windows, tabs, etc.
clipboard-codepoint-map
Not applied on Windows.
Map specific Unicode codepoints to replacement values when copying text to clipboard.
This configuration allows you to replace specific Unicode characters with other characters or strings when copying terminal content to the clipboard. This is useful for converting special terminal symbols to more compatible characters for pasting into other applications.
The syntax is similar to font-codepoint-map:
- Single codepoint:
U+1234=U+ABCDorU+1234=replacement_text - Codepoint range:
U+1234-U+5678=U+ABCD
Examples:
clipboard-codepoint-map = U+2500=U+002D(box drawing horizontal → hyphen)clipboard-codepoint-map = U+2502=U+007C(box drawing vertical → pipe)clipboard-codepoint-map = U+03A3=SUM(Greek sigma → "SUM")
This configuration can be repeated multiple times to specify multiple mappings. Later entries take priority over earlier ones for overlapping ranges.
Note: This only applies to text copying operations, not URL copying.
font-thicken
Not applied on Windows.
Draw fonts with a thicker stroke, if supported. This is currently only supported on macOS.
font-thicken-strength
Not applied on Windows.
Strength of thickening when font-thicken is enabled.
Valid values are integers between 0 and 255. 0 does not correspond to
no thickening, rather it corresponds to the lightest available thickening.
Has no effect when font-thicken is set to false.
This is currently only supported on macOS.
font-shaping-break
Not applied on Windows.
Locations to break font shaping into multiple runs.
A "run" is a contiguous segment of text that is shaped together. "Shaping" is the process of converting text (codepoints) into glyphs (renderable characters). This is how ligatures are formed, among other things. For example, if a coding font turns "!=" into a single glyph, then it must see "!" and "=" next to each other in a single run. When a run is broken, the text is shaped separately. To continue our example, if "!" is at the end of one run and "=" is at the start of the next run, then the ligature will not be formed.
Ghostty breaks runs at certain points to improve readability or usability. For example, Ghostty by default will break runs under the cursor so that text editing can see the individual characters rather than a ligature. This configuration lets you configure this behavior.
Combine values with a comma to set multiple options. Prefix an option with "no-" to disable it. Enabling and disabling options can be done at the same time.
Available options:
cursor- Break runs under the cursor.
alpha-blending
Not applied on Windows.
What color space to use when performing alpha blending.
This affects the appearance of text and of any images with transparency. Additionally, custom shaders will receive colors in the configured space.
On macOS the default is native, on all other platforms the default is
linear-corrected.
Valid values:
-
native- Perform alpha blending in the native color space for the OS. On macOS this corresponds to Display P3, and on Linux it's sRGB. -
linear- Perform alpha blending in linear space. This will eliminate the darkening artifacts around the edges of text that are very visible when certain color combinations are used (e.g. red / green), but makes dark text look much thinner than normal and light text much thicker. This is also sometimes known as "gamma correction". -
linear-corrected- Same aslinear, but with a correction step applied for text that makes it look nearly or completely identical tonative, but without any of the darkening artifacts.
adjust-cell-width
Not applied on Windows.
All of the configurations behavior adjust various metrics determined by the font. The values can be integers (1, -1, etc.) or a percentage (20%, -15%, etc.). In each case, the values represent the amount to change the original value.
For example, a value of 1 increases the value by 1; it does not set it to
literally 1. A value of 20% increases the value by 20%. And so on.
There is little to no validation on these values so the wrong values (e.g.
-100%) can cause the terminal to be unusable. Use with caution and reason.
Some values are clamped to minimum or maximum values. This can make it
appear that certain values are ignored. For example, many *-thickness
adjustments cannot go below 1px.
adjust-cell-height has some additional behaviors to describe:
-
The font will be centered vertically in the cell.
-
The cursor will remain the same size as the font, but may be adjusted separately with
adjust-cursor-height. -
Powerline glyphs will be adjusted along with the cell height so that things like status lines continue to look aligned.
adjust-cell-height
Not applied on Windows.
Documented with adjust-cell-width.
adjust-font-baseline
Not applied on Windows.
Distance in pixels or percentage adjustment from the bottom of the cell to the text baseline.
Increase to move baseline UP, decrease to move baseline DOWN.
See the notes about adjustments in adjust-cell-width.
adjust-underline-position
Not applied on Windows.
Distance in pixels or percentage adjustment from the top of the cell to the top of the underline.
Increase to move underline DOWN, decrease to move underline UP.
See the notes about adjustments in adjust-cell-width.
adjust-underline-thickness
Not applied on Windows.
Thickness in pixels of the underline.
See the notes about adjustments in adjust-cell-width.
adjust-strikethrough-position
Not applied on Windows.
Distance in pixels or percentage adjustment from the top of the cell to the top of the strikethrough.
Increase to move strikethrough DOWN, decrease to move strikethrough UP.
See the notes about adjustments in adjust-cell-width.
adjust-strikethrough-thickness
Not applied on Windows.
Thickness in pixels or percentage adjustment of the strikethrough.
See the notes about adjustments in adjust-cell-width.
adjust-overline-position
Not applied on Windows.
Distance in pixels or percentage adjustment from the top of the cell to the top of the overline.
Increase to move overline DOWN, decrease to move overline UP.
See the notes about adjustments in adjust-cell-width.
adjust-overline-thickness
Not applied on Windows.
Thickness in pixels or percentage adjustment of the overline.
See the notes about adjustments in adjust-cell-width.
adjust-cursor-thickness
Not applied on Windows.
Thickness in pixels or percentage adjustment of the bar cursor and outlined rect cursor.
See the notes about adjustments in adjust-cell-width.
adjust-cursor-height
Not applied on Windows.
Height in pixels or percentage adjustment of the cursor. Currently applies to all cursor types:
bar, rect, and outlined rect.
See the notes about adjustments in adjust-cell-width.
adjust-box-thickness
Not applied on Windows.
Thickness in pixels or percentage adjustment of box drawing characters.
See the notes about adjustments in adjust-cell-width.
adjust-icon-height
Not applied on Windows.
Height in pixels or percentage adjustment of maximum height for nerd font icons.
A positive (negative) value will increase (decrease) the maximum icon height. This may not affect all icons equally: the effect depends on whether the default size of the icon is height-constrained, which in turn depends on the aspect ratio of both the icon and your primary font.
Certain icons designed for box drawing and terminal graphics, such as Powerline symbols, are not affected by this option.
See the notes about adjustments in adjust-cell-width.
Available in: 1.2.0
grapheme-width-method
Not applied on Windows.
The method to use for calculating the cell width of a grapheme cluster.
The default value is unicode which uses the Unicode standard to determine
grapheme width. This results in correct grapheme width but may result in
cursor-desync issues with some programs (such as shells) that may use a
legacy method such as wcswidth.
Valid values are:
-
legacy- Use a legacy method to determine grapheme width, such as wcswidth This maximizes compatibility with legacy programs but may result in incorrect grapheme width for certain graphemes such as skin-tone emoji, non-English characters, etc.This is called "legacy" and not something more specific because the behavior is undefined and we want to retain the ability to modify it. For example, we may or may not use libc
wcswidthnow or in the future. -
unicode- Use the Unicode standard to determine grapheme width.
If a running program explicitly enables terminal mode 2027, then unicode
width will be forced regardless of this configuration. When mode 2027 is
reset, this configuration will be used again.
This configuration can be changed at runtime but will not affect existing terminals. Only new terminals will use the new configuration.
freetype-load-flags
Not applied on Windows.
FreeType load flags to enable. The format of this is a list of flags to
enable separated by commas. If you prefix a flag with no- then it is
disabled. If you omit a flag, its default value is used, so you must
explicitly disable flags you don't want. You can also use true or false
to turn all flags on or off.
This configuration only applies to Ghostty builds that use FreeType. This is usually the case only for Linux builds. macOS uses CoreText and does not have an equivalent configuration.
Available flags:
-
hinting- Enable or disable hinting. Enabled by default. -
force-autohint- Always use the freetype auto-hinter instead of the font's native hinter. Disabled by default. -
monochrome- Instructs renderer to use 1-bit monochrome rendering. This will disable anti-aliasing, and probably not look very good unless you're using a pixel font. Disabled by default. -
autohint- Enable the freetype auto-hinter. Enabled by default. -
light- Use a light hinting style, better preserving glyph shapes. This is the most common setting in GTK apps and therefore also Ghostty's default. This has no effect ifmonochromeis enabled. Enabled by default.
Example: hinting, no-hinting, force-autohint, no-force-autohint
theme
Default: empty
A theme to use. This can be a built-in theme name, a custom theme name, or an absolute path to a custom theme file. Voyager7 also supports specifying a different theme to use for light and dark mode.
If the theme is an absolute pathname, Voyager7 loads that file as a theme. If that file does not exist or is inaccessible, an error is reported and no other folders are searched.
If the theme is not an absolute pathname, two places are searched for a theme of that name. It is an error for a theme name to include path separators unless it is an absolute pathname.
The first is the themes folder beside your configuration: %APPDATA%\Voyager7\themes (Ghostty's $XDG_CONFIG_HOME/ghostty/themes), or themes beside the file --config names.
The second is the collection built into Voyager7: the themes Ghostty v1.4.0 ships, plus Campbell, Campbell Powershell and Vintage from Windows Terminal. To see the list, run voyager7 +list-themes.
A theme file is simply another configuration file in Ghostty's syntax. A theme can set any valid configuration option, so do not use a theme file from an untrusted source. A theme file cannot set theme or config-file; they are silently ignored there.
Any additional colors specified via background, foreground, palette, etc. override the colors specified in the theme.
To specify a different theme for light and dark mode, use light:theme-name,dark:theme-name, for example light:Rose Pine Dawn,dark:Rose Pine. Whitespace around all values is trimmed and the order of light and dark does not matter. Both must be given. The theme then follows Windows' app mode (Settings > Personalization > Colors), and switches when it changes; Windows 7 is always light.
A profile file may set theme and colors for that profile's tabs. Without any theme or color setting, detected PowerShell older than 7 uses Campbell Powershell unless it is the default profile.
background
Default: #282c34
Background color for the window.
Specified as either hex (#RRGGBB or RRGGBB) or a named X11 color.
foreground
Default: #ffffff
Foreground color for the window.
Specified as either hex (#RRGGBB or RRGGBB) or a named X11 color.
background-image
Not applied on Windows.
Background image for the terminal.
This should be a path to a PNG or JPEG file, other image formats are not yet supported.
The background image is currently per-terminal, not per-window. If you are a heavy split user, the background image will be repeated across splits. A future improvement to Ghostty will address this.
WARNING: Background images are currently duplicated in VRAM per-terminal. For sufficiently large images, this could lead to a large increase in memory usage (specifically VRAM usage). A future Ghostty improvement will resolve this by sharing image textures across terminals.
background-image-opacity
Not applied on Windows.
Background image opacity.
This is relative to the value of background-opacity.
A value of 1.0 (the default) will result in the background image being
placed on top of the general background color, and then the combined result
will be adjusted to the opacity specified by background-opacity.
A value less than 1.0 will result in the background image being mixed
with the general background color before the combined result is adjusted
to the configured background-opacity.
A value greater than 1.0 will result in the background image having a
higher opacity than the general background color. For instance, if the
configured background-opacity is 0.5 and background-image-opacity
is set to 1.5, then the final opacity of the background image will be
0.5 * 1.5 = 0.75.
background-image-position
Not applied on Windows.
Background image position.
Valid values are:
top-lefttop-centertop-rightcenter-leftcentercenter-rightbottom-leftbottom-centerbottom-right
The default value is center.
background-image-fit
Not applied on Windows.
Background image fit.
Valid values are:
-
containPreserving the aspect ratio, scale the background image to the largest size that can still be contained within the terminal, so that the whole image is visible.
-
coverPreserving the aspect ratio, scale the background image to the smallest size that can completely cover the terminal. This may result in one or more edges of the image being clipped by the edge of the terminal.
-
stretchStretch the background image to the full size of the terminal, without preserving the aspect ratio.
-
noneDon't scale the background image.
The default value is contain.
background-image-repeat
Not applied on Windows.
Whether to repeat the background image or not.
If this is set to true, the background image will be repeated if there would otherwise be blank space around it because it doesn't completely fill the terminal area.
The default value is false.
selection-foreground
Default: empty
The foreground and background color for selection. If this is not set, then
the selection color is just the inverted window background and foreground
(note: not to be confused with the cell bg/fg).
Specified as either hex (#RRGGBB or RRGGBB) or a named X11 color.
Since version 1.2.0, this can also be set to cell-foreground to match
the cell foreground color, or cell-background to match the cell
background color.
selection-background
Default: empty
Documented with selection-foreground.
selection-invert-fg-bg
Not applied on Windows.
An older name that Ghostty still reads; see selection-foreground.
selection-clear-on-typing
Default: true
Whether to clear selected text when typing. This defaults to true.
This is typical behavior for most terminal emulators as well as
text input fields. If you set this to false, then the selected text
will not be cleared when typing.
"Typing" is specifically defined as any non-modifier (shift, control, alt, etc.) keypress that produces data to be sent to the application running within the terminal (e.g. the shell). Additionally, selection is cleared when any preedit or composition state is started (e.g. when typing languages such as Japanese).
If this is false, then the selection can still be manually
cleared by clicking once or by pressing escape.
selection-clear-on-copy
Default: false
Whether to clear selected text after copying. This defaults to false.
When set to true, the selection will be automatically cleared after
any copy operation that invokes the copy_to_clipboard keyboard binding.
Importantly, this will not clear the selection if the copy operation
was invoked via copy-on-select.
When set to false, the selection remains visible after copying, allowing
to see what was copied and potentially perform additional operations
on the same selection.
selection-word-chars
Default: "\t '\"│`|:;,()[]{}<>$"
Characters that mark word boundaries during text selection operations such as double-clicking. When selecting a word, the selection will stop at any of these characters.
This is similar to the WORDCHARS environment variable in zsh, except this
specifies the boundary characters rather than the word characters. The
default includes common delimiters and punctuation that typically separate
words in code and prose.
Each character in this string becomes a word boundary. Multi-byte UTF-8 characters are supported, but only single codepoints can be specified. Multi-codepoint sequences (e.g. emoji) are not supported.
The null character (U+0000) is always treated as a boundary and does not need to be included in this configuration.
Default: \t '"│`|:;,()[]{}<>$
To add or remove specific characters, you can set this to a custom value. For example, to treat semicolons as part of words:
selection-word-chars = "\t '\"│`|:,()[]{}<>$"
minimum-contrast
Not applied on Windows.
The minimum contrast ratio between the foreground and background colors. The contrast ratio is a value between 1 and 21. A value of 1 allows for no contrast (e.g. black on black). This value is the contrast ratio as defined by the WCAG 2.0 specification.
If you want to avoid invisible text (same color as background), a value of 1.1 is a good value. If you want to avoid text that is difficult to read, a value of 3 or higher is a good value. The higher the value, the more likely that text will become black or white.
This value does not apply to Emoji or images.
palette
Default: empty
Color palette for the 256 color form that many terminal applications use.
The syntax of this configuration is N=COLOR where N is 0 to 255 (for
the 256 colors in the terminal color table) and COLOR is a typical RGB
color code such as #AABBCC or AABBCC, or a named X11 color. For example,
palette = 5=#BB78D9 will set the 'purple' color.
The palette index can be in decimal, binary, octal, or hexadecimal.
Decimal is assumed unless a prefix is used: 0b for binary, 0o for octal,
and 0x for hexadecimal.
For definitions on the color indices and what they canonically map to, see this cheat sheet.
For most themes, you only need to set the first 16 colors (0–15) since the
rest of the palette (16–255) will be automatically generated by
default (see palette-generate for more details).
palette-generate
Not applied on Windows.
Whether to automatically generate the extended 256 color palette (indices 16–255) from the base 16 ANSI colors.
This lets theme authors specify only the base 16 colors and have the rest of the palette be automatically generated in a consistent and aesthetic way.
When enabled, the 6×6×6 color cube and 24-step grayscale ramp are
derived from interpolations of the base palette, giving a more cohesive
look. Colors that have been explicitly set via palette are never
overwritten.
The default value is false (disabled), because many legacy programs using the 256-color palette hardcode assumptions about what these colors are (mostly assuming the xterm 256 color palette). However, this is still a very useful tool for theme authors and users who want to customize their palette without having to specify all 256 colors.
For more information on how the generation works, see here: https://gist.github.com/jake-stewart/0a8ea46159a7da2c808e5be2177e1783
palette-harmonious
Not applied on Windows.
Invert the palette colors generated when palette-generate is enabled,
so that the colors go in reverse order. This allows palette-based
applications to work well in both light and dark mode since the
palettes are always relatively good colors.
This defaults to off because some legacy terminal applications hardcode the assumption that palette indices 16–231 are ordered from darkest to lightest, so enabling this would make them unreadable. This is not a generally good assumption and we encourage modern terminal applications to use the indices in a more semantic way.
This has no effect if palette-generate is disabled.
For more information see palette-generate.
cursor-color
Default: empty
The color of the cursor. If this is not set, a default will be chosen.
Direct colors can be specified as either hex (#RRGGBB or RRGGBB)
or a named X11 color.
Additionally, special values can be used to set the color to match other colors at runtime:
-
cell-foreground- Match the cell foreground color. -
cell-background- Match the cell background color.
cursor-invert-fg-bg
Not applied on Windows.
An older name that Ghostty still reads; see cursor-color.
cursor-opacity
Default: 1
The opacity level (opposite of transparency) of the cursor. A value of 1 is fully opaque and a value of 0 is fully transparent. A value less than 0 or greater than 1 will be clamped to the nearest valid value. Note that a sufficiently small value such as 0.3 may be effectively invisible and may make it difficult to find the cursor.
cursor-style
Default: block
The style of the cursor. This sets the default style. A running program can
still request an explicit cursor style using escape sequences (such as CSI q). Shell configurations will often request specific cursor styles.
Note that shell integration will automatically set the cursor to a bar at
a prompt, regardless of this configuration. You can disable that behavior
by specifying shell-integration-features = no-cursor or disabling shell
integration entirely.
Valid values are:
blockbarunderlineblock_hollow
On Windows: a profile file can set this for its own tabs and splits.
cursor-style-blink
Default: empty
Sets the default blinking state of the cursor. This is just the default
state; running programs may override the cursor style using DECSCUSR (CSI q).
If this is not set, the cursor blinks by default. Note that this is not the same as a "true" value, as noted below.
If this is not set at all (null), then Ghostty will respect DEC Mode 12
(AT&T cursor blink) as an alternate approach to turning blinking on/off. If
this is set to any value other than null, DEC mode 12 will be ignored but
DECSCUSR will still be respected.
Valid values are:
(blank)truefalse
On Windows: the cursor blinks every 600 ms, as in Ghostty. DEC mode 12 is honoured whatever this is set to.
cursor-text
Default: empty
The color of the text under the cursor. If this is not set, a default will
be chosen.
Specified as either hex (#RRGGBB or RRGGBB) or a named X11 color.
Since version 1.2.0, this can also be set to cell-foreground to match
the cell foreground color, or cell-background to match the cell
background color.
cursor-click-to-move
Not applied on Windows.
Enables the ability to move the cursor at prompts by clicking on a location in the prompt text.
This feature requires prompt marking via OSC 133. Some shells like Fish
(v4.1+) and Nu (0.111+) natively support this while others may require
additional configuration or Ghostty's shell integration features to be
enabled.
Depending on the shell, this works either by translating your click position into a series of synthetic arrow key movements or by sending a click event directly to the shell. In either case, some unexpected behavior around edge cases is possible.
mouse-hide-while-typing
Default: false
Hide the mouse immediately when typing. The mouse becomes visible again when the mouse is used (button, movement, etc.). Platform-specific behavior may dictate other scenarios where the mouse is shown. For example on macOS, the mouse is shown again when a new window, tab, or split is created.
scroll-to-bottom
Default: keystroke,no-output
When to scroll the surface to the bottom. The format of this is a list of
options to enable separated by commas. If you prefix an option with no-
then it is disabled. If you omit an option, its default value is used.
Available options:
-
keystrokeIf set, scroll the surface to the bottom when the user presses a key that results in data being sent to the PTY (basically anything but modifiers or keybinds that are processed by Ghostty). -
outputIf set, scroll the surface to the bottom if there is new data to display (e.g., when new lines are printed to the terminal).
The default is keystroke, no-output.
mouse-shift-capture
Default: false
Determines whether running programs can detect the shift key pressed with a mouse click. Typically, the shift key is used to extend mouse selection.
The default value of false means that the shift key is not sent with
the mouse protocol and will extend the selection. This value can be
conditionally overridden by the running program with the XTSHIFTESCAPE
sequence.
The value true means that the shift key is sent with the mouse protocol
but the running program can override this behavior with XTSHIFTESCAPE.
The value never is the same as false but the running program cannot
override this behavior with XTSHIFTESCAPE. The value always is the
same as true but the running program cannot override this behavior with
XTSHIFTESCAPE.
If you always want shift to extend mouse selection even if the program
requests otherwise, set this to never.
Valid values are:
truefalsealwaysnever
mouse-reporting
Default: true
Enable or disable mouse reporting. When set to false, mouse events will
not be reported to terminal applications even if they request it. This
allows you to always use the mouse for selection and other terminal UI
interactions without applications capturing mouse input.
When set to true (the default), terminal applications can request mouse
reporting and will receive mouse events according to their requested mode.
This can be toggled at runtime using the toggle_mouse_reporting keybind
action.
mouse-scroll-multiplier
Default: discrete:3,precision:1
Multiplier for scrolling distance with the mouse wheel.
A prefix of precision: or discrete: can be used to set the multiplier
only for scrolling with the specific type of devices. These can be
comma-separated to set both types of multipliers at the same time, e.g.
precision:0.1,discrete:3. If no prefix is used, the multiplier applies
to all scrolling devices. Specifying a prefix was introduced in Ghostty
1.2.1.
The value will be clamped to [0.01, 10,000]. Both of these are extreme and you're likely to have a bad experience if you set either extreme.
The default value is "3" for discrete devices and "1" for precision devices.
background-opacity
Default: 1
The opacity level (opposite of transparency) of the background. A value of 1 is fully opaque and a value of 0 is fully transparent. A value less than 0 or greater than 1 will be clamped to the nearest valid value.
On macOS, background opacity is disabled when the terminal enters native fullscreen. This is because the background becomes gray and it can cause widgets to show through which isn't generally desirable.
On macOS, changing this configuration requires restarting Ghostty completely.
background-opacity-cells
Default: false
Applies background opacity to cells with an explicit background color set.
Normally, background-opacity is only applied to the window background.
If a cell has an explicit background color set, such as red, then that
background color will be fully opaque. An effect of this is that some
terminal applications that repaint the background color of the terminal
such as a Neovim and Tmux may not respect the background-opacity
(by design).
Setting this to true will apply the background-opacity to all cells
regardless of whether they have an explicit background color set or not.
background-blur
Default: false
Whether to blur the background when background-opacity is less than 1.
Valid values are:
- a nonnegative integer specifying the blur intensity
false, equivalent to a blur intensity of 0true, equivalent to the default blur intensity of 20, which is reasonable for a good looking blur. Higher blur intensities may cause strange rendering and performance issues.
On macOS 26.0 and later, there are additional special values that can be set to use the native macOS glass effects:
macos-glass-regular- Standard glass effect with some opacitymacos-glass-clear- Highly transparent glass effect
If the macOS values are set, then this implies background-blur = true
on non-macOS platforms.
On Linux, the exact blur intensity is ignored and any positive integer
or true value will enable background blur. On Wayland, Ghostty uses
the ext-background-effect-v1
protocol to enable the blur effect, but this is not always supported
on all compositors. Check the documentation of your compositor or
desktop environment for blur support and how to configure it.
On X11, blur can only be enabled when using the KWin compositor as a part of KDE Plasma.
background-blur-radius
Not applied on Windows.
An older name that Ghostty still reads; see background-blur.
unfocused-split-opacity
Default: 0.7
The opacity level (opposite of transparency) of an unfocused split. Unfocused splits by default are slightly faded out to make it easier to see which split is focused. To disable this feature, set this value to 1.
A value of 1 is fully opaque and a value of 0 is fully transparent. Because "0" is not useful (it makes the window look very weird), the minimum value is 0.15. This value still looks weird but you can at least see what's going on. A value outside of the range 0.15 to 1 will be clamped to the nearest valid value.
unfocused-split-fill
Default: empty
The color to dim the unfocused split. Unfocused splits are dimmed by rendering a semi-transparent rectangle over the split. This sets the color of that rectangle and can be used to carefully control the dimming effect.
This will default to the background color.
Specified as either hex (#RRGGBB or RRGGBB) or a named X11 color.
split-divider-color
Default: empty
The color of the split divider. If this is not set, a default will be chosen.
Specified as either hex (#RRGGBB or RRGGBB) or a named X11 color.
split-preserve-zoom
Default: no-navigation
Control when Ghostty preserves a zoomed split. Under normal circumstances, any operation that changes focus or layout of the split tree in a window will unzoom any zoomed split. This configuration allows you to control this behavior.
This can be set to navigation to preserve the zoomed split state
when navigating to another split (e.g. via goto_split). This will
change the zoomed split to the newly focused split instead of unzooming.
Any options can also be prefixed with no- to disable that option.
Example: split-preserve-zoom = navigation
search-foreground
Default: #000000
The foreground and background color for search matches. This only applies to non-focused search matches, also known as candidate matches.
Valid values:
- Hex (
#RRGGBBorRRGGBB) - Named X11 color
- "cell-foreground" to match the cell foreground color
- "cell-background" to match the cell background color
The default value is black text on a golden yellow background.
search-background
Default: #ffe082
Documented with search-foreground.
search-selected-foreground
Default: #000000
The foreground and background color for the currently selected search match. This is the focused match that will be jumped to when using next/previous search navigation.
Valid values:
- Hex (
#RRGGBBorRRGGBB) - Named X11 color
- "cell-foreground" to match the cell foreground color
- "cell-background" to match the cell background color
The default value is black text on a soft peach background.
search-selected-background
Default: #f2a57e
Documented with search-selected-foreground.
command
Default: empty
The command to run, usually a shell. If this is not an absolute path, it'll
be looked up in the PATH. If this is not set, a default will be looked up
from your system. The rules for the default lookup are:
-
SHELLenvironment variable -
passwdentry (user information)
This can contain additional arguments to run the command with. If additional
arguments are provided, the command will be executed using /bin/sh -c
to offload shell argument expansion.
To avoid shell expansion altogether, prefix the command with direct:, e.g.
direct:nvim foo. This will avoid the roundtrip to /bin/sh but will also
not support any shell parsing such as arguments with spaces, filepaths with
~, globs, etc.
You can also explicitly prefix the command with shell: to always wrap the
command in a shell. This can be used to ensure our heuristics to choose the
right mode are not used in case they are wrong.
This command will be used for all new terminal surfaces, i.e. new windows,
tabs, etc. If you want to run a command only for the first terminal surface
created when Ghostty starts, use the initial-command configuration.
Ghostty supports the common -e flag for executing a command with
arguments. For example, ghostty -e fish --with --custom --args.
This flag sets the initial-command configuration, see that for more
information.
initial-command
Default: empty
This is the same as "command", but only applies to the first terminal
surface created when Ghostty starts. Subsequent terminal surfaces will use
the command configuration.
After the first terminal surface is created (or closed), there is no way to run this initial command again automatically. As such, setting this at runtime works but will only affect the next terminal surface if it is the first one ever created.
If you're using the ghostty CLI there is also a shortcut to set this
with arguments directly: you can use the -e flag. For example: ghostty -e fish --with --custom --args. The -e flag automatically forces some
other behaviors as well:
-
Disables shell expansion since the input is expected to already be shell-expanded by the upstream (e.g. the shell used to type in the
ghostty -ecommand). -
gtk-single-instance=false- This ensures that a new instance is launched and the CLI args are respected. -
quit-after-last-window-closed=true- This ensures that the Ghostty process will exit when the command exits. Additionally, thequit-after-last-window-closed-delayis unset. -
shell-integration=detect(if notnone) - This prevents forcibly injecting any configured shell integration into the command's environment. With-eits highly unlikely that you're executing a shell and forced shell integration is likely to cause problems (e.g. by wrapping your command in a shell, setting env vars, etc.). This is a safety measure to prevent unexpected behavior. If you want shell integration with a-e-executed command, you must either name your binary appropriately or source the shell integration script manually.
notify-on-command-finish
Default: never
Controls when command finished notifications are sent. There are three options:
never- Never send notifications (the default).unfocused- Only send notifications if the surface that the command is running in is not focused.always- Always send notifications.
Command finished notifications requires that either shell integration is enabled, or that your shell sends OSC 133 escape sequences to mark the start and end of commands.
On GTK, there is a context menu item that will enable command finished
notifications for a single command, overriding the never and unfocused
options.
notify-on-command-finish-action
Default: bell,no-notify
If command finished notifications are enabled, this controls how the user is notified.
Available options:
bell- enabled by defaultnotify- disabled by default
Options can be combined by listing them as a comma separated list. Options
can be negated by prefixing them with no-. For example no-bell,notify.
notify-on-command-finish-after
Default: 5s
If command finished notifications are enabled, this controls how long a command must have been running before a notification will be sent. The default is five seconds.
The duration is specified as a series of numbers followed by time units. Whitespace is allowed between numbers and units. Each number and unit will be added together to form the total duration.
The allowed time units are as follows:
y- 365 SI days, or 8760 hours, or 31536000 seconds. No adjustments are made for leap years or leap seconds.d- one SI day, or 86400 seconds.h- one hour, or 3600 seconds.m- one minute, or 60 seconds.s- one second.ms- one millisecond, or 0.001 second.usorµs- one microsecond, or 0.000001 second.ns- one nanosecond, or 0.000000001 second.
Examples:
1h30m45s
Units can be repeated and will be added together. This means that
1h1h is equivalent to 2h. This is confusing and should be avoided.
A future update may disallow this.
The maximum value is 584y 49w 23h 34m 33s 709ms 551µs 615ns. Any
value larger than this will be clamped to the maximum value.
env
Default: empty
Extra environment variables to pass to commands launched in a terminal
surface. The format is env=KEY=VALUE.
env = foo=bar
env = bar=baz
Setting env to an empty string will reset the entire map to default
(empty).
env =
Setting a key to an empty string will remove that particular key and corresponding value from the map.
env = foo=bar
env = foo=
will result in foo not being passed to the launched commands.
Setting a key multiple times will overwrite previous entries.
env = foo=bar
env = foo=baz
will result in foo=baz being passed to the launched commands.
These environment variables will override any existing environment
variables set by Ghostty. For example, if you set GHOSTTY_RESOURCES_DIR
then the value you set here will override the value Ghostty typically
automatically injects.
These environment variables will not be passed to commands run by Ghostty
for other purposes, like open or xdg-open used to open URLs in your
browser.
On Windows: variable names ignore case, so Path and PATH are one entry. A profile file can set env for its own tabs. When Windows' environment changes (System Properties, setx), new tabs see the change without restarting Voyager7.
input
Not applied on Windows.
Data to send as input to the command on startup.
The configured command will be launched using the typical rules,
then the data specified as this input will be written to the pty
before any other input can be provided.
The bytes are sent as-is with no additional encoding. Therefore, be cautious about input that can contain control characters, because this can be used to execute programs in a shell.
The format of this value is:
-
raw:<string>- Send raw text as-is. This uses Zig string literal syntax so you can specify control characters and other standard escapes. -
path:<path>- Read a filepath and send the contents. The path must be to a file with finite length. e.g. don't use a device such as/dev/stdinor/dev/urandomas these will block terminal startup indefinitely. Files are limited to 10MB in size to prevent excessive memory usage. If you have files larger than this you should write a script to read the file and send it to the terminal.
If no valid prefix is found, it is assumed to be a raw: input.
This is an ergonomic choice to allow you to simply write
input = "Hello, world!" (a common case) without needing to prefix
every value with raw:.
This can be repeated multiple times to send more data. The data is concatenated directly with no separator characters in between (e.g. no newline).
If any of the input sources do not exist, then none of the input will be sent. Input sources are not verified until the terminal is starting, so missing paths will not show up in config validation.
Changing this configuration at runtime will only affect new terminals.
wait-after-command
Not applied on Windows.
If true, keep the terminal open after the command exits. Normally, the terminal window closes when the running command (such as a shell) exits. With this true, the terminal window will stay open until any keypress is received.
This is primarily useful for scripts or debugging.
abnormal-command-exit-runtime
Not applied on Windows.
The number of milliseconds of runtime below which we consider a process exit to be abnormal. This is used to show an error message when the process exits too quickly.
On Linux, this must be paired with a non-zero exit code. On macOS, we allow any exit code because of the way shell processes are launched via the login command.
scrollback-limit-bytes
Default: 50000000
The size of the scrollback buffer in bytes. This also includes the active screen. No matter what this is set to, enough memory will always be allocated for the visible screen and anything leftover is the limit for the scrollback.
When this limit is reached, the oldest lines are removed from the scrollback.
Scrollback is stored in memory and allocated lazily up to this limit, so setting a very large limit does not immediately consume that amount of memory. On supported systems with scrollback compression enabled, Ghostty attempts to compress fully historical pages which are not currently visible while the terminal is idle. This can reduce physical memory usage, depending on the contents of the scrollback.
This limit always measures the uncompressed logical size of the terminal pages. Compression does not allow Ghostty to retain more history than the configured limit. Accessing compressed history restores it transparently and may increase the terminal's physical memory usage again.
This size is per terminal surface, not for the entire application.
A separate maximum can be set with scrollback-limit-lines; if both limits
are set, then the first one reached will determine when scrollback is
removed.
The default is 50 MB. Set this to unlimited to remove the byte limit.
This can be changed at runtime but will only affect new terminal surfaces.
On Windows: applies to new tabs. scrollback-limit is the older name of scrollback-limit-bytes.
scrollback-limit
An older name that Ghostty still reads; see scrollback-limit-bytes.
On Windows: applies to new tabs. scrollback-limit is the older name of scrollback-limit-bytes.
scrollback-limit-lines
Default: unlimited
The maximum number of lines of scrollback to retain. This excludes the active screen. Soft-wrapped lines count as multiple lines.
This limit is an estimate. Internally, Ghostty will only trim lines up to the minimum allocation unit that is used internally (called a "page"). The size of a page depends on how many styles, graphemes, etc. take up the screen. In practice, this can be anywhere from a handful to a couple hundred lines. Importantly, memory is capped either way. This means that the actual limited lines will likely be slightly higher in practice.
The default is unlimited. A separate maximum can be set with
scrollback-limit-bytes; if both limits are set, then the first one reached
will determine when scrollback is removed.
This can be changed at runtime but will only affect new terminal surfaces.
On Windows: applies to new tabs. scrollback-limit is the older name of scrollback-limit-bytes.
scrollback-compression
Not applied on Windows.
Whether to compress scrollback pages while the terminal is idle.
Ghostty does its best to only compress when idle and decompress as needed. This means that compression doesn't lower IO throughput. We recommend you keep it on.
The scrollback limit remains an uncompressed logical limit regardless of this setting, so disabling compression can increase physical memory usage but does not change how much history is retained.
Text-heavy terminal history generally compresses to approximately 10% to 30% of its uncompressed page memory, corresponding to a 70% to 90% reduction in physical memory for pages which are compressed. Compression savings are content-dependent.
Note that the way Ghostty works is that we compress and discard the physical/resident memory but we retain virtual mappings. You will not see a decrease in virtual memory usage, but you will see a decrease in physical/memory usage.
Changing this at runtime affects future compression work. Pages which are already compressed remain compressed until their contents are accessed.
scrollbar
Control when the scrollbar is shown to scroll the scrollback buffer.
The default value is system.
Valid values:
-
system- Respect the system settings for when to show scrollbars. On macOS, we only show scrollbars while actively scrolling or hovering the gutter. If the system setting is set to "Always", the scrollbar will be shown when the mouse is over the gutter area. -
never- Never show a scrollbar. You can still scroll using the mouse, keybind actions, etc. but you will not have a visual UI widget showing a scrollbar.
link
Not applied on Windows.
Match a regular expression against the terminal text and associate clicking
it with an action. This can be used to match URLs, file paths, etc. Actions
can be opening using the system opener (e.g. open or xdg-open) or
executing any arbitrary binding action.
Links that are configured earlier take precedence over links that are configured later.
A default link that matches a URL and opens it in the system opener always
exists. This can be disabled using link-url.
TODO: This can't currently be set!
link-url
Default: true
Enable URL matching. URLs are matched on hover with control (Linux) or command (macOS) pressed and open using the default system application for the linked URL.
The URL matcher is always lowest priority of any configured links (see
link). If you want to customize URL matching, use link and disable this.
On Windows: file paths are links too, with backslashes and drives, such as C:\src\main.rs:12:5 or src\main.rs. Ctrl+click opens the file in its application, relative to the terminal's directory; programs are never run.
link-osc8
Default: true
Enable hyperlinks created with the OSC 8 escape sequence. When disabled, OSC 8 hyperlinks are not highlighted, previewed, copied, or opened.
This does not affect URL matching controlled by link-url.
link-previews
Default: true
Show link previews for a matched URL.
When true, link previews are shown for all matched URLs. When false, link previews are never shown. When set to "osc8", link previews are only shown for hyperlinks created with the OSC 8 sequence (in this case, the link text can differ from the link destination).
On Windows: the target shows in a small label at the bottom of the terminal while Ctrl is held over a link.
maximize
Not applied on Windows.
Whether to start the window in a maximized state. This setting applies to new windows and does not apply to tabs, splits, etc. However, this setting will apply to all new windows, not just the first one.
fullscreen
Not applied on Windows.
Start new windows in fullscreen. This setting applies to new windows and does not apply to tabs, splits, etc. However, this setting will apply to all new windows, not just the first one.
Allowable values are:
false- Don't start in fullscreen (default)true- Start in native fullscreennon-native- (macOS only) Start in non-native fullscreen, hiding the menu bar. This is faster than native fullscreen since it doesn't use animations. On non-macOS platforms, this behaves the same astrue.non-native-visible-menu- (macOS only) Start in non-native fullscreen, keeping the menu bar visible. On non-macOS platforms, behaves liketrue.non-native-padded-notch- (macOS only) Start in non-native fullscreen, hiding the menu bar but padding for the notch on applicable devices. On non-macOS platforms, behaves liketrue.
Important: tabs DO NOT WORK with non-native fullscreen modes. Non-native
fullscreen removes the titlebar and macOS native tabs require the titlebar.
If you use tabs, use true (native) instead.
On macOS, true (native fullscreen) does not work if window-decoration
is set to false, because native fullscreen on macOS requires window
decorations.
title
The title Ghostty will use for the window. This will force the title of the window to be this title at all times and Ghostty will ignore any set title escape sequences programs (such as Neovim) may send.
If you want a blank title, set this to one or more spaces by quoting
the value. For example, title = " ". This effectively hides the title.
This is necessary because setting a blank value resets the title to the
default value of the running program.
This configuration can be reloaded at runtime. If it is set, the title will update for all windows. If it is unset, the next title change escape sequence will be honored but previous changes will not retroactively be set. This latter case may require you to restart programs such as Neovim to get the new title.
class
Default: Voyager7
The setting that will change the application class value.
This controls the class field of the WM_CLASS X11 property (when running
under X11), the Wayland application ID (when running under Wayland), and the
bus name that Ghostty uses to connect to DBus.
Note that changing this value between invocations will create new, separate
instances, of Ghostty when running with gtk-single-instance=true. See that
option for more details.
Changing this value may break launching Ghostty from .desktop files, via
DBus activation, or systemd user services as the system is expecting Ghostty
to connect to DBus using the default class when it is launched.
The class name must follow the requirements defined in the GTK documentation.
The default is com.mitchellh.ghostty.
This only affects GTK builds.
x11-instance-name
Not applied on Windows.
This controls the instance name field of the WM_CLASS X11 property when
running under X11. It has no effect otherwise.
The default is ghostty.
This only affects GTK builds.
working-directory
Not applied on Windows.
The directory to change to after starting the command.
This setting is secondary to the window-inherit-working-directory
setting. If a previous Ghostty terminal exists in the same process,
window-inherit-working-directory will take precedence. Otherwise, this
setting will be used. Typically, this setting is used only for the first
window.
The default is inherit except in special scenarios listed next. On macOS,
if Ghostty can detect it is launched from launchd (double-clicked) or
open, then it defaults to home. On Linux with GTK, if Ghostty can detect
it was launched from a desktop launcher, then it defaults to home.
The value of this must be an absolute path, a path prefixed with ~/
(the tilde will be expanded to the user's home directory), or
one of the special values below:
-
home- The home directory of the executing user. -
inherit- The working directory of the launching process.
On Windows: works on the command line (--working-directory=) and in profile files (profiles\NAME.ghostty), not in the main config file.
keybind
Default: empty
Key bindings. The format is trigger=action. Duplicate triggers will
overwrite previously set values. The list of actions is available in
the documentation or using the ghostty +list-actions command.
Trigger: +-separated list of keys and modifiers. Example: ctrl+a,
ctrl+shift+b, up.
If the key is a single Unicode codepoint, the trigger will match
any presses that produce that codepoint. These are impacted by
keyboard layouts. For example, a will match the a key on a
QWERTY keyboard, but will match the q key on a AZERTY keyboard
(assuming US physical layout).
For Unicode codepoints, matching is done by comparing the set of
modifiers with the unmodified codepoint. The unmodified codepoint is
sometimes called an "unshifted character" in other software, but all
modifiers are considered, not only shift. For example, ctrl+a will match
a but not ctrl+shift+a (which is A on a US keyboard).
Further, codepoint matching is case-insensitive and the unmodified
codepoint is always case folded for comparison. As a result,
ctrl+A configured will match when ctrl+a is pressed. Note that
this means some key combinations are impossible depending on keyboard
layout. For example, ctrl+_ is impossible on a US keyboard because
_ is shift+- and ctrl+shift+- is not equal to ctrl+_ (because
the modifiers don't match!). More details on impossible key combinations
can be found at this excellent source written by Qt developers:
https://doc.qt.io/qt-6/qkeysequence.html#keyboard-layout-issues
Physical key codes can be specified by using any of the key codes
as specified by the W3C specification.
For example, KeyA will match the physical a key on a US standard
keyboard regardless of the keyboard layout. These are case-sensitive.
For aesthetic reasons, the w3c codes also support snake case. For
example, key_a is equivalent to KeyA. The only exceptions are
function keys, e.g. F1 is f1 (no underscore). This is a consequence
of our internal code using snake case but is purposely supported
and tested so it is safe to use. It allows an all-lowercase binding
which I find more aesthetically pleasing.
Function keys such as insert, up, f5, etc. are also specified
using the keys as specified by the previously linked W3C specification.
Physical keys always match with a higher priority than Unicode codepoints,
so if you specify both a and KeyA, the physical key will always be used
regardless of what order they are configured.
The special key catch_all can be used to match any key that is not
otherwise bound. This can be combined with modifiers, for example
ctrl+catch_all will match any key pressed with ctrl that is not
otherwise bound. When looking up a binding, Ghostty first tries to match
catch_all with modifiers. If no match is found and the event has
modifiers, it falls back to catch_all without modifiers.
Valid modifiers are shift, ctrl (alias: control), alt (alias: opt,
option), and super (alias: cmd, command). You may use the modifier
or the alias. When debugging keybinds, the non-aliased modifier will always
be used in output.
Note: The fn or "globe" key on keyboards are not supported as a modifier. This is a limitation of the operating systems and GUI toolkits that Ghostty uses.
Some additional notes for triggers:
-
modifiers cannot repeat,
ctrl+ctrl+ais invalid. -
modifiers and keys can be in any order,
shift+a+ctrlis weird, but valid. -
only a single key input is allowed,
ctrl+a+bis invalid.
You may also specify multiple triggers separated by > to require a
sequence of triggers to activate the action. For example,
ctrl+a>n=new_window will only trigger the new_window action if the
user presses ctrl+a followed separately by n. In other software, this
is sometimes called a leader key, a key chord, a key table, etc. There
is no hardcoded limit on the number of parts in a sequence.
Warning: If you define a sequence as a CLI argument to ghostty,
you probably have to quote the keybind since > is a special character
in most shells. Example: ghostty --keybind='ctrl+a>n=new_window'
A trigger sequence has some special handling:
-
Ghostty will wait an indefinite amount of time for the next key in the sequence. There is no way to specify a timeout. The only way to force the output of a prefix key is to assign another keybind to specifically output that key (e.g.
ctrl+a>ctrl+a=text:foo) or press an unbound key which will send both keys to the program. -
If an unbound key is pressed during a sequence and a
catch_allbinding exists that wouldignorethe input, the entire sequence is dropped and nothing happens. Otherwise, the entire sequence is encoded and sent to the running program as if no keybind existed. -
If a prefix in a sequence is previously bound, the sequence will override the previous binding. For example, if
ctrl+ais bound tonew_windowandctrl+a>nis bound tonew_tab, pressingctrl+awill do nothing. -
Adding to the above, if a previously bound sequence prefix is used in a new, non-sequence binding, the entire previously bound sequence will be unbound. For example, if you bind
ctrl+a>nandctrl+a>t, and then bindctrl+adirectly, bothctrl+a>nandctrl+a>twill become unbound. -
Trigger sequences are not allowed for
global:orall:-prefixed triggers. This is a limitation we could remove in the future.
Action is the action to take when the trigger is satisfied. It takes the
format action or action:param. The latter form is only valid if the
action requires a parameter.
-
ignore- Do nothing, ignore the key input. This can be used to black hole certain inputs to have no effect. -
unbind- Remove the binding. This makes it so the previous action is removed, and the key will be sent through to the child command if it is printable. Unbind will remove any matching trigger, includingphysical:-prefixed triggers without specifying the prefix. -
csi:text- Send a CSI sequence. e.g.csi:Asends "cursor up". -
esc:text- Send an escape sequence. e.g.esc:ddeletes to the end of the word to the right. -
text:text- Send a string. Uses Zig string literal syntax. e.g.text:\x15sends Ctrl-U. -
All other actions can be found in the documentation or by using the
ghostty +list-actionscommand.
Some notes for the action:
- The parameter is taken as-is after the
:. Double quotes or other mechanisms are included and NOT parsed. If you want to send a string value that includes spaces, wrap the entire trigger/action in double quotes. Example:--keybind="up=csi:A B"
There are some additional special values that can be specified for keybind:
keybind=clearwill clear all set keybindings. Warning: this removes ALL keybindings up to this point, including the default keybindings.
The keybind trigger can be prefixed with some special values to change the behavior of the keybind. These are:
-
all:Make the keybind apply to all terminal surfaces. By default, keybinds only apply to the focused terminal surface. If this is true, then the keybind will be sent to all terminal surfaces. This only applies to actions that are surface-specific. For actions that are already global (e.g.
quit), this prefix has no effect. -
global:Make the keybind global. By default, keybinds only work within Ghostty and under the right conditions (application focused, sometimes terminal focused, etc.). If you want a keybind to work globally across your system (e.g. even when Ghostty is not focused), specify this prefix. This prefix implies
all:.Note: this does not work in all environments; see the additional notes below for more information.
-
unconsumed:Do not consume the input. By default, a keybind will consume the input, meaning that the associated encoding (if any) will not be sent to the running program in the terminal. If you wish to send the encoded value to the program, specify the
unconsumed:prefix before the entire keybind. For example:unconsumed:ctrl+a=reload_config.global:andall:-prefixed keybinds will always consume the input regardless of this setting. Since they are not associated with a specific terminal surface, they're never encoded. -
performable:Only consume the input if the action is able to be performed. For example, the
copy_to_clipboardaction will only consume the input if there is a selection to copy. If there is no selection, Ghostty behaves as if the keybind was not set. This has no effect withglobal:orall:-prefixed keybinds. For key sequences, this will reset the sequence if the action is not performable (acting identically to not having a keybind set at all).Performable keybinds will not appear as menu shortcuts in the application menu. This is because the menu shortcuts force the action to be performed regardless of the state of the terminal. Performable keybinds will still work, they just won't appear as a shortcut label in the menu.
Keybind triggers are not unique per prefix combination. For example,
ctrl+a and global:ctrl+a are not two separate keybinds. The keybind
set later will overwrite the keybind set earlier. In this case, the
global: keybind will be used.
Multiple prefixes can be specified. For example,
global:unconsumed:ctrl+a=reload_config will make the keybind global
and not consume the input to reload the config.
On macOS, this feature requires accessibility permissions to be granted
to Ghostty. When a global: keybind is specified and Ghostty is launched
or reloaded, Ghostty will attempt to request these permissions.
If the permissions are not granted, the keybind will not work. On macOS,
you can find these permissions in System Preferences -> Privacy & Security
-> Accessibility.
Since Ghostty 1.4.0, global shortcuts on Linux are primarily supported
through the vicinae-hotkey-v1
protocol, available out-of-the-box with the following Wayland compositors
and desktop environments:
- Hyprland since version 0.56.0
On X11 or when your Wayland compositor/desktop environment does not
support vicinae-hotkey-v1, the much more widely-used
XDG Global Shortcuts
protocol is used instead.
Note: XDG Global Shortcuts rely on a functional XDG Desktop Portal implementation that is designed to be used with your desktop environment or compositor. Please make sure that you have the correct one installed.
Desktop environments that are known to support the XDG Global Shortcuts protocol include:
-
KDE Plasma since 5.27 with
xdg-desktop-portal-kdeinstalled -
GNOME since 48 with
xdg-desktop-portal-gnomeinstalled -
Hyprland before version 0.56.0, with
xdg-desktop-portal-hyprlandinstalled. Some manual configuration is required. Consult the steps outlined on the Hyprland Wiki to set up D-Bus-based global shortcuts correctly.
Desktop environments and compositors that don't implement either protocol do not support global shortcuts, like wlroots-based compositors e.g. Sway (see upstream issue) and COSMIC.
Chained Actions
A keybind can have multiple actions by using the chain keyword for
subsequent actions. When a keybind is activated, all chained actions are
executed in order. The syntax is:
keybind = ctrl+a=new_window
keybind = chain=goto_split:left
This binds ctrl+a to first open a new window, then move focus to the
left split. Each chain entry appends an action to the most recently
defined keybind. You can chain as many actions as you want:
keybind = ctrl+a=new_window
keybind = chain=goto_split:left
keybind = chain=toggle_fullscreen
Chained actions cannot have prefixes like global: or unconsumed:.
The flags from the original keybind apply to the entire chain.
Chained actions work with key sequences as well. For example:
keybind = ctrl+a>n=new_window
keybind = chain=goto_split:left
Chains with key sequences apply to the most recent binding in the sequence.
Chained keybinds are available since Ghostty 1.3.0.
Key Tables
You may also create a named set of keybindings known as a "key table." A key table must be explicitly activated for the bindings to become available. This can be used to implement features such as a "copy mode", "vim mode", etc. Generically, this can implement modal keyboard input.
Key tables are defined using the syntax <table>/<binding>. The
<binding> value is everything documented above for keybinds. The
<table> value is the name of the key table. Table names can contain
anything except /, =, +, and >. The characters + and > are
reserved for keybind syntax (modifier combinations and key sequences).
For example foo/ctrl+a=new_window defines a binding within a table
named foo.
Tables are activated and deactivated using the binding actions
activate_key_table:<name> and deactivate_key_table. Other table
related binding actions also exist; see the documentation for a full list.
These are the primary way to interact with key tables.
Binding lookup proceeds from the innermost table outward, so keybinds in the default table remain available unless explicitly unbound in an inner table.
A key table has some special syntax and handling:
-
<name>/(with no binding) defines and clears a table, resetting all of its keybinds and settings. -
You cannot activate a table that is already the innermost table; such attempts are ignored. However, the same table can appear multiple times in the stack as long as it is not innermost (e.g.,
A -> B -> A -> Bis valid, butA -> B -> Bis not). -
A table can be activated in one-shot mode using
activate_key_table_once:<name>. A one-shot table is automatically deactivated when any non-catch-all binding is invoked. -
Key sequences work within tables:
foo/ctrl+a>ctrl+b=new_window. If an invalid key is pressed, the sequence ends but the table remains active. -
Chain actions work within tables, the
chainkeyword applies to the most recently defined binding in the table. e.g. if you settable/ctrl+a=new_windowyou can chain by usingchain=text:hello. Important: chain itself doesn't get prefixed with the table name, since it applies to the most recent binding in any table. -
Prefixes like
global:work within tables:foo/global:ctrl+a=new_window.
Key tables are available since Ghostty 1.3.0.
key-remap
Not applied on Windows.
Remap modifier keys within Ghostty. This allows you to swap or reassign modifier keys at the application level without affecting system-wide settings.
The format is from=to where both from and to are modifier key names.
You can use generic names like ctrl, alt, shift, super (macOS:
cmd/command) or sided names like left_ctrl, right_alt, etc.
This will NOT change keyboard layout or key encodings outside of Ghostty.
For example, on macOS, option+a may still produce å even if option is
remapped to ctrl. Desktop environments usually handle key layout long
before Ghostty receives the key events.
Example:
key-remap = ctrl=super
key-remap = left_control=right_alt
Important notes:
-
This is a one-way remap. If you remap
ctrl=super, then the physical Ctrl key acts as Super, but the Super key remains Super. -
Remaps are not transitive. If you remap
ctrl=superandalt=ctrl, pressing Alt will produce Ctrl, NOT Super. -
This affects both keybind matching and terminal input encoding. This does NOT impact keyboard layout or how keys are interpreted prior to Ghostty receiving them. For example,
option+aon macOS may still produceåeven ifoptionis remapped toctrl. -
Generic modifiers (e.g.
ctrl) match both left and right physical keys. Use sided names (e.g.left_ctrl) to remap only one side.
There are other edge case scenarios that may not behave as expected but are working as intended the way this feature is designed:
- On macOS, bindings in the main menu will trigger before any remapping is done. This is because macOS itself handles menu activation and this happens before Ghostty receives the key event. To workaround this, you should unbind the menu items and rebind them using your desired modifier.
This configuration can be repeated to specify multiple remaps.
window-padding-x
Default: 2
Horizontal window padding. This applies padding between the terminal cells and the left and right window borders. The value is in points, meaning that it will be scaled appropriately for screen DPI.
If this value is set too large, the screen will render nothing, because the grid will be completely squished by the padding. It is up to you as the user to pick a reasonable value. If you pick an unreasonable value, a warning will appear in the logs.
Changing this configuration at runtime will only affect new terminals, i.e. new windows, tabs, etc.
To set a different left and right padding, specify two numerical values
separated by a comma. For example, window-padding-x = 2,4 will set the
left padding to 2 and the right padding to 4. If you want to set both
paddings to the same value, you can use a single value. For example,
window-padding-x = 2 will set both paddings to 2.
window-padding-y
Default: 2
Vertical window padding. This applies padding between the terminal cells and the top and bottom window borders. The value is in points, meaning that it will be scaled appropriately for screen DPI.
If this value is set too large, the screen will render nothing, because the grid will be completely squished by the padding. It is up to you as the user to pick a reasonable value. If you pick an unreasonable value, a warning will appear in the logs.
Changing this configuration at runtime will only affect new terminals, i.e. new windows, tabs, etc.
To set a different top and bottom padding, specify two numerical values
separated by a comma. For example, window-padding-y = 2,4 will set the
top padding to 2 and the bottom padding to 4. If you want to set both
paddings to the same value, you can use a single value. For example,
window-padding-y = 2 will set both paddings to 2.
window-padding-balance
Default: false
The viewport dimensions are usually not perfectly divisible by the cell
size. In this case, some extra padding on the end of a column and the bottom
of the final row may exist. If this is true, then this extra padding
is automatically balanced between all four edges to minimize imbalance on
one side. If this is false, the top left grid cell will always hug the
edge with zero padding other than what may be specified with the other
window-padding options.
If other window-padding fields are set and this is true, this will still
apply. The other padding is applied first and may affect how many grid cells
actually exist, and this is applied last in order to balance the padding
given a certain viewport size and grid cell size.
Valid values are:
false- No balancing is applied.true- Balance the padding, but cap the top padding to avoid excessive space above the first row. Any excess is shifted to the bottom.equal- Balance the padding equally on all sides without any top-padding cap.
window-padding-color
Default: background
The color of the padding area of the window. Valid values are:
background- The background color specified inbackground.extend- Extend the background color of the nearest grid cell.extend-always- Same as "extend" but always extends without applying any of the heuristics that disable extending noted below.
The "extend" value will be disabled in certain scenarios. On primary screen applications (e.g. not something like Neovim), the color will not be extended vertically if any of the following are true:
- The nearest row has any cells that have the default background color. The thinking is that in this case, the default background color looks fine as a padding color.
- The nearest row is a prompt row (requires shell integration). The thinking here is that prompts often contain powerline glyphs that do not look good extended.
- The nearest row contains a perfect fit powerline character. These don't look good extended.
window-vsync
Not applied on Windows.
Synchronize rendering with the screen refresh rate. If true, this will minimize tearing and align redraws with the screen but may cause input latency. If false, this will maximize redraw frequency but may cause tearing, and under heavy load may use more CPU and power.
This defaults to true because out-of-sync rendering on macOS can cause kernel panics (macOS 14.4+) and performance issues for external displays over some hardware such as DisplayLink. If you want to minimize input latency, set this to false with the known aforementioned risks.
Changing this value at runtime will only affect new terminals.
This setting is only supported currently on macOS.
window-inherit-working-directory
Default: true
If true, new windows will inherit the working directory of the
previously focused window. If no window was previously focused, the default
working directory will be used (the working-directory option).
tab-inherit-working-directory
Default: true
If true, new tabs will inherit the working directory of the
previously focused tab. If no tab was previously focused, the default
working directory will be used (the working-directory option).
split-inherit-working-directory
Default: true
If true, new split panes will inherit the working directory of the
previously focused split. If no split was previously focused, the default
working directory will be used (the working-directory option).
window-inherit-font-size
Default: true
If true, new windows and tabs will inherit the font size of the previously
focused window. If no window was previously focused, the default font size
will be used. If this is false, the default font size specified in the
configuration font-size will be used.
window-decoration
Default: auto
Configure a preference for window decorations. This setting specifies a preference; the actual OS, desktop environment, window manager, etc. may override this preference. Ghostty will do its best to respect this preference but it may not always be possible.
Valid values:
-
noneAll window decorations will be disabled. Titlebar, borders, etc. will not be shown. On macOS, this will also disable tabs (enforced by the system).
-
autoAutomatically decide to use either client-side or server-side decorations based on the detected preferences of the current OS and desktop environment. This option usually makes Ghostty look the most "native" for your desktop.
-
clientPrefer client-side decorations.
-
serverPrefer server-side decorations. This is only relevant on Linux with GTK, either on X11, or Wayland on a compositor that supports the
org_kde_kwin_server_decorationprotocol (e.g. KDE Plasma, but almost any non-GNOME desktop supports this protocol).If
serveris set but the environment doesn't support server-side decorations, client-side decorations will be used instead.
The default value is auto.
For the sake of backwards compatibility and convenience, this setting also
accepts boolean true and false values. If set to true, this is equivalent
to auto. If set to false, this is equivalent to none.
This is convenient for users who live primarily on systems that don't
differentiate between client and server-side decorations (e.g. macOS and
Windows).
The "toggle_window_decorations" keybind action can be used to create a keybinding to toggle this setting at runtime.
macOS: To hide the titlebar without removing the native window borders
or rounded corners, use macos-titlebar-style = hidden instead.
window-title-font-family
Not applied on Windows.
The font that will be used for the application's window and tab titles.
If this setting is left unset, the system default font will be used.
Note: any font available on the system may be used, this font is not required to be a fixed-width font.
window-subtitle
Not applied on Windows.
The text that will be displayed in the subtitle of the window. Valid values:
false- Disable the subtitle.working-directory- Set the subtitle to the working directory of the surface.
This feature is only supported on GTK.
window-theme
Default: auto
The theme to use for the windows. Valid values:
auto- Determine the theme based on the configured terminal background color. This has no effect if the "theme" configuration has separate light and dark themes. In that case, the behavior of "auto" is equivalent to "system".system- Use the system theme.light- Use the light theme regardless of system theme.dark- Use the dark theme regardless of system theme.ghostty- Use the background and foreground colors specified in the Ghostty configuration. This is only supported on Linux builds.
On macOS, if macos-titlebar-style is tabs or transparent, the window theme will be
automatically set based on the luminosity of the terminal background color.
This only applies to terminal windows. This setting will still apply to
non-terminal windows within Ghostty.
This is currently only supported on macOS and Linux.
window-colorspace
Not applied on Windows.
The color space to use when interpreting terminal colors. "Terminal colors" refers to colors specified in your configuration and colors produced by direct-color SGR sequences.
Valid values:
srgb- Interpret colors in the sRGB color space. This is the default.display-p3- Interpret colors in the Display P3 color space.
This setting is currently only supported on macOS.
window-height
Default: 0
The initial window size. This size is in terminal grid cells by default. Both values must be set to take effect. If only one value is set, it is ignored.
We don't currently support specifying a size in pixels but a future change can enable that. If this isn't specified, the app runtime will determine some default size.
Note that the window manager may put limits on the size or override the size. For example, a tiling window manager may force the window to be a certain size to fit within the grid. There is nothing Ghostty will do about this, but it will make an effort.
Sizes larger than the screen size will be clamped to the screen size. This can be used to create a maximized-by-default window size.
This will not affect new tabs, splits, or other nested terminal elements. This only affects the initial window size of any new window. Changing this value will not affect the size of the window after it has been created. This is only used for the initial size.
BUG: On Linux with GTK, the calculated window size will not properly take
into account window decorations. As a result, the grid dimensions will not
exactly match this configuration. If window decorations are disabled (see
window-decoration), then this will work as expected.
Windows smaller than 10 wide by 4 high are not allowed.
window-width
Default: 0
Documented with window-height.
window-position-x
Default: empty
The starting window position. This position is in pixels and is relative to the top-left corner of the primary monitor. Both values must be set to take effect. If only one value is set, it is ignored.
Note that the window manager may put limits on the position or override the position. For example, a tiling window manager may force the window to be a certain position to fit within the grid. There is nothing Ghostty will do about this, but it will make an effort.
Also note that negative values are also up to the operating system and window manager. Some window managers may not allow windows to be placed off-screen.
Invalid positions are runtime-specific, but generally the positions are clamped to the nearest valid position.
On macOS, the window position is relative to the top-left corner of the visible screen area. This means that if the menu bar is visible, the window will be placed below the menu bar.
Note: this is only supported on macOS. The GTK runtime does not support setting the window position, as windows are only allowed position themselves in X11 and not Wayland.
window-position-y
Default: empty
Documented with window-position-x.
window-save-state
Default: default
Whether to enable saving and restoring window state. Window state includes
their position, size, tabs, splits, etc. Some window state requires shell
integration, such as preserving working directories. See shell-integration
for more information.
There are three valid values for this configuration:
-
defaultwill use the default system behavior. On macOS, this will only save state if the application is forcibly terminated or if it is configured systemwide via Settings.app. -
neverwill never save window state. -
alwayswill always save window state whenever Ghostty is exited.
If you change this value to never while Ghostty is not running, the next
Ghostty launch will NOT restore the window state.
If you change this value to default while Ghostty is not running and the
previous exit saved state, the next Ghostty launch will still restore the
window state. This is because Ghostty cannot know if the previous exit was
due to a forced save or not (macOS doesn't provide this information).
If you change this value so that window state is saved while Ghostty is not running, the previous window state will not be restored because Ghostty only saves state on exit if this is enabled.
The default value is default.
This is currently only supported on macOS. This has no effect on Linux.
window-step-resize
Default: false
Resize the window in discrete increments of the focused surface's cell size. If this is disabled, surfaces are resized in pixel increments. Currently only supported on macOS.
window-new-tab-position
Default: current
The position where new tabs are created. Valid values:
-
current- Insert the new tab after the currently focused tab, or at the end if there are no focused tabs. -
end- Insert the new tab at the end of the tab list.
window-show-tab-bar
Default: always
Whether to show the tab bar.
Valid values:
-
always(default)Always show the tabs, even when there is only one tab.
-
autoShow the tabs only when there are two or more. With one tab, Windows 10 and 11 show its title in the title bar instead, and Windows 7 shows only the title bar.
-
neverNever show the tabs. Switch tabs with key bindings or the Command Palette.
window-titlebar-background
Not applied on Windows.
Background color for the window titlebar. This only takes effect if window-theme is set to ghostty. Currently only supported in the GTK app runtime.
Specified as either hex (#RRGGBB or RRGGBB) or a named X11 color.
window-titlebar-foreground
Not applied on Windows.
Foreground color for the window titlebar. This only takes effect if window-theme is set to ghostty. Currently only supported in the GTK app runtime.
Specified as either hex (#RRGGBB or RRGGBB) or a named X11 color.
drag-handle
Not applied on Windows.
Controls when drag handles are shown over splits, allowing splits to be rearranged with mouse controls.
Valid values:
-
alwaysAlways display the drag handle, even when there's only one split.
-
auto(default)Automatically show and hide the drag handle.
On Linux, the handle is only shown when there are two or more splits present.
On macOS, the handle is only hidden when there's one split in fullscreen mode, otherwise it's shown when hovered.
-
neverNever show the drag handle. Splits then cannot be rearranged with mouse controls.
resize-overlay
Default: after-first
This controls when resize overlays are shown. Resize overlays are a transient popup that shows the size of the terminal while the surfaces are being resized. The possible options are:
always- Always show resize overlays.never- Never show resize overlays.after-first- The resize overlay will not appear when the surface is first created, but will show up if the surface is subsequently resized.
The default is after-first.
resize-overlay-position
Default: center
If resize overlays are enabled, this controls the position of the overlay. The possible options are:
centertop-lefttop-centertop-rightbottom-leftbottom-centerbottom-right
The default is center.
resize-overlay-duration
Default: 750ms
If resize overlays are enabled, this controls how long the overlay is visible on the screen before it is hidden. The default is ¾ of a second or 750 ms.
The duration is specified as a series of numbers followed by time units. Whitespace is allowed between numbers and units. Each number and unit will be added together to form the total duration.
The allowed time units are as follows:
y- 365 SI days, or 8760 hours, or 31536000 seconds. No adjustments are made for leap years or leap seconds.d- one SI day, or 86400 seconds.h- one hour, or 3600 seconds.m- one minute, or 60 seconds.s- one second.ms- one millisecond, or 0.001 second.usorµs- one microsecond, or 0.000001 second.ns- one nanosecond, or 0.000000001 second.
Examples:
1h30m45s
Units can be repeated and will be added together. This means that
1h1h is equivalent to 2h. This is confusing and should be avoided.
A future update may disallow this.
The maximum value is 584y 49w 23h 34m 33s 709ms 551µs 615ns. Any
value larger than this will be clamped to the maximum value.
focus-follows-mouse
Default: false
If true, when there are multiple split panes, the mouse selects the pane that is focused. This only applies to the currently focused window; e.g. mousing over a split in an unfocused window will not focus that split and bring the window to front.
Default is false.
clipboard-read
Default: ask
Whether to allow programs running in the terminal to read/write to the system clipboard (OSC 52, for googling). The default is to allow clipboard reading after prompting the user and allow writing unconditionally.
Valid values are:
askallowdeny
clipboard-write
Default: allow
Documented with clipboard-read.
clipboard-write-limit-bytes
Default: 67108864
The maximum size in bytes of a single clipboard write by a program running in the terminal via the Kitty clipboard protocol (OSC 5522). This doesn't apply to OSC 52, which is limited by the maximum length of an escape sequence hardcoded into Ghostty for now.
Data beyond the limit fails the entire write with an EFBIG status,
discards the transaction, and leaves the clipboard untouched. Later
write-related packets are ignored until a new write begins.
The data is buffered in memory while the write is in progress, so this limit bounds how much memory a program can make Ghostty allocate per write. A future improvement will attempt to spool large writes to disk.
The default is 64 MiB, the minimum a conforming implementation must
accept. Set this to unlimited to remove the limit, allowing writes
bounded only by available memory. A value of 0 rejects every non-empty
write. To reject clipboard writes entirely, use clipboard-write = deny
instead.
This can be changed at runtime and applies to writes that begin after the change.
clipboard-trim-trailing-spaces
Default: true
Trims trailing whitespace on data that is copied to the clipboard. This does
not affect data sent to the clipboard via clipboard-write. This only
applies to trailing whitespace on lines that have other characters.
Completely blank lines always have their whitespace trimmed.
clipboard-paste-protection
Default: true
Require confirmation before pasting text that appears unsafe. This helps prevent a "copy/paste attack" where a user may accidentally execute unsafe commands by pasting text with newlines or carriage returns.
clipboard-paste-bracketed-safe
Default: true
If true, bracketed pastes will be considered safe. By default, bracketed pastes are considered safe. "Bracketed" pastes are pastes while the running program has bracketed paste mode enabled (a setting set by the running program, not the terminal emulator).
title-report
Default: false
Enables or disabled title reporting (CSI 21 t). This escape sequence allows the running program to query the terminal title. This is a common security issue and is disabled by default.
Warning: This can expose sensitive information at best and enable arbitrary code execution at worst (with a maliciously crafted title and a minor amount of user interaction).
image-storage-limit
The total amount of bytes that can be used for image data (e.g. the Kitty image protocol) per terminal screen. The maximum value is 4,294,967,295 (4GiB). The default is 320MB. If this is set to zero, then all image protocols will be disabled.
This value is separate for primary and alternate screens so the effective limit per surface is double.
copy-on-select
Default: none
Whether to automatically copy selected text to the clipboard.
Valid values:
-
none- Do not copy selected text automatically. -
primary- On Linux, copy to the selection clipboard only. This has no effect on macOS. -
clipboard- Copy text to the system clipboard only. -
both- Copy to both clipboards on Linux, and only the system clipboard on macOS.
For backward compatibility and convenience, a value of true is the same as
primary on Linux and clipboard on macOS, and false is an alias for
none.
The default value is primary on Linux and none otherwise.
right-click-action
Default: context-menu
The action to take when the user right-clicks on the terminal surface.
Valid values:
context-menu- Show the context menu.paste- Paste the contents of the clipboard.copy- Copy the selected text to the clipboard.copy-or-paste- If there is a selection, copy the selected text to the clipboard; otherwise, paste the contents of the clipboard.ignore- Do nothing, ignore the right-click.
The default value is context-menu.
middle-click-action
Not applied on Windows.
The action to take when the user middle-clicks on the terminal surface.
Valid values:
primary-paste- Paste from the selection clipboard on Linux. Does nothing on macOS.clipboard-paste- Paste from the system clipboard.ignore- Do nothing, ignore the middle click.
The default value is primary-paste.
click-repeat-interval
Default: 0
The time in milliseconds between clicks to consider a click a repeat (double, triple, etc.) or an entirely new single click. A value of zero will use a platform-specific default. The default on macOS is determined by the OS settings. On every other platform it is 500ms.
config-file
Additional configuration files to read. This configuration can be repeated
to read multiple configuration files. Configuration files themselves can
load more configuration files. Paths are relative to the file containing the
config-file directive. For command-line arguments, paths are relative to
the current working directory.
Prepend a ? character to the file path to suppress errors if the file does not exist. If you want to include a file that begins with a literal ? character, surround the file path in double quotes (").
Cycles are not allowed. If a cycle is detected, an error will be logged and the configuration file will be ignored.
Configuration files are loaded after the configuration they're defined within in the order they're defined. THIS IS A VERY SUBTLE BUT IMPORTANT POINT. To put it another way: configuration files do not take effect until after the entire configuration is loaded. For example, in the configuration below:
config-file = "foo"
a = 1
If "foo" contains a = 2, the final value of a will be 2, because
foo is loaded after the configuration file that configures the
nested config-file value.
config-default-files
Not applied on Windows.
When this is true, the default configuration file paths will be loaded. The default configuration file paths are currently only the XDG config path ($XDG_CONFIG_HOME/ghostty/config.ghostty).
If this is false, the default configuration paths will not be loaded. This is targeted directly at using Ghostty from the CLI in a way that minimizes external effects.
This is a CLI-only configuration. Setting this in a configuration file will have no effect. It is not an error, but it will not do anything. This configuration can only be set via CLI arguments.
confirm-close-surface
Default: true
Confirms that a surface should be closed before closing it.
This defaults to true. If set to false, surfaces will close without
any confirmation. This can also be set to always, which will always
confirm closing a surface, even if shell integration says a process isn't
running.
quit-after-last-window-closed
Default: true
Whether or not to quit after the last surface is closed.
This defaults to false on macOS since that is standard behavior for
a macOS application. On Linux, this defaults to true since that is
generally expected behavior.
On Linux, if this is true, Ghostty can delay quitting fully until a
configurable amount of time has passed after the last window is closed.
See the documentation of quit-after-last-window-closed-delay.
quit-after-last-window-closed-delay
Not applied on Windows.
Controls how long Ghostty will stay running after the last open surface has
been closed. This only has an effect if quit-after-last-window-closed is
also set to true.
The minimum value for this configuration is 1s. Any values lower than
this will be clamped to 1s.
The duration is specified as a series of numbers followed by time units. Whitespace is allowed between numbers and units. Each number and unit will be added together to form the total duration.
The allowed time units are as follows:
y- 365 SI days, or 8760 hours, or 31536000 seconds. No adjustments are made for leap years or leap seconds.d- one SI day, or 86400 seconds.h- one hour, or 3600 seconds.m- one minute, or 60 seconds.s- one second.ms- one millisecond, or 0.001 second.usorµs- one microsecond, or 0.000001 second.ns- one nanosecond, or 0.000000001 second.
Examples:
1h30m45s
Units can be repeated and will be added together. This means that
1h1h is equivalent to 2h. This is confusing and should be avoided.
A future update may disallow this.
The maximum value is 584y 49w 23h 34m 33s 709ms 551µs 615ns. Any
value larger than this will be clamped to the maximum value.
By default quit-after-last-window-closed-delay is unset and
Ghostty will quit immediately after the last window is closed if
quit-after-last-window-closed is true.
Only implemented on Linux.
initial-window
Not applied on Windows.
This controls whether an initial window is created when Ghostty
is run. Note that if quit-after-last-window-closed is true and
quit-after-last-window-closed-delay is set, setting initial-window to
false will mean that Ghostty will quit after the configured delay if no
window is ever created. Only implemented on Linux and macOS.
undo-timeout
Default: 5s
The duration that undo operations remain available. After this time, the operation will be removed from the undo stack and cannot be undone.
The default value is 5 seconds.
This timeout applies per operation, meaning that if you perform multiple operations, each operation will have its own timeout. New operations do not reset the timeout of previous operations.
A timeout of zero will effectively disable undo operations. It is not possible to set an infinite timeout, but you can set a very large timeout to effectively disable the timeout (on the order of years). This is highly discouraged, as it will cause the undo stack to grow indefinitely, memory usage to grow unbounded, and terminal sessions to never actually quit.
The duration is specified as a series of numbers followed by time units. Whitespace is allowed between numbers and units. Each number and unit will be added together to form the total duration.
The allowed time units are as follows:
y- 365 SI days, or 8760 hours, or 31536000 seconds. No adjustments are made for leap years or leap seconds.d- one SI day, or 86400 seconds.h- one hour, or 3600 seconds.m- one minute, or 60 seconds.s- one second.ms- one millisecond, or 0.001 second.usorµs- one microsecond, or 0.000001 second.ns- one nanosecond, or 0.000000001 second.
Examples:
1h30m45s
Units can be repeated and will be added together. This means that
1h1h is equivalent to 2h. This is confusing and should be avoided.
A future update may disallow this.
This configuration is only supported on macOS. Linux doesn't support undo operations at all so this configuration has no effect.
quick-terminal-position
The position of the "quick" terminal window. To learn more about the
quick terminal, see the documentation for the toggle_quick_terminal
binding action.
Valid values are:
top- Terminal appears at the top of the screen.bottom- Terminal appears at the bottom of the screen.left- Terminal appears at the left of the screen.right- Terminal appears at the right of the screen.center- Terminal appears at the center of the screen.
On macOS, changing this configuration requires restarting Ghostty completely.
Note: There is no default keybind for toggling the quick terminal.
To enable this feature, bind the toggle_quick_terminal action to a key.
quick-terminal-size
The size of the quick terminal.
The size can be specified either as a percentage of the screen dimensions
(height/width), or as an absolute size in pixels. Percentage values are
suffixed with % (e.g. 20%) while pixel values are suffixed with px
(e.g. 300px). A bare value without a suffix is a config error.
When only one size is specified, the size parameter affects the size of the quick terminal on its primary axis, which depends on its position: height for quick terminals placed on the top or bottom, and width for left or right. The primary axis of a centered quick terminal depends on the monitor's orientation: height when on a landscape monitor, and width when on a portrait monitor.
The secondary axis would be maximized for non-center positioned
quick terminals unless another size parameter is specified, separated
from the first by a comma (,). Percentage and pixel sizes can be mixed
together: for instance, a size of 50%,500px for a top-positioned quick
terminal would be half a screen tall, and 500 pixels wide.
gtk-quick-terminal-layer
The layer of the quick terminal window. The higher the layer, the more windows the quick terminal may conceal.
Valid values are:
-
overlayThe quick terminal appears in front of all windows.
-
top(default)The quick terminal appears in front of normal windows but behind fullscreen overlays like lock screens.
-
bottomThe quick terminal appears behind normal windows but in front of wallpapers and other windows in the background layer.
-
backgroundThe quick terminal appears behind all windows.
GTK Wayland only.
gtk-quick-terminal-namespace
The namespace for the quick terminal window.
This is an identifier that is used by the Wayland compositor and/or scripts to determine the type of layer surfaces and to possibly apply unique effects.
GTK Wayland only.
quick-terminal-screen
The screen where the quick terminal should show up.
Valid values are:
-
main- The screen that the operating system recommends as the main screen. On macOS, this is the screen that is currently receiving keyboard input. This screen is defined by the operating system and not chosen by Ghostty. -
mouse- The screen that the mouse is currently hovered over. -
macos-menu-bar- The screen that contains the macOS menu bar as set in the display settings on macOS. This is a bit confusing because every screen on macOS has a menu bar, but this is the screen that contains the primary menu bar.
The default value is main because this is the recommended screen
by the operating system.
On macOS, macos-menu-bar uses the screen containing the menu bar.
On Linux/Wayland, macos-menu-bar is treated as equivalent to main.
Note: On Linux, there is no universal concept of a "primary" monitor. Ghostty uses the compositor-reported primary output when available and falls back to the first monitor reported by GDK if no primary output can be resolved.
quick-terminal-animation-duration
Duration (in seconds) of the quick terminal enter and exit animation. Set it to 0 to disable animation completely. This can be changed at runtime.
Only implemented on macOS.
quick-terminal-autohide
Automatically hide the quick terminal when focus shifts to another window. Set it to false for the quick terminal to remain open even when it loses focus.
Defaults to true on macOS and on false on Linux/BSD. This is because global shortcuts on Linux require system configuration and are considerably less accessible than on macOS, meaning that it is more preferable to keep the quick terminal open until the user has completed their task. This default may change in the future.
quick-terminal-space-behavior
This configuration option determines the behavior of the quick terminal when switching between macOS spaces. macOS spaces are virtual desktops that can be manually created or are automatically created when an application is in full-screen mode.
Valid values are:
-
move- When switching to another space, the quick terminal will also moved to the current space. -
remain- The quick terminal will stay only in the space where it was originally opened and will not follow when switching to another space.
The default value is move.
Only implemented on macOS.
On Linux the behavior is always equivalent to move.
quick-terminal-keyboard-interactivity
Determines under which circumstances that the quick terminal should receive keyboard input. See the corresponding Wayland documentation for a more detailed explanation of the behavior of each option.
Note
The exact behavior of each option may differ significantly across compositors -- experiment with them on your system to find one that suits your liking!
Valid values are:
-
noneThe quick terminal will not receive any keyboard input.
-
on-demand(default)The quick terminal would only receive keyboard input when it is focused.
-
exclusiveThe quick terminal will always receive keyboard input, even when another window is currently focused.
Only has an effect on Linux Wayland.
On macOS the behavior is always equivalent to on-demand.
shell-integration
Default: detect
Whether to enable shell integration auto-injection or not. Shell integration greatly enhances the terminal experience by enabling a number of features:
-
Working directory reporting so new tabs, splits inherit the previous terminal's working directory.
-
Prompt marking that enables the "jump_to_prompt" keybinding.
-
If you're sitting at a prompt, closing a terminal will not ask for confirmation.
-
Resizing the window with a complex prompt usually paints much better.
Allowable values are:
-
none- Do not do any automatic injection. You can still manually configure your shell to enable the integration. -
detect- Detect the shell based on the filename. -
bash,elvish,fish,nushell,zsh- Use this specific shell injection scheme.
The default value is detect.
shell-integration-features
Default: title
Shell integration features to enable. These require our shell integration to be loaded, either automatically via shell-integration or manually.
The format of this is a list of features to enable separated by commas. If
you prefix a feature with no- then it is disabled. If you omit a feature,
its default value is used, so you must explicitly disable features you don't
want. You can also use true or false to turn all features on or off.
Example: cursor, no-cursor, sudo, no-sudo, title, no-title
Available features:
-
cursor- Set the cursor to a bar at the prompt. -
sudo- Set sudo wrapper to preserve terminfo. -
title- Set the window title via shell integration. -
ssh-env- Enable SSH environment variable compatibility. Automatically converts TERM fromxterm-ghosttytoxterm-256colorwhen connecting to remote hosts and propagates COLORTERM, TERM_PROGRAM, and TERM_PROGRAM_VERSION. Whether or not these variables will be accepted by the remote host(s) will depend on whether or not the variables are allowed in their sshd_config. -
ssh-terminfo- Enable automatic terminfo installation on remote hosts. Attempts to install Ghostty's embedded terminfo entry usingticon local cache misses. Requiresticto be available on remote hosts. Successful installations are cached locally to avoid repeat installations. If desired, the+ssh-cacheCLI action can be used to manage the installation cache manually using various arguments. -
path- Add Ghostty's binary directory to PATH. This ensures theghosttycommand is available in the shell even if shell init scripts reset PATH. This is particularly useful on macOS where PATH is often overridden by system scripts. The directory is only added if not already present.
SSH features work independently and can be combined for optimal experience:
when both ssh-env and ssh-terminfo are enabled, Ghostty will install its
terminfo on remote hosts and use xterm-ghostty as TERM, falling back to
xterm-256color with environment variables if terminfo installation fails.
command-palette-entry
Not applied on Windows.
Custom entries into the command palette.
Each entry requires the title, the corresponding action, and an optional
description. Each field should be prefixed with the field name, a colon
(:), and then the specified value. The syntax for actions is identical
to the one for keybind actions. Whitespace in between fields is ignored.
If you need to embed commas or any other special characters in the values, enclose the value in double quotes and it will be interpreted as a Zig string literal. This is also useful for including whitespace at the beginning or the end of a value. See the Zig documentation for more information on string literals. Note that multiline string literals are not supported.
Double quotes can not be used around the field names.
command-palette-entry = title:Reset Font Style, action:csi:0m
command-palette-entry = title:Crash on Main Thread,description:Causes a crash on the main (UI) thread.,action:crash:main
command-palette-entry = title:Focus Split: Right,description:"Focus the split to the right, if it exists.",action:goto_split:right
command-palette-entry = title:"Ghostty",description:"Add a little Ghostty to your terminal.",action:"text:\xf0\x9f\x91\xbb"
There are some additional special values that can be specified for command-palette-entry:
command-palette-entry=clearwill clear all command entries. Warning: this removes ALL entries up to this point, including the default entries.
By default, the command palette is preloaded with most actions that might be useful in an interactive setting yet do not have easily accessible or memorizable shortcuts. The default entries can be restored by setting this setting to an empty value:
command-palette-entry =
osc-color-report-format
Not applied on Windows.
Sets the reporting format for OSC sequences that request color information. Ghostty currently supports OSC 10 (foreground), OSC 11 (background), and OSC 4 (256 color palette) queries, and by default the reported values are scaled-up RGB values, where each component are 16 bits. This is how most terminals report these values. However, some legacy applications may require 8-bit, unscaled, components. We also support turning off reporting altogether. The components are lowercase hex values.
Allowable values are:
-
none- OSC 4/10/11 queries receive no reply -
8-bit- Color components are return unscaled, e.g.rr/gg/bb -
16-bit- Color components are returned scaled, e.g.rrrr/gggg/bbbb
The default value is 16-bit.
vt-kam-allowed
Not applied on Windows.
If true, allows the "KAM" mode (ANSI mode 2) to be used within the terminal. KAM disables keyboard input at the request of the application. This is not a common feature and is not recommended to be enabled. This will not be documented further because if you know you need KAM, you know. If you don't know if you need KAM, you don't need it.
vt-window-resize-allowed
Not applied on Windows.
If true, allows the running program to resize the window using the
xterm CSI 8 ; rows ; columns t escape sequence. If a parameter is zero
or omitted, the current size of that dimension is kept. Sizes smaller
than 40 columns by 10 rows are raised to that size so that a program
can't shrink the window to hide its output.
The request is ignored if the terminal is in a split, in a window with multiple tabs, or the quick terminal, or if the window manager controls the window size, such as when it is fullscreen, maximized, or tiled. Sizes larger than the screen are clamped to the screen.
This is disabled by default because it lets any program, including one running on a remote machine, change the size of your window.
vt-xt-checksum-report
Default: false
Enables or disables checksum reporting (DECRQCRA, CSI Pi ; Pg ; Pt ; Pl ; Pb ; Pr * y). This escape sequence allows the running program to
ask for a checksum of an area of the screen. Terminal test suites use it
to check what is on the screen.
This is disabled by default because a program can ask for the checksum of one cell at a time and so read back everything on the screen, including the output of other programs.
While this is disabled, XTCHECKSUM (CSI Ps # y), which changes how the
checksum is calculated, is ignored as well.
vt-xt-checksum-extension
Default: negate,attributes,trim,no-undrawn,no-full
How the checksum reported for DECRQCRA (see vt-xt-checksum-report) is
calculated. This is the calculation used after a reset, like xterm's
checksumExtension resource. A running program can change it with
XTCHECKSUM (CSI Ps # y) until the next reset. The default is the
calculation of a real DEC terminal.
Valid values are:
-
negate- Report the negated sum, as DEC terminals do. -
attributes- Add bold, underline, blink, inverse, invisible, and protected attributes to the value of each cell. -
trim- Omit plain spaces other than the first cell of the area. -
undrawn- Count cells that were never written to as spaces instead of skipping them. -
full- Use the full codepoint of each cell instead of the DEC 8-bit value.
Prefix a value with no- to disable it. For example, esctest expects
no-negate,no-attributes,no-trim,full when run with --xterm-checksum,
which is xterm's checksumExtension: 23.
The bits of xterm's resource are described in its
man page
and its control sequence documentation,
but where those disagree with xterm's
implementation,
Ghostty follows the implementation. The documentation describes bit 3
as omitting cells that were never written to, but xterm skips those
cells by default and counts them as spaces with the bit set, which is
undrawn here. It also lists a bit 5 that xterm doesn't implement.
custom-shader
Not applied on Windows.
Custom shaders to run after the default shaders. This is a file path to a GLSL-syntax shader for all platforms.
Warning: Invalid shaders can cause Ghostty to become unusable such as by causing the window to be completely black. If this happens, you can unset this configuration to disable the shader.
Custom shader support is based on and compatible with the Shadertoy shaders.
Shaders should specify a mainImage function and the available uniforms
largely match Shadertoy, with some caveats and Ghostty-specific extensions.
The uniform values available to shaders are as follows:
-
sampler2D iChannel0- Input texture.A texture containing the current terminal screen. If multiple custom shaders are specified, the output of previous shaders is written to this texture, to allow combining multiple effects.
-
vec3 iResolution- Output texture size,[width, height, 1](in px). -
float iTime- Time in seconds since first frame was rendered. -
float iTimeDelta- Time in seconds since previous frame was rendered. -
float iFrameRate- Average framerate. (NOT CURRENTLY SUPPORTED) -
int iFrame- Number of frames that have been rendered so far. -
float iChannelTime[4]- Current time for video or sound input. (N/A) -
vec3 iChannelResolution[4]- Resolutions of the 4 input samplers.Currently only
iChannel0exists, andiChannelResolution[0]is identical toiResolution. -
vec4 iMouse- Mouse input info. (NOT CURRENTLY SUPPORTED) -
vec4 iDate- Date/time info. (NOT CURRENTLY SUPPORTED) -
float iSampleRate- Sample rate for audio. (N/A)
Ghostty-specific extensions:
-
vec4 iCurrentCursor- Info about the terminal cursor.iCurrentCursor.xyis the -X, +Y corner of the current cursor.iCurrentCursor.zwis the width and height of the current cursor.
-
vec4 iPreviousCursor- Info about the previous terminal cursor. -
vec4 iCurrentCursorColor- Color of the terminal cursor. -
vec4 iPreviousCursorColor- Color of the previous terminal cursor. -
vec4 iCurrentCursorStyle- Style of the terminal cursorMacros simplified use are defined for the various cursor styles:
CURSORSTYLE_BLOCKor0CURSORSTYLE_BLOCK_HOLLOWor1CURSORSTYLE_BARor2CURSORSTYLE_UNDERLINEor3CURSORSTYLE_LOCKor4
-
vec4 iPreviousCursorStyle- Style of the previous terminal cursor -
vec4 iCursorVisible- Visibility of the terminal cursor. -
float iTimeCursorChange- Timestamp of terminal cursor change.When the terminal cursor changes position or color, this is set to the same time as the
iTimeuniform, allowing you to compute the time since the change by subtracting this fromiTime. -
float iTimeFocus- Timestamp when the surface last gained iFocus.When the surface gains focus, this is set to the current value of
iTime, similar to howiTimeCursorChangeworks. This allows you to compute the time since focus was gained or lost by calculatingiTime - iTimeFocus. Use this to create animations that restart when the terminal regains focus. -
int iFocus- Current focus state of the surface.Set to 1.0 when the surface is focused, 0.0 when unfocused. This allows shaders to detect unfocused state and avoid animation artifacts from large time deltas caused by infrequent "deceptive frames" (e.g., modifier key presses, link hover events in unfocused split panes). Check
iFocus > 0to determine if the surface is currently focused. -
vec3 iPalette[256]- The 256-color terminal palette.RGB values for all 256 colors in the terminal palette, normalized to [0.0, 1.0]. Index 0-15 are the ANSI colors, 16-231 are the 6x6x6 color cube, and 232-255 are the grayscale colors.
-
vec3 iBackgroundColor- Terminal background color (RGB). -
vec3 iForegroundColor- Terminal foreground color (RGB). -
vec3 iCursorColor- Terminal cursor color (RGB). -
vec3 iCursorText- Terminal cursor text color (RGB). -
vec3 iSelectionBackgroundColor- Selection background color (RGB). -
vec3 iSelectionForegroundColor- Selection foreground color (RGB).
If the shader fails to compile, the shader will be ignored. Any errors related to shader compilation will not show up as configuration errors and only show up in the log, since shader compilation happens after configuration loading on the dedicated render thread. For interactive development, use shadertoy.com.
This can be repeated multiple times to load multiple shaders. The shaders will be run in the order they are specified.
This can be changed at runtime and will affect all open terminals.
custom-shader-animation
Not applied on Windows.
If true (default), the focused terminal surface will run an animation
loop when custom shaders are used. This uses slightly more CPU (generally
less than 10%) but allows the shader to animate. This only runs if there
are custom shaders and the terminal is focused.
If this is set to false, the terminal and custom shader will only render
when the terminal is updated. This is more efficient but the shader will
not animate.
This can also be set to always, which will always run the animation
loop regardless of whether the terminal is focused or not. The animation
loop will still only run when custom shaders are used. Note that this
will use more CPU per terminal surface and can become quite expensive
depending on the shader and your terminal usage.
This can be changed at runtime and will affect all open terminals.
bell-features
Default: no-system,no-audio,attention,title,no-border
Bell features to enable if bell support is available in your runtime. Not
all features are available on all runtimes. The format of this is a list of
features to enable separated by commas. If you prefix a feature with no-
then it is disabled. If you omit a feature, its default value is used.
Valid values are:
-
systemInstruct the system to notify the user using built-in system functions. This could result in an audiovisual effect, a notification, or something else entirely. Changing these effects require altering system settings: for instance under the "Sound > Alert Sound" setting in GNOME, or the "Accessibility > System Bell" settings in KDE Plasma.
On macOS, this plays the system alert sound.
-
audioPlay a custom sound.
-
attention(enabled by default)Request the user's attention when Ghostty is unfocused, until it has received focus again. On macOS, this will bounce the app icon in the dock once. On Linux, the behavior depends on the desktop environment and/or the window manager/compositor:
-
On KDE, the background of the desktop icon in the task bar would be highlighted;
-
On GNOME, you may receive a notification that, when clicked, would bring the Ghostty window into focus;
-
On Sway, the window may be decorated with a distinctly colored border;
-
On other systems this may have no effect at all.
-
-
title(enabled by default)Prepend a bell emoji (🔔) to the title of the alerted surface until the terminal is re-focused or interacted with (such as on keyboard input).
-
borderDisplay a border around the alerted surface until the terminal is re-focused or interacted with (such as on keyboard input).
Example: audio, no-audio, system, no-system
bell-audio-path
Default: empty
If audio is an enabled bell feature, this is a path to an audio file. If
the path is not absolute, it is considered relative to the directory of the
configuration file that it is referenced from, or from the current working
directory if this is used as a CLI flag. The path may be prefixed with ~/
to reference the user's home directory.
bell-audio-volume
Default: 0.5
If audio is an enabled bell feature, this is the volume to play the audio
file at (relative to the system volume). This is a floating point number
ranging from 0.0 (silence) to 1.0 (as loud as possible). The default is 0.5.
app-notifications
Default: clipboard-copy,config-reload
Control the in-app notifications that Ghostty shows.
On Linux (GTK), in-app notifications show up as toasts. Toasts appear overlaid on top of the terminal window. They are used to show information that is not critical but may be important.
Possible notifications are:
clipboard-copy(default: true) - Show a notification when text is copied to the clipboard.config-reload(default: true) - Show a notification when the configuration is reloaded.
To specify a notification to enable, specify the name of the notification.
To specify a notification to disable, prefix the name with no-. For
example, to disable clipboard-copy, set this configuration to
no-clipboard-copy. To enable it, set this configuration to clipboard-copy.
Multiple notifications can be enabled or disabled by separating them with a comma.
A value of "false" will disable all notifications. A value of "true" will enable all notifications.
This configuration only applies to GTK.
macos-non-native-fullscreen
Not applied on Windows.
If anything other than false, fullscreen mode on macOS will not use the native fullscreen, but make the window fullscreen without animations and using a new space. It's faster than the native fullscreen mode since it doesn't use animations.
Important: tabs DO NOT WORK in this mode. Non-native fullscreen removes the titlebar and macOS native tabs require the titlebar. If you use tabs, you should not use this mode.
If you fullscreen a window with tabs, the currently focused tab will become fullscreen while the others will remain in a separate window in the background. You can switch to that window using normal window-switching keybindings such as command+tilde. When you exit fullscreen, the window will return to the tabbed state it was in before.
Allowable values are:
true- Use non-native macOS fullscreen, hide the menu barfalse- Use native macOS fullscreenvisible-menu- Use non-native macOS fullscreen, keep the menu bar visiblepadded-notch- Use non-native macOS fullscreen, hide the menu bar, but ensure the window is not obscured by the notch on applicable devices. The area around the notch will remain transparent currently, but in the future we may fill it with the window background color.
Changing this option at runtime works, but will only apply to the next time the window is made fullscreen. If a window is already fullscreen, it will retain the previous setting until fullscreen is exited.
macos-window-buttons
Not applied on Windows.
Whether the window buttons in the macOS titlebar are visible. The window buttons are the colored buttons in the upper left corner of most macOS apps, also known as the traffic lights, that allow you to close, miniaturize, and zoom the window.
This setting has no effect when window-decoration = none or
macos-titlebar-style = hidden, as the window buttons are always hidden in
these modes.
Valid values are:
visible- Show the window buttons.hidden- Hide the window buttons.
The default value is visible.
Changing this option at runtime only applies to new windows.
macos-titlebar-style
Not applied on Windows.
The style of the macOS titlebar. Available values are: "native", "transparent", "tabs", and "hidden".
The "native" style uses the native macOS titlebar with zero customization.
The titlebar will match your window theme (see window-theme).
The "transparent" style is the same as "native" but the titlebar will be transparent and allow your window background color to come through. This makes a more seamless window appearance but looks a little less typical for a macOS application and may not work well with all themes.
The "transparent" style will also update in real-time to dynamic changes to the window background color, e.g. via OSC 11. To make this more aesthetically pleasing, this only happens if the terminal is a window, tab, or split that borders the top of the window. This avoids a disjointed appearance where the titlebar color changes but all the topmost terminals don't match.
The "tabs" style is a completely custom titlebar that integrates the tab bar into the titlebar. This titlebar always matches the background color of the terminal. There are some limitations to this style: On macOS 13 and below, saved window state will not restore tabs correctly. macOS 14 does not have this issue and any other macOS version has not been tested.
The "hidden" style hides the titlebar. Unlike window-decoration = none,
however, it does not remove the frame from the window or cause it to have
squared corners. Changing to or from this option at run-time may affect
existing windows in buggy ways.
When "hidden", the top titlebar area can no longer be used for dragging the window. To drag the window, you can use option+click on the resizable areas of the frame to drag the window. This is a standard macOS behavior and not something Ghostty enables.
The default value is "transparent". This is an opinionated choice but its one I think is the most aesthetically pleasing and works in most cases.
Changing this option at runtime only applies to new windows.
macos-titlebar-proxy-icon
Not applied on Windows.
Whether the proxy icon in the macOS titlebar is visible. The proxy icon is the icon that represents the folder of the current working directory. You can see this very clearly in the macOS built-in Terminal.app titlebar.
The proxy icon is only visible with the native macOS titlebar style.
Valid values are:
visible- Show the proxy icon.hidden- Hide the proxy icon.
The default value is visible.
This setting can be changed at runtime and will affect all currently
open windows but only after their working directory changes again.
Therefore, to make this work after changing the setting, you must
usually cd to a different directory, open a different file in an
editor, etc.
macos-dock-drop-behavior
Not applied on Windows.
Controls the windowing behavior when dropping a file or folder onto the Ghostty icon in the macOS dock.
Valid values are:
new-tab- Create a new tab in the current window, or open a new window if none exist.new-window- Create a new window unconditionally.
The default value is new-tab.
This setting is only supported on macOS and has no effect on other platforms.
macos-option-as-alt
Not applied on Windows.
macOS doesn't have a distinct "alt" key and instead has the "option" key which behaves slightly differently. On macOS by default, the option key plus a character will sometimes produce a Unicode character. For example, on US standard layouts option-b produces "∫". This may be undesirable if you want to use "option" as an "alt" key for keybindings in terminal programs or shells.
This configuration lets you change the behavior so that option is treated as alt.
The default behavior (unset) will depend on your active keyboard layout. If your keyboard layout is one of the keyboard layouts listed below, then the default value is "true". Otherwise, the default value is "false". Keyboard layouts with a default value of "true" are:
- U.S. Standard
- U.S. International
Note that if an Option-sequence doesn't produce a printable character, it
will be treated as Alt regardless of this setting. (e.g. alt+ctrl+a).
Explicit values that can be set:
If true, the Option key will be treated as Alt. This makes terminal
sequences expecting Alt to work properly, but will break Unicode input
sequences on macOS if you use them via the Alt key.
You may set this to false to restore the macOS Alt key unicode
sequences but this will break terminal sequences expecting Alt to work.
The values left or right enable this for the left or right Option
key, respectively.
macos-window-shadow
Not applied on Windows.
Whether to enable the macOS window shadow. The default value is true. With some window managers and window transparency settings, you may find false more visually appealing.
macos-hidden
Not applied on Windows.
If true, the macOS icon in the dock and app switcher will be hidden. This is mainly intended for those primarily using the quick-terminal mode.
Note that setting this to true means that keyboard layout changes will no longer be automatic.
Control whether macOS app is excluded from the dock and app switcher, a "hidden" state. This is mainly intended for those primarily using quick-terminal mode, but is a general configuration for any use case.
Available values:
never- The macOS app is never hidden.always- The macOS app is always hidden.
Note: When the macOS application is hidden, keyboard layout changes will no longer be automatic. This is a limitation of macOS.
macos-auto-secure-input
Not applied on Windows.
If true, Ghostty on macOS will automatically enable the "Secure Input" feature when it detects that a password prompt is being displayed.
"Secure Input" is a macOS security feature that prevents applications from
reading keyboard events. This can always be enabled manually using the
Ghostty > Secure Keyboard Entry menu item.
Note that automatic password prompt detection is based on heuristics and may not always work as expected. Specifically, it does not work over SSH connections, but there may be other cases where it also doesn't work.
A reason to disable this feature is if you find that it is interfering with legitimate accessibility software (or software that uses the accessibility APIs), since secure input prevents any application from reading keyboard events.
macos-secure-input-indication
Not applied on Windows.
If true, Ghostty will show a graphical indication when secure input is enabled. This indication is generally recommended to know when secure input is enabled.
Normally, secure input is only active when a password prompt is displayed or it is manually (and typically temporarily) enabled. However, if you always have secure input enabled, the indication can be distracting and you may want to disable it.
macos-applescript
Not applied on Windows.
If true, Ghostty exposes and handles the built-in AppleScript dictionary on macOS.
If false, all AppleScript interactions are disabled. This includes AppleScript commands and AppleScript object lookup for windows, tabs, and terminals.
The default is true.
macos-icon
Not applied on Windows.
Customize the macOS app icon.
This only affects the icon that appears in the dock, application
switcher, etc. This does not affect the icon in Finder because
that is controlled by a hardcoded value in the signed application
bundle and can't be changed at runtime. For more details on what
exactly is affected, see the NSApplication.icon Apple documentation;
that is the API that is being used to set the icon.
Valid values:
official- Use the official Ghostty icon.blueprint,chalkboard,microchip,glass,holographic,paper,retro,xray- Official variants of the Ghostty icon hand-created by artists (no AI).custom- Use a completely custom icon. The location must be specified using the additionalmacos-custom-iconconfigurationcustom-style- Use the official Ghostty icon but with custom styles applied to various layers. The custom styles must be specified using the additionalmacos-icon-prefixed configurations. Themacos-icon-ghost-colorandmacos-icon-screen-colorconfigurations are required for this style.
WARNING: The custom-style option is experimental. We may change
the format of the custom styles in the future. We're still finalizing
the exact layers and customization options that will be available.
Other caveats:
- The icon in the update dialog will always be the official icon. This is because the update dialog is managed through a separate framework and cannot be customized without significant effort.
macos-custom-icon
Not applied on Windows.
The absolute path to the custom icon file. Supported formats include PNG, JPEG, and ICNS.
Defaults to ~/.config/ghostty/Ghostty.icns
macos-icon-frame
Not applied on Windows.
The material to use for the frame of the macOS app icon.
Valid values:
aluminum- A brushed aluminum frame. This is the default.beige- A classic 90's computer beige frame.plastic- A glossy, dark plastic frame.chrome- A shiny chrome frame.
Note: This configuration is required when macos-icon is set to
custom-style.
macos-icon-ghost-color
Not applied on Windows.
The color of the ghost in the macOS app icon.
Note: This configuration is required when macos-icon is set to
custom-style.
Specified as either hex (#RRGGBB or RRGGBB) or a named X11 color.
macos-icon-screen-color
Not applied on Windows.
The color of the screen in the macOS app icon.
The screen is a linear gradient so you can specify multiple colors
that make up the gradient. Up to 64 comma-separated colors may be
specified as either hex (#RRGGBB or RRGGBB) or as named X11
colors. The first color is the bottom of the gradient and the last
color is the top of the gradient.
Note: This configuration is required when macos-icon is set to
custom-style.
macos-shortcuts
Not applied on Windows.
Whether macOS Shortcuts are allowed to control Ghostty.
Ghostty exposes a number of actions that allow Shortcuts to control and interact with Ghostty. This includes creating new terminals, sending text to terminals, running commands, invoking any keybind action, etc.
This is a powerful feature but can be a security risk if a malicious shortcut is able to be installed and executed. Therefore, this configuration allows you to disable this feature.
Valid values are:
-
ask- Ask the user whether for permission. Ghostty will remember this choice and never ask again. This is similar to other macOS permissions such as microphone access, camera access, etc. -
allow- Allow Shortcuts to control Ghostty without asking. -
deny- Deny Shortcuts from controlling Ghostty.
linux-cgroup
Not applied on Windows.
Put every surface (tab, split, window) into a transient systemd scope.
This allows per-surface resource management. For example, if a shell program is using too much memory, only that shell will be killed by the oom monitor instead of the entire Ghostty process. Similarly, if a shell program is using too much CPU, only that surface will be CPU-throttled.
This will cause startup times to be slower (a hundred milliseconds or so), so the default value is "single-instance." In single-instance mode, only one instance of Ghostty is running (see gtk-single-instance) so the startup time is a one-time cost. Additionally, single instance Ghostty is much more likely to have many windows, tabs, etc. so cgroup isolation is a big benefit.
This feature requires systemd. If systemd is unavailable, cgroup
initialization will fail. By default, this will not prevent Ghostty from
working (see linux-cgroup-hard-fail).
Changing this value and reloading the config will not affect existing surfaces.
Valid values are:
never- Never use cgroups.always- Always use cgroups.single-instance- Enable cgroups only for Ghostty instances launched as single-instance applications (see gtk-single-instance).
linux-cgroup-memory-limit
Not applied on Windows.
Memory limit for any individual terminal process (tab, split, window, etc.) in bytes. If this is unset then no memory limit will be set.
Note that this sets the MemoryHigh setting on the transient systemd
scope, which is a soft limit. You should configure something like
systemd-oom to handle killing processes that have too much memory
pressure.
Changing this value and reloading the config will not affect existing surfaces.
See the systemd.resource-control manual page for more information:
https://www.freedesktop.org/software/systemd/man/latest/systemd.resource-control.html
linux-cgroup-processes-limit
Not applied on Windows.
Number of processes limit for any individual terminal process (tab, split, window, etc.). If this is unset then no limit will be set.
Note that this sets the TasksMax setting on the transient systemd scope,
which is a hard limit.
Changing this value and reloading the config will not affect existing surfaces.
See the systemd.resource-control manual page for more information:
https://www.freedesktop.org/software/systemd/man/latest/systemd.resource-control.html
linux-cgroup-hard-fail
Not applied on Windows.
If this is false, then creating a transient systemd scope (for
linux-cgroup) will be allowed to fail and the failure is ignored. This is
useful if you view cgroup isolation as a "nice to have" and not a critical
resource management feature, because surface creation will not fail if
systemd APIs fail.
If this is true, then any transient systemd scope creation failure will
cause surface creation to fail.
Changing this value and reloading the config will not affect existing surfaces.
gtk-opengl-debug
Not applied on Windows.
Enable or disable GTK's OpenGL debugging logs. The default is true for
debug builds, false for all others.
gtk-single-instance
Not applied on Windows.
If true, the Ghostty GTK application will run in single-instance mode:
each new ghostty process launched will result in a new window if there is
already a running process.
If false, each new ghostty process will launch a separate application.
If detect, Ghostty will assume true (single instance) unless one of
the following scenarios is found:
-
TERM_PROGRAM environment variable is a non-empty value. In this case, we assume Ghostty is being launched from a graphical terminal session and you want a dedicated instance.
-
Any CLI arguments exist. In this case, we assume you are passing custom Ghostty configuration. Single instance mode inherits the configuration from when it was launched, so we must disable single instance to load the new configuration.
If either of these scenarios is producing a false positive, you can set this configuration explicitly to the behavior you want.
The pre-1.2 option desktop has been deprecated. Please replace
this with detect.
The default value is detect.
Note that debug builds of Ghostty have a separate single-instance ID so you can test single instance without conflicting with release builds.
gtk-titlebar
Not applied on Windows.
When enabled, the full GTK titlebar is displayed instead of your window manager's simple titlebar. The behavior of this option will vary with your window manager.
This option does nothing when window-decoration is none or when running
under macOS.
gtk-tabs-location
Not applied on Windows.
Determines the side of the screen that the GTK tab bar will stick to. Top, bottom, and hidden are supported. The default is top.
When hidden is set, a tab button displaying the number of tabs will appear
in the title bar. It has the ability to open a tab overview for displaying
tabs. Alternatively, you can use the toggle_tab_overview action in a
keybind if your window doesn't have a title bar, or you can switch tabs
with keybinds.
gtk-tabs-inverted
Not applied on Windows.
If true, the close button of each tab is shown at the start of the tab (the left, in left-to-right languages) and the tab's icon at the end. This applies to both the tab bar and the tab overview. GTK only.
gtk-titlebar-hide-when-maximized
Not applied on Windows.
If this is true, the titlebar will be hidden when the window is maximized,
and shown when the titlebar is unmaximized. GTK only.
gtk-toolbar-style
Not applied on Windows.
Determines the appearance of the top and bottom bars tab bar.
Valid values are:
flat- Top and bottom bars are flat with the terminal window.raised- Top and bottom bars cast a shadow on the terminal area.raised-border- Similar toraisedbut the shadow is replaced with a more subtle border.
adw-toolbar-style
Not applied on Windows.
An older name that Ghostty still reads; see gtk-toolbar-style.
gtk-titlebar-style
Not applied on Windows.
The style of the GTK titlebar. Available values are native and tabs.
The native titlebar style is a traditional titlebar with a title, a few
buttons and window controls. A separate tab bar will show up below the
titlebar if you have multiple tabs open in the window.
The tabs titlebar merges the tab bar and the traditional titlebar.
This frees up vertical space on your screen if you use multiple tabs. One
limitation of the tabs titlebar is that you cannot drag the titlebar
by the titles any longer (as they are tab titles now). Other areas of the
tabs title bar can be used to drag the window around.
The default style is native.
gtk-wide-tabs
Not applied on Windows.
If true (default), then the Ghostty GTK tabs will be "wide." Wide tabs
are the new typical Gnome style where tabs fill their available space.
If you set this to false then tabs will only take up space they need,
which is the old style.
gtk-horizontal-tab-scroll
Not applied on Windows.
If true (default), then two-finger horizontal scrolling on a touchpad
will switch between tabs. Scrolling left goes to the next tab and
scrolling right goes to the previous tab. Set this to false to
disable this behavior.
gtk-custom-css
Not applied on Windows.
Custom CSS files to be loaded.
GTK CSS documentation can be found at the following links:
- https://docs.gtk.org/gtk4/css-overview.html - An overview of GTK CSS.
- https://docs.gtk.org/gtk4/css-properties.html - A comprehensive list of supported CSS properties.
Launch Ghostty with env GTK_DEBUG=interactive ghostty to tweak Ghostty's
CSS in real time using the GTK Inspector. Errors in your CSS files would
also be reported in the terminal you started Ghostty from. See
https://developer.gnome.org/documentation/tools/inspector.html for more
information about the GTK Inspector.
This configuration can be repeated multiple times to load multiple files. Prepend a ? character to the file path to suppress errors if the file does not exist. If you want to include a file that begins with a literal ? character, surround the file path in double quotes ("). The file size limit for a single stylesheet is 5MiB.
desktop-notifications
Not applied on Windows.
If true (default), applications running in the terminal can show desktop
notifications using certain escape sequences such as OSC 9 or OSC 777.
progress-style
Default: true
If true (default), applications running in the terminal can show
graphical progress bars using the ConEmu OSC 9;4 escape sequence.
If false, progress bar sequences are silently ignored.
bold-color
Not applied on Windows.
Modifies the color used for bold text in the terminal.
This can be set to a specific color, using the same format as
background or foreground (e.g. #RRGGBB but other formats
are also supported; see the aforementioned documentation). If a
specific color is set, this color will always be used for the default
bold text color. It will set the rest of the bold colors to bright.
This can also be set to bright, which uses the bright color palette
for bold text. For example, if the text is red, then the bold will
use the bright red color. The terminal palette is set with palette
but can also be overridden by the terminal application itself using
escape sequences such as OSC 4. (Since Ghostty 1.2.0, the previous
configuration bold-is-bright is deprecated and replaced by this
usage).
bold-is-bright
Not applied on Windows.
An older name that Ghostty still reads; see bold-color.
faint-opacity
Not applied on Windows.
The opacity level (opposite of transparency) of the faint text. A value of 1 is fully opaque and a value of 0 is fully transparent. A value less than 0 or greater than 1 will be clamped to the nearest valid value.
term
Default: empty
This will be used to set the TERM environment variable.
HACK: We set this with an xterm prefix because vim uses that to enable key
protocols (specifically this will enable modifyOtherKeys), among other
features. An option exists in vim to modify this: :set keyprotocol=ghostty:kitty, however a bug in the implementation prevents it
from working properly. https://github.com/vim/vim/pull/13211 fixes this.
enquiry-response
Not applied on Windows.
String to send when we receive ENQ (0x05) from the command that we are
running. Defaults to an empty string if not set.
async-backend
Not applied on Windows.
Configures the low-level API to use for async IO, eventing, etc.
Most users should leave this set to auto. This will automatically detect
scenarios where APIs may not be available (for example io_uring on
certain hardened kernels) and fall back to a different API. However, if
you want to force a specific backend for any reason, you can set this
here.
Based on various benchmarks, we haven't found a statistically significant difference between the backends with regards to memory, CPU, or latency. The choice of backend is more about compatibility and features.
Available options:
auto- Automatically choose the best backend for the platform based on available options.epoll- Use theepollAPIio_uring- Use theio_uringAPI
If the selected backend is not available on the platform, Ghostty will fall back to an automatically chosen backend that is available.
Changing this value requires a full application restart to take effect.
This is only supported on Linux, since this is the only platform
where we have multiple options. On macOS, we always use kqueue.
auto-update
Not applied on Windows.
Control the auto-update functionality of Ghostty. This is only supported on macOS currently, since Linux builds are distributed via package managers that are not centrally controlled by Ghostty.
Checking or downloading an update does not send any information to the project beyond standard network information mandated by the underlying protocols. To put it another way: Ghostty doesn't explicitly add any tracking to the update process. The update process works by downloading information about the latest version and comparing it client-side to the current version.
Valid values are:
off- Disable auto-updates.check- Check for updates and notify the user if an update is available, but do not automatically download or install the update.download- Check for updates, automatically download the update, notify the user, but do not automatically install the update.
If unset, we defer to Sparkle's default behavior, which respects the
preference stored in the standard user defaults (defaults(1)).
Changing this value at runtime works after a small delay.
auto-update-channel
Not applied on Windows.
The release channel to use for auto-updates.
The default value of this matches the release channel of the currently
running Ghostty version. If you download a pre-release version of Ghostty
then this will be set to tip and you will receive pre-release updates.
If you download a stable version of Ghostty then this will be set to
stable and you will receive stable updates.
Valid values are:
stable- Stable, tagged releases such as "1.0.0".tip- Pre-release versions generated from each commit to the main branch. This is the version that was in use during private beta testing by thousands of people. It is generally stable but will likely have more bugs than the stable channel.
Changing this configuration requires a full restart of Ghostty to take effect.
This only works on macOS since only macOS has an auto-update feature.
Voyager7 keys
v7-tab-animations
Default: true
Animate tab opening, scrolling and reordering. Values: true, false. Default: true. Windows reduced motion also disables them.
v7-bidi
Default: implicit
Reorder right-to-left text (such as Arabic and Hebrew) automatically. Values: implicit, off. Default: implicit. Use off for raw logical order.
v7-bidi-base
Default: auto
Set the base reading direction for bidirectional text. Values: auto, ltr, rtl. Default: auto. auto detects direction per paragraph (a row and its soft-wrapped continuations); used when v7-bidi is implicit.
v7-conpty
Default: auto
Choose the backend that runs console programs. Values: auto, bundled, system, scraper. Default: auto. auto and bundled try bundled ConPTY on Windows 10+ before Windows ConPTY, system uses Windows ConPTY only, and scraper forces the Windows 7 Scraper. Windows 7 always uses the Scraper; restart to apply.
v7-legacy-default-colors
Default: true
Fix default text and background colors for older PowerShell (PSReadLine) prompts on bundled ConPTY. Values: true, false. Default: true. Turn off to leave program color output untouched.
v7-win7-vt
Default: true
Interpret ANSI/VT color and formatting codes from console programs on Windows 7. Values: true, false. Default: true. Set to false to read only the plain console buffer (for troubleshooting). Applies to new tabs; ignored on Windows 10+.
v7-nostalgia
Default: false
Draw terminal text with a crisp bitmap font, like the classic Windows console. Values: true, false. Default: false. Scales in whole pixels from font-size and display DPI; missing characters fall back to normal fonts. Pick the font with v7-nostalgia-font.
v7-nostalgia-font
Default: anakron
Choose the bitmap font for v7-nostalgia. Values: anakron, terminal. Default: anakron. anakron is the bundled ANAKRON 8x12 font; terminal is the classic Windows Terminal raster font. If one is unavailable, Voyager7 falls back to the other.
v7-taskbar-progress
Default: true
Show program progress on the Windows taskbar button. Values: true, false. Default: true. Follows the active tab, or the most urgent background tab (error, running, then paused). Disabled when progress-style is false.
v7-title-progress
Default: true
Show progress bars when a program puts a percentage in the window title, such as [35%] or {35%}. Values: true, false. Default: true. The percentage must be from 0 to 100 at the start or end of the title, separated by a space. Disabled when progress-style is false.
v7-taskbar-tabs
Default: true
Show a separate Windows taskbar thumbnail for each tab when a window has two or more tabs. Values: true, false. Default: true. Click a thumbnail to switch tabs, hover to preview, or close it from the thumbnail. Requires Windows desktop composition (Aero on Windows 7).
v7-clipboard-paste-trim
Default: true
Paste one line without the line break copied after it, so a copied command does not run at once. Values: true, false. Default: true. Applies only when the clipboard holds a single line followed by a line break; multi-line text is pasted unchanged.
v7-profiles
Default: false
Enable shell profiles in the tab bar dropdown, menus and Command Palette. Values: true, false. Default: true on Windows, false elsewhere. When false, every new terminal runs your configured command or default shell.
v7-profile-detect
Default: true
Automatically add installed shells to your profiles list. Values: true, false. Default: true. Detects PowerShell, Git Bash, Nushell, MSYS2, Cygwin and WSL without running them. When false, only Command Prompt and your profile files appear. A detected PowerShell older than 7 uses the Campbell Powershell theme, and a WSL distribution its Windows Terminal colour scheme (the Ubuntu theme for an Ubuntu without one), unless it is the default profile or you set theme or a colour in your configuration or its profile file.
v7-profile-fragments
Default: true
Add the profiles, icons and colour schemes that other apps give Windows Terminal in JSON fragments, such as Ubuntu's, on Windows 10 and later. Values: true, false. Default: true.
v7-default-profile
Default: empty
Choose which profile opens for new tabs, windows and splits. Value: a profile name (case-insensitive). Default: unset (uses your configured command, or Command Prompt).
v7-profile-order
Default: empty
Set the order of profiles in menus and Ctrl+Shift+1 to 9 shortcuts. Value: profile name (repeatable; empty clears the list). Default: unset. Named profiles appear first; all others follow.
v7-profile-name
Set a profile's display name in menus and tabs (profile files only). Value: any name. Default: the file name.
v7-profile-icon
Set a profile's icon (profile files only). Value: path to an .ico or .png, or an .exe/.dll with optional ,INDEX. Default: the shell or program icon.
v7-profile-tab-color
Set a profile's tab color (profile files only). Value: #RRGGBB or an X11 color name. Default: unset.
v7-profile-elevate
Run a profile as Administrator (profile files only). Values: true, false. Default: false. Prompts for UAC and opens in an Administrator window (or in place if already Administrator).
v7-profile-hidden
Hide a profile from menus and Ctrl+Shift+1 to 9 shortcuts (profile files only). Values: true, false. Default: false. Use this to hide an auto-detected shell.
v7-profile-path-style
Set how files dropped on a profile's terminals are pasted (profile files only). Values: auto, windows, cmd, powershell, nushell, wsl, cygwin, msys2, mingw. Default: auto (from the profile's command: cmd, PowerShell, Nushell, WSL /mnt/c, Cygwin /cygdrive/c, MSYS2 and Git Bash /c, else quoted Windows paths).
v7-default-terminal-exclude
Default: empty
Programs that keep their own console window when Voyager7 is the default terminal through its hook (Windows 7, 8.1 and older Windows 10). Value: program file names, separated by commas, such as far.exe, game.exe. Default: empty. Read when the hook starts: at logon, or when you choose Voyager7 (hook) in Settings.
v7-window-save-scrollback
Default: true
Keep each terminal's recent output in saved window state, and show it again when the window comes back. Values: true, false. Default: true. Saved only when window-save-state saves; at most 512 KiB per terminal and 16 MiB in all, in %LOCALAPPDATA%\Voyager7\session, read once and then deleted.
Keybind action reference
Every action a keybind accepts, in the order and with the text of voyager7 +list-actions --docs. Bind one as keybind = TRIGGER=ACTION, or ACTION:PARAMETER where the action takes one; see Configuration and CLI and the keybind key. Ghostty's actions keep Ghostty's order; Voyager7's own v7_ actions follow.
Actions
ignore
Ignore this key combination.
Ghostty will not process this combination nor forward it to the child process within the terminal, but it may still be processed by the OS or other applications.
unbind
Unbind a previously bound key binding.
This cannot unbind bindings that were not bound by Ghostty or the user (e.g. bindings set by the OS or some other application).
csi
Send a CSI sequence.
The value should be the CSI sequence without the CSI header (ESC [ or
\x1b[).
For example, csi:0m can be sent to reset all styles of the current text.
esc
Send an ESC sequence.
text
Send the specified text.
Uses Zig string literal syntax. This is currently not validated. If the text is invalid (i.e. contains an invalid escape sequence), the error will currently only show up in logs.
reset
Reset the terminal.
This can fix a lot of issues when a running program puts the terminal
into a broken state, equivalent to running the reset command.
If you do this while in a TUI program such as vim, this may break the program. If you do this while in a shell, you may have to press enter after to get a new prompt.
copy_to_clipboard
Copy the selected text to the clipboard.
Valid values:
-
plainCopy the selection as plain text only.
-
vtCopy the selection as plain text, preserving terminal escape sequences (such as colors and styles).
-
htmlCopy the selection as HTML, preserving colors and styles as HTML markup.
-
mixed(default)Place multiple representations on the clipboard at once (e.g. plain text and HTML), each tagged with its content type so the receiving OS or application can pick the most appropriate representation when pasting.
paste_from_clipboard
Paste the contents of the default clipboard.
copy_url_to_clipboard
If there is a URL under the cursor, copy it to the default clipboard.
copy_title_to_clipboard
Copy the terminal title to the clipboard. If the terminal title is not set or is empty this has no effect.
increase_font_size
Increase the font size by the specified amount in points (pt).
For example, increase_font_size:1.5 will increase the font size
by 1.5 points.
decrease_font_size
Decrease the font size by the specified amount in points (pt).
For example, decrease_font_size:1.5 will decrease the font size
by 1.5 points.
reset_font_size
Reset the font size to the original configured size.
set_font_size
Set the font size to the specified size in points (pt).
For example, set_font_size:14.5 will set the font size
to 14.5 points.
search
Start a search for the given text. If the text is empty, then the search is canceled. A canceled search will not disable any GUI elements showing search. For that, the explicit end_search binding should be used.
If a previous search is active, it is replaced.
search_selection
Start a search for the current text selection. If there is no selection, this does nothing. If a search is already active, this changes the search terms.
navigate_search
Navigate the search results. If there is no active search, this is not performed.
Valid values: previous, next.
start_search
Start a search if it isn't started already. This doesn't set any search terms, but opens the UI for searching.
end_search
End the current search if any and hide any GUI elements.
clear_screen
Clear the screen and all scrollback.
select_all
Select all text on the screen.
scroll_to_top
Scroll to the top of the screen.
scroll_to_bottom
Scroll to the bottom of the screen.
scroll_to_selection
Scroll to the selected text.
scroll_to_row
Scroll to the given absolute row in the screen with 0 being the first row.
scroll_page_up
Scroll the screen up by one page.
scroll_page_down
Scroll the screen down by one page.
scroll_page_fractional
Scroll the screen by the specified fraction of a page.
Positive values scroll downwards, and negative values scroll upwards.
For example, scroll_page_fractional:0.5 would scroll the screen
downwards by half a page, while scroll_page_fractional:-1.5 would
scroll it upwards by one and a half pages.
scroll_page_lines
Scroll the screen by the specified amount of lines.
Positive values scroll downwards, and negative values scroll upwards.
For example, scroll_page_lines:3 would scroll the screen downwards
by 3 lines, while scroll_page_lines:-10 would scroll it upwards by 10
lines.
adjust_selection
Adjust the current selection in the given direction or position, relative to the cursor.
WARNING: This does not create a new selection, and does nothing when there currently isn't one.
Valid arguments are:
-
left,rightAdjust the selection one cell to the left or right respectively.
-
up,downAdjust the selection one line upwards or downwards respectively.
-
page_up,page_downAdjust the selection one page upwards or downwards respectively.
-
home,endAdjust the selection to the top-left or the bottom-right corner of the screen respectively.
-
beginning_of_line,end_of_lineAdjust the selection to the beginning or the end of the line respectively.
jump_to_prompt
Jump the viewport forward or back by the given number of prompts.
Requires shell integration.
Positive values scroll downwards, and negative values scroll upwards.
write_scrollback_file
Write the entire scrollback into a temporary file with the specified action. The action determines what to do with the filepath.
Valid actions are:
-
copyCopy the file path into the clipboard.
-
pastePaste the file path into the terminal.
-
openOpen the file in the default OS editor for text files.
The default OS editor is determined by using
openon macOS andxdg-openon Linux.
write_screen_file
Write the contents of the screen into a temporary file with the specified action.
See write_scrollback_file for possible actions.
write_selection_file
Write the currently selected text into a temporary file with the specified action.
See write_scrollback_file for possible actions.
Does nothing when no text is selected.
new_window
Open a new window.
If the application isn't currently focused, this will bring it to the front.
new_tab
Open a new tab.
previous_tab
Go to the previous tab.
next_tab
Go to the next tab.
last_tab
Go to the last tab.
goto_tab
Go to the tab with the specific index, starting from 1.
If the tab number is higher than the number of tabs, this will go to the last tab.
move_tab
Moves a tab by a relative offset.
Positive values move the tab forwards, and negative values move it backwards. If the new position is out of bounds, it is wrapped around cyclically within the tab list.
For example, move_tab:1 moves the tab one position forwards, and if
it was already the last tab in the list, it wraps around and becomes
the first tab in the list. Likewise, move_tab:-1 moves the tab one
position backwards, and if it was the first tab, then it will become
the last tab.
move_tab_to_new_window
Move a tab to a new window.
prompt_surface_title
Change the title of the current focused surface via a pop-up prompt.
prompt_tab_title
Change the title of the current tab via a pop-up prompt. The title set via this prompt overrides any title set by the terminal and persists across focus changes within the tab.
prompt_window_title
Change the title of the current window via a pop-up prompt. The title set via this prompt overrides any title set by the terminal and persists across focus changes within the tab.
Only implemented on Linux.
set_surface_title
Set the title for the current focused surface.
If the title is empty, the surface title is reset to an empty title.
set_tab_title
Set the title for the current focused tab.
If the title is empty, the tab title override is cleared.
set_window_title
Set the title for the current focused window.
If the title is empty, the tab title override is cleared.
Only implement on Linux.
new_split
Create a new split in the specified direction.
Valid arguments:
-
right,down,left,upCreates a new split in the corresponding direction.
-
autoCreates a new split along the larger direction. For example, if the parent split is currently wider than it is tall, then a left-right split would be created, and vice versa.
goto_split
Focus on a split either in the specified direction (right, down,
left and up), or in the adjacent split in the order of creation
(previous and next).
goto_window
Focus on either the previous window or the next one ('previous', 'next')
toggle_split_zoom
Zoom in or out of the current split.
When a split is zoomed into, it will take up the entire space in the current tab, hiding other splits. The tab or tab bar would also reflect this by displaying an icon indicating the zoomed state.
resize_split
Resize the current split in the specified direction and amount in
pixels. The two arguments should be joined with a comma (,),
like in resize_split:up,10.
equalize_splits
Equalize the size of all splits in the current window.
inspector
Control the visibility of the terminal inspector.
Valid arguments: toggle, show, hide.
open_config
Open the configuration file in an editor.
os_open: Use the OS's default editor to edit the configuration file. This is the default action. (Available since 1.4.0)new_window: Launch the editor specified in$EDITORor$VISUALin a new Ghostty window to edit the configuration file. GTK only. (Available since 1.4.0.)
reload_config
Reload the configuration.
The exact meaning depends on the app runtime in use, but this usually involves re-reading the configuration file and applying any changes Note that not all changes can be applied at runtime.
close_surface
Close the current "surface", whether that is a window, tab, split, etc.
This might trigger a close confirmation popup, depending on the value
of the confirm-close-surface configuration setting.
close_tab
Close the specified tabs and all splits therein.
Valid values:
-
this(default)Close the current tab and all splits within it.
-
otherClose every tab in the current window except the current tab.
-
rightClose every tab to the right of the current tab.
This might trigger a close confirmation popup, depending on the value
of the confirm-close-surface configuration setting.
close_window
Close the current window and all tabs and splits therein.
This might trigger a close confirmation popup, depending on the value
of the confirm-close-surface configuration setting.
close_all_windows
Close all windows.
WARNING: This action has been deprecated and has no effect on either
Linux or macOS. Users are instead encouraged to use all:close_window
instead.
toggle_maximize
Maximize or unmaximize the current window.
On macOS, this zooms the window, which is the closest equivalent since macOS has no concept of a maximized window.
toggle_fullscreen
Fullscreen or unfullscreen the current window.
toggle_window_float_on_top
Toggle whether the terminal window should always float on top of other windows even when unfocused.
Terminal windows always start as normal (not float-on-top) windows.
Only implemented on macOS.
toggle_mouse_reporting
Toggle mouse reporting on or off.
When mouse reporting is disabled, mouse events will not be reported to terminal applications even if they request it. This allows you to always use the mouse for selection and other terminal UI interactions without applications capturing mouse input.
This can also be controlled via the mouse-reporting configuration
option.
toggle_command_palette
Toggle the command palette.
The command palette is a popup that lets you see what actions you can perform, their associated keybindings (if any), a search bar to filter the actions, and the ability to then execute the action.
This requires libadwaita 1.5 or newer on Linux. The current libadwaita
version can be found by running ghostty +version.
toggle_quick_terminal
Toggle the quick terminal.
The quick terminal, also known as the "Quake-style" or drop-down terminal, is a terminal window that appears on demand from a keybinding, often sliding in from a screen edge such as the top. This is useful for quick access to a terminal without having to open a new window or tab.
The terminal state is preserved between appearances, so showing the quick terminal after it was already hidden would display the same window instead of creating a new one.
As quick terminals are often useful when other windows are currently
focused, they are best used with global keybinds. For example, one
can define the following key bind to toggle the quick terminal from
anywhere within the system by pressing Cmd+`:
keybind = global:cmd+backquote=toggle_quick_terminal
The quick terminal has some limitations:
-
Only one quick terminal instance can exist at a time.
-
Unlike normal terminal windows, the quick terminal will not be restored when the application is restarted on systems that support window restoration like macOS.
-
On Linux, the quick terminal is only supported on Wayland and not X11, and only on Wayland compositors that support the
wlr-layer-shell-v1protocol. In practice, this means that only GNOME users would not be able to use this feature. -
On Linux, slide-in animations are only supported on KDE, and when the "Sliding Popups" KWin plugin is enabled.
If you do not have this plugin enabled, open System Settings > Apps & Windows > Window Management > Desktop Effects, and enable the plugin in the plugin list. Ghostty would then need to be restarted fully for this to take effect.
-
Quick terminal tabs are only supported on Linux and not on macOS. This is because tabs on macOS require a title bar.
-
On macOS, a fullscreened quick terminal will always be in non-native fullscreen mode. This is a requirement due to how the quick terminal is rendered.
See the various configurations for the quick terminal in the configuration file to customize its behavior.
undo
Undo the last undoable action for the focused surface or terminal, if possible. This can undo actions such as closing tabs or windows.
Not every action in Ghostty can be undone or redone. The list of actions support undo/redo is currently limited to:
- New window, close window
- New tab, close tab
- New split, close split
All actions are only undoable/redoable for a limited time.
For example, restoring a closed split can only be done for
some number of seconds since the split was closed. The exact
amount is configured with the undo-timeout configuration settings.
The undo/redo actions being limited ensures that there is bounded memory usage over time, closed surfaces don't continue running in the background indefinitely, and the keybinds become available for terminal applications to use.
Only implemented on macOS.
quit
Quit Ghostty.
v7_app_menu
Open the ☰ menu at the left of the tab bar, as clicking it does. Shift+F10 by default.
v7_focus_app_menu
Give the ☰ menu button the keyboard focus, as a menu bar takes it. Alt alone does this; F10 stays a terminal key unless bound.
v7_about
Open the About Voyager7 window.
v7_open_settings
Open the Settings window. Ctrl+, by default.
v7_toggle_mark_mode
Select text with the keyboard (Windows Terminal's mark mode), starting at the cursor or with the current selection. Arrows, Home, End, PgUp and PgDn move the mark; with Shift they extend the selection, with Ctrl+Left/Right by word, with Alt+Shift as a block. Enter copies, Esc cancels. Ctrl+Shift+M by default.
v7_new_tab_profile
Open a new tab with the Nth visible profile, counting from 1 in menu order: v7_new_tab_profile:2. Ctrl+Shift+1 to 9 by default.
v7_new_split_profile
Split the focused pane with the Nth visible profile, in Ghostty's auto direction: v7_new_split_profile:1.
v7_new_window_profile
Open a new window with the Nth visible profile: v7_new_window_profile:1.
v7_open_profile_menu
Open the new tab profile menu (the ▾ button beside +). Ctrl+Shift+Space by default.
v7_copy_version_info
Copy the report of voyager7 +version --full to the clipboard, for a bug report. Unbound by default; it is in the command palette.
Not implemented yet
Ghostty keybind actions that Voyager7 does not implement yet; a binding to one is reported as unsupported. The plan is in Ghostty compatibility.
cursor_keypaste_from_selectiontoggle_tab_overviewtoggle_readonlyreset_window_sizeshow_gtk_inspectorshow_on_screen_keyboardtoggle_window_decorationstoggle_secure_inputtoggle_visibilitytoggle_background_opacitycheck_for_updatesredoend_key_sequenceactivate_key_tableactivate_key_table_oncedeactivate_key_tabledeactivate_all_key_tablescrash
Tab and window titles
A tab shows the title its program sets (OSC 0/2, cmd's title), and the window
caption and taskbar button show the active tab's. You can rename them by hand,
with Ghostty's title actions:
- Change Tab Title… (
prompt_tab_title): in the ☰ menu, the Command Palette, and first in a tab's right-click menu as Change Title…. - Change Window Title… (
prompt_window_title): in the ☰ menu and the palette. It changes only the caption and the taskbar button. - Change Terminal Title… (
prompt_surface_title): in the palette.
The palette (Ctrl+Shift+P) matches a search by its whole phrase first, then by its words in any order, so "change title" lists all three.
Each one opens a small dialog with the current title selected. Enter or OK
applies the title, and Esc or Cancel leaves it unchanged. Leave it blank to
restore the default title. As in Ghostty, a title you set this way stays when
the program sets new titles, until you clear it. Underneath, the program's own
title keeps updating, so v7-title-progress still reads [N%] from it. A tab
title wins over a terminal title. Change Terminal Title… renames the focused
split (see Splits); the ☰ menu's Split submenu has it as Change
Title….
Key bindings use Ghostty's syntax. None is bound by default:
keybind = ctrl+shift+e=prompt_tab_title
keybind = ctrl+alt+1=set_tab_title:Build: release
keybind = ctrl+alt+0=set_tab_title:
keybind = ctrl+alt+2=set_window_title:Logs
keybind = ctrl+alt+3=set_surface_title:scratch
The text after the colon is taken as written, and empty clears the title.
set_surface_title: works differently: it sets the title as if the program had
set it, so the program's next title replaces it. copy_title_to_clipboard
copies the terminal title you set, else the program's.
Shell profiles
On Windows, Voyager7 lists the shells you have installed, as Windows Terminal
and VS Code do (ADR 0013). The ▾ beside +
lists them; Settings, the Command Palette and About stay in the ☰ menu. Click a
profile for a new tab, Shift+click for a new window, Alt+click for a split
(Shift+Enter and Alt+Enter from the keyboard). Ctrl+Shift+1
to 9 open the first nine, and Ctrl+Shift+Space opens the ▾ list. The palette's New Tab… and Split… list them
too, and so do the Tab and Split submenus of the terminal's right-click menu.
Each tab shows its profile's icon. A profile with v7-profile-tab-color fills
its whole tab, as Windows Terminal does: the active tab in the colour, other
tabs in a darker, muted shade (lighter while hovered), with black or white
text, whichever contrasts more.
Voyager7 finds Command Prompt, Windows PowerShell, PowerShell 7 (MSI, Store,
scoop and dotnet installs), Git Bash, Nushell, MSYS2, Cygwin and your WSL
distributions. It reads only files and the registry and starts nothing. +,
Ctrl+Shift+T and new windows use the default profile, which is Command Prompt
unless you set Ghostty's command or v7-default-profile.
Your own profiles are Ghostty configuration files in a profiles folder
beside the configuration (%APPDATA%\Voyager7\profiles\Work.ghostty). Voyager7
loads a profile's file after the main configuration, for that profile's tabs:
# profiles\Work.ghostty
command = pwsh.exe -NoLogo
working-directory = D:\work
title = Build
v7-profile-icon = C:\Program Files\PowerShell\7\pwsh.exe
v7-profile-tab-color = #2d6cdf
v7-profile-elevate = true
A profile file can set command, working-directory, title,
shell-integration, theme and the colour keys (background, foreground,
palette, cursor-*, selection-*, search-*), plus Voyager7's v7-profile-name, v7-profile-icon,
v7-profile-tab-color, v7-profile-elevate (run as Administrator, in an
Administrator window) and v7-profile-hidden. A file named like an installed
shell overrides it, for example Git Bash.ghostty with v7-profile-hidden = true. Without command, a profile runs the main configuration's. A
profile's theme and colours apply to its own tabs and splits, over the main
configuration's colours; other tabs keep theirs. Font and other appearance
keys stay application-wide for now and are reported in a profile file.
Like Windows Terminal, a detected PowerShell older than 7 (Windows
PowerShell of any version, such as 2.0 on Windows 7 or 5.1, and PowerShell
Core 6) uses the Campbell Powershell theme, unless it is the default profile.
The version comes from its install folder or its file version; nothing is
started. This applies only while neither your configuration nor that
profile's file sets theme or a colour key. Every other profile (Command
Prompt, PowerShell 7 and later, Git Bash, …) uses Ghostty's colours, so
on Windows 7 a cmd tab is in Ghostty's colours and a Windows PowerShell tab
in Campbell Powershell.
Apps also give Windows Terminal profiles, icons and colour schemes in JSON
fragments; Ubuntu's Store package, for one, gives its distribution Ubuntu's
purple scheme. On Windows 10 and later Voyager7 reads them too, read only:
the Fragments folders under %LOCALAPPDATA% and %ProgramData%\Microsoft\Windows Terminal, and the fragments of each WSL distribution's package. A fragment's
scheme becomes the default theme of the profile it names, by the same rules
as Campbell Powershell above; a fragment's new profiles join the list
(merged with detected ones by name, without duplicates) and its hidden
is respected. An Ubuntu distribution without a fragment uses the built-in
Ubuntu theme. Settings tags each profile with its default theme and where
it comes from ("Ubuntu · WSL"); v7-profile-fragments = false turns fragments off. See
ADR 0019.
In the main file, v7-default-profile, v7-profile-order (repeatable) and
v7-profile-detect shape the list, and v7-profiles = false turns profiles
off, which is the default on Linux and macOS. Settings (Ctrl+,) has a
Profiles category that edits all of this and writes the files for you.
voyager7 +validate-config checks every profile file; --v7-profile=NAME
starts Voyager7, +new-tab or +new-window with a profile.
Right-click Voyager7's taskbar button (or its Start menu entry) for a jump list of your visible profiles, with their icons, and New window. Each opens a new window with that profile in the running Voyager7 (or starts one), as a taskbar launch does. The list is written when Voyager7 starts and again when a reload or the Settings profile editor changes it; the uninstaller removes it. It works on Windows 7 to 11, unless Windows' "Show recently opened items in Jump Lists" is off.
Dropping files and text
Drop files or folders from Explorer onto a terminal and Voyager7 pastes their paths, separated by spaces, written for the shell of the split under the pointer (which takes focus, as a click would). Drop text and it pastes the text. Either way it is a paste: Ghostty's paste protection asks before multi-line text runs in a shell without bracketed paste, and bracketed paste applies when the program asked for it. Explorer's drag shows "Paste path", and a drop is always a copy, so nothing is moved or deleted.
| Shell (from the profile's command) | C:\Users\me\a b.txt becomes |
|---|---|
| Command Prompt | "C:\Users\me\a b.txt"; a % is pasted as "^%" so %NAME% never expands |
| PowerShell (Windows PowerShell, 7+) | 'C:\Users\me\a b.txt', every kind of single quote doubled |
| Nushell | 'C:\Users\me\a b.txt' (backticks or an escaped "…" when the name has ') |
WSL (wsl.exe, Windows' bash.exe) | '/mnt/c/Users/me/a b.txt'; \\wsl$\Ubuntu\home\me is /home/me |
| Cygwin | '/cygdrive/c/Users/me/a b.txt' |
| MSYS2, Git Bash | '/c/Users/me/a b.txt' |
| anything else | "C:\Users\me\a b.txt" |
Paths without spaces or special characters are pasted unquoted. A profile can
choose the style with v7-profile-path-style = auto | windows | cmd | powershell | nushell | wsl | cygwin | msys2 | mingw (mingw is C:/…),
for example an ssh profile with wsl. A shell you start inside another
one (WSL from cmd) gets the profile's style. With delayed expansion turned
on (cmd /v:on), ! in a name can still expand in cmd.
An elevated (Administrator) Voyager7 cannot receive drops from programs that
are not elevated: Windows' User Interface Privilege Isolation blocks them. Like
other Win32 programs, it still accepts files dropped from Explorer there (the
older WM_DROPFILES), with the same quoting; text cannot be dropped on it.
Splits
A tab can hold several terminals side by side or stacked, as in Ghostty. Each split is its own terminal with its own shell: on Windows 10 its own ConPTY, on Windows 7 its own Hook and Scraper agent. The actions, keys, settings and their defaults are Ghostty's:
| Action | Default key (Ghostty on Linux) |
|---|---|
new_split:right, new_split:down | Ctrl+Shift+O, Ctrl+Shift+E |
new_split:left, new_split:up, new_split (auto) | none |
goto_split:previous, goto_split:next | Ctrl+Super+[, Ctrl+Super+] |
goto_split:left, :right, :up, :down | Ctrl+Alt+arrows |
resize_split:left,10 and the other directions | Ctrl+Super+Shift+arrows, and Alt+Shift+arrows (Windows) |
toggle_split_zoom | Ctrl+Shift+Enter |
equalize_splits, close_surface | none |
Windows 10 and later keep Win+Ctrl+arrows for virtual desktops, so Voyager7
also binds Windows Terminal's Alt+Shift+arrows to resize_split. Like
Ghostty's, they are performable:: without splits the keys reach the program.
The ☰ menu has Ghostty's Split submenu (Change Title…, Split Up, Split
Down, Split Left, Split Right) and the Command Palette lists Ghostty's split
commands. The terminal's right-click menu is Ghostty's: Copy, Paste, Notify on Next Command
Finish; Clear,
Reset; Split (as above, plus Close Split), Tab (Change Tab Title…, New
Tab, Close Tab), Window (Change Window Title…, New Window, Close Window);
Config (Open Configuration, Settings…, Reload Configuration); then
Voyager7's Command Palette and Application Menu…. A new split is half of the focused one, starts in its working
directory (split-inherit-working-directory) at its font size, and takes the
focus. new_split:auto splits along the longer side.
- Focus. Keys go to the focused split. Clicking a split focuses it;
focus-follows-mouse = truefocuses the split under the pointer. The mouse wheel scrolls the split under the pointer.goto_splitwraps around at the edges; its default keys areperformable:as in Ghostty, so with nowhere to go they reach the program instead.adjust_selection,copy_url_to_clipboardand search act on the focused split: each split keeps its own search, and the window's find bar shows the focused one's. - Look. Unfocused splits are dimmed with
unfocused-split-fill(default: the background) atunfocused-split-opacity(default 0.7) and draw a hollow cursor. Dividers are one pixel ofsplit-divider-color(default: a fifth of the way from the background to the foreground, so a clear grey line on dark and light themes alike); drag one to resize, a few pixels either side of the line work. - Resize overlay. When a split or the window changes size, each resized
split shows its grid size ("80 x 24") for
resize-overlay-duration(default 750ms), as in Ghostty.resize-overlay = after-first(default) skips a split's first size,alwaysshows it too,neverturns it off;resize-overlay-positioniscenter(default),top-left,top-center,top-right,bottom-left,bottom-centerorbottom-right. While the window edge is dragged the grid follows on release, and so does the label. - Zoom.
toggle_split_zoomshows the focused split alone and marks the tab "🔍". Moving to another split ends the zoom, unlesssplit-preserve-zoom = navigation. - Closing.
close_surfaceor the program exiting closes a split, and focus moves to the previous one. Closing the last split closes the tab;close_tab(Ctrl+Shift+W) closes the tab with all its splits. - Titles, progress, thumbnails. The tab shows the focused split's title. A tab's progress mark and taskbar progress combine its splits. The tab's taskbar thumbnail shows all its splits.
Quick terminal
Ghostty's quick terminal: a drop-down terminal that slides in from an edge of
the screen, over other windows, when you press its key in any program, and
slides away when you press it again
(ADR 0021). It has no key by default, as in
Ghostty; bind one with the global: prefix:
keybind = global:ctrl+backquote=toggle_quick_terminal
- It is a full Voyager7 window without a title bar: tabs (the tab row follows
window-show-tab-bar), splits, search and menus all work. Hiding it keeps its tabs and programs running; closing its last tab closes it, and the next toggle opens a new one. Its programs seeGHOSTTY_QUICK_TERMINAL=1. - It never shows in the taskbar or Alt+Tab, and stays above other windows. It takes the keyboard when it shows and gives it back to the window you were in when it hides.
quick-terminal-position(top,bottom,left,right,center),quick-terminal-size(40%,500px, or two values such as50%,800px),quick-terminal-screen(mainis the primary monitor,mousethe one under the pointer) andquick-terminal-animation-duration(seconds,0for none) work as in Ghostty. With "Show animations in Windows" off it appears at once; Windows 7 without Aero slides it too.quick-terminal-autohide = truehides it when you switch to another program (Ghostty's default outside macOS isfalse).quick-terminal-keyboard-interactivity = nonekeeps it from ever taking the keyboard.quick-terminal-space-behaviorand thegtk-keys are accepted and have no effect on Windows.voyager7 +toggle-quick-terminal [--class=CLASS]toggles it from a shortcut, a script or another hotkey program, and starts Voyager7 if it is not running.- A
global:key another program (or another Voyager7 started with a different--class) already uses can't be registered: Voyager7 says so once in a toast and the binding still works inside Voyager7's windows.global:works for other actions too:new_window,quit,close_all_windowsandreload_configfrom anywhere; any other action in the Voyager7 window in front.
Keyboard selection, URLs and moving tabs
These Ghostty actions work as they do in Ghostty:
adjust_selection:DIRECTIONmoves the end of the current selection:left,right(to the next cell with text, skipping empty cells and wrapping lines; a space a program wrote counts as text),up,down,page_up,page_down,home,end(the start of the scrollback, the end of the last line with text),beginning_of_lineandend_of_line. The view scrolls to keep the end in sight. Without a selection it does nothing. Shift+Left/Right/Up/Down are bound to it with Ghostty'sperformable:flag: they extend a selection when there is one, and otherwise reach the program as usual. Shift+Home/End/PgUp/PgDn keep scrolling the view, as in Ghostty on Linux and Windows.- Block selection: drag with Alt (Windows Terminal, ConEmu) or Ctrl+Alt
(Ghostty on Linux) held to select a block of columns, such as one column
of
psorgit logoutput. Copying gives one line per row, with trailing spaces trimmed asclipboard-trim-trailing-spacessays; a wide character or emoji on the block's edge is copied whole. With mouse reporting on, hold Shift too. The block is of logical columns: on a row that bidi reorders (Arabic, Hebrew) the highlighted cells are where those columns are drawn, and the copy is exactly the highlighted cells, in logical order. - Mark mode (
v7_toggle_mark_mode, Ctrl+Shift+M, Toggle Mark Mode in the palette; Windows Terminal's key) selects from the keyboard. It starts with one cell at the cursor (or keeps the selection), drawn with a box. Arrows, Home/End and PgUp/PgDn move the mark; with Shift they extend the selection asadjust_selectiondoes, Ctrl+Left/Right go by word, Ctrl+Home/End to the screen's corners, and Alt with Shift extends a block. Enter copies and leaves mark mode, Esc cancels, and any key that reaches the program leaves it. Other key bindings keep working. copy_to_clipboardtakes Ghostty's formats.mixed(the default, on Ctrl+Shift+C, the menus and right-click) puts HTML (CF_HTML) and RTF beside the plain text, with the cell colours, bold, italic, underline and strikethrough in the terminal font, so a paste into Word, Outlook or WordPad keeps them; text in the terminal's default colours takes the document's own, as Ghostty does.plaincopies text only,vttext with its escape sequences, andhtmlthe HTML markup (as text and asCF_HTML, with the default colours). A selection over 1 MiB is copied as plain text only.copy_url_to_clipboard(Copy URL to Clipboard in the palette) copies the link the mouse is hovering with Ctrl held (see Links below), so as in Ghostty it works from a Ctrl binding, for examplekeybind = performable:ctrl+u=copy_url_to_clipboard.move_tab_to_new_window(Move Tab to New Window in the palette) moves the active tab into a new window. Its program keeps running and its screen, scrollback, title and font size come along; a tab with splits moves with all of them, its focus and its zoom. With one tab it does nothing, as in Ghostty.- Dragging a tab out of the tab bar does the same with the mouse, as in Windows Terminal and Ghostty's GTK tabs. Once the pointer is a little above or below the tab bar, or outside the window, the tab opens in a new window under the pointer, and that window follows the pointer until you let go. Over another Voyager7 window's tabs or title bar, that window's tab bar opens a gap where the tab would go (and appears if it was hidden, as Ghostty's GTK tab bars do); let go there and the tab joins that window. Press Esc while dragging and everything goes back where it was. Dragging a window's only tab moves the window, and drops it into another window the same way; so does dragging a one-tab window by its title bar onto another window's tabs or title bar (as Chrome's windows do). Anywhere else a title-bar drag stays a normal window move, with Aero Snap and drag to maximize. Dragging along the tab bar still reorders tabs; the "+" stays after the tabs meanwhile, as in Windows Terminal and Chrome, and slides when a tab leaves or a gap opens.
- Hold Ctrl while dragging a tab to copy it instead, as File Pilot's tabs
do. The original stays where it is, the pointer shows Windows' copy
cursor, and along the tab bar a copy of the tab with a "+" badge follows
the pointer to the gap it would take; out of the tab bar nothing tears off
while Ctrl is held. Pressing or releasing Ctrl switches between moving
and copying at any time. A running program can't be copied, so the copy
is a new tab, started as
new_tabstarts one: the configured command (not a program started inside the tab later, such asnutyped at acmdprompt), in the dragged tab's working directory whentab-inherit-working-directoryallows (dropped outside every window: a new window there, underwindow-inherit-working-directory).
Links
Links work as in Ghostty. Hold Ctrl over a URL (found as Ghostty's default
link pattern finds URLs with a scheme: https://, mailto:, file:,
ssh:// and the others, without a trailing . or ,) or an OSC 8 hyperlink:
it is underlined (doubly over text that is already underlined; an OSC 8 link
everywhere on the screen it appears) and the pointer becomes a hand.
Ctrl+click opens it with the program Windows has registered for it; the
click selects nothing. Without Ctrl, clicks select as usual, and a double
click on a URL selects the whole URL. While a program reads the mouse,
Ctrl+Shift does what Ctrl does (unless mouse-shift-capture gives Shift to
the program) and a plain Ctrl+click goes to the program. A link opens at once,
as in Ghostty on Linux: whatever its scheme, with the program Windows has
registered for it, and a file: link or a path in its application. Ghostty on
Linux opens files with xdg-open, which never runs a program and never
reaches another computer for a file: link; Windows' "open" would do both, so
to keep that meaning Voyager7 does not open a target Windows would run (a file
type such as .exe, .bat, .cmd, .ps1, .lnk or .msi, or a name
without a file type that is not a folder, which Windows would look up as a
program) or a file on another computer (file://server/…, \\server\…), and
offers to copy it instead. This is the Windows equivalent of xdg-open, not
an extra check. A macOS build would follow Ghostty's stricter macOS rules
(web and mail links open, other schemes ask first). link-url = false turns URL detection off and
link-osc8 = false OSC 8 hyperlinks. Not yet: Ghostty's file-path matches
(/tmp/x, src/main.rs), link rules of your own (Ghostty cannot set them
either) and link-previews (the URL shown in a corner while hovering).
None of the three is bound by default except the Shift+arrows. The
performable: prefix works on any binding: the key reaches the program
whenever the action has nothing to do, as in the copy_url_to_clipboard
example above. As in Ghostty, the
tab keys Ctrl+Shift+Left/Right, Ctrl+PgUp/PgDn, Ctrl+Shift+PgUp/PgDn and
Alt+1 to Alt+9 are performable by default, so they reach the program when
there is no other tab to go to. Ghostty also makes Ctrl+Shift+C and
Ctrl+Shift+V performable; Voyager7 does not, because without a selection
Ctrl+Shift+C would reach a Windows console program as Ctrl+C and stop it. The
global: prefix works too (see Quick terminal); all: and
unconsumed: are not supported yet. goto_tab:N past the last tab goes to the last tab, as in Ghostty.
Kitty graphics
Programs can show images with the
kitty graphics protocol, as in
Ghostty (ADR 0017): PNG, RGB and RGBA, zlib
compression, placement at a cell or relative to another image, scaling to cells,
cropping, z-order below the cell backgrounds, below the text or above it, Unicode
placeholders (U+10EEEE), deletes, and animation. Images scroll
with their text, stay with their screen (main or alternate) and are redrawn after a
resize. Ghostty's image-storage-limit (bytes per screen, default 320000000) caps the
memory; 0 turns the protocol off. Images can be sent inline, as a file, as a temporary
file (in %TMP%, named *tty-graphics-protocol*) or by shared memory, which on Windows
is a named file mapping (CreateFileMappingW), as in WezTerm.
Where images work:
| Backend | Images | Why |
|---|---|---|
| Windows 10+, bundled ConPTY (default) | yes | OpenConsole 1.25 passes APC through |
Windows 10+, v7-conpty = system | no | inbox conhost has no APC parser: it prints the data as text and answers no query |
Windows 7, x64 programs that write VT (checked: cmd's type and a native test tool) | yes | the hook streams their output to libghostty-vt |
Windows 7, programs the Scraper reads (32-bit, MSYS/Cygwin, v7-win7-vt = false) | no | only console cells reach Voyager7 |
A program detects support with a query (a=q): it gets an answer only where images
work. Try tests\visual\demo.bat kitty-graphics and kitty-animation, or Yazi's
preview on Windows 10.
Toasts, progress and notifications
Toasts and progress
As in Ghostty on Linux, copying shows a "Copied to clipboard" toast near the
bottom of the window for three seconds, with a × to dismiss it. It appears for
every copy to the system clipboard: the copy key binding, the context menu,
right-click copy, copy-on-select = clipboard or both, and programs that
write it with OSC 52 (Claude Code's auto-copy, for example). copy-on-select = true stands for Ghostty's selection clipboard and shows no toast. A successful
reload shows "Reloaded the configuration". app-notifications controls both,
with Ghostty's syntax (no-clipboard-copy, false, ...). The toast is drawn
like a Windows tooltip, in the system's own visual style and tooltip font, so it
matches each Windows version and theme, including Classic and High Contrast. It
never takes focus or keystrokes; hovering it pauses its timer. Each window
shows one toast at a time: a new message replaces it at once and the same
message restarts its timer, so a burst of copies leaves one toast that goes
away three seconds after the last copy. (Ghostty on Linux queues them
instead.) It fades in and
out unless Windows' animation or tooltip-fade settings are off.
Programs report progress with OSC 9;4 (ESC ] 9 ; 4 ; state ; percent ST, the
ConEmu and Windows Terminal protocol): 0 removes it, 1 sets a percentage, 2 is
an error, 3 is indeterminate and 4 is paused. A thin bar along the top of the
terminal shows it: the percentage fills the bar, no percentage bounces a
segment back and forth, error is red and paused is amber. A report the program
stops updating disappears after 15 seconds, as in Ghostty; a hard reset (RIS)
removes it. Background tabs show their progress as a line along the bottom of
the tab, and the taskbar button mirrors it (v7-taskbar-progress).
progress-style = false ignores all of it.
Command-finish notifications and the bell
As in Ghostty, Voyager7 can tell you when a long command finishes. Shells mark
each command with OSC 133 (C when it starts, D with its exit code when it
ends), and Voyager7 times them per split. The keys are Ghostty's, with its
defaults:
notify-on-command-finish = never|unfocused|always(defaultnever):unfocusedonly when that split doesn't have the keyboard focus.notify-on-command-finish-action = bell,no-notify(default): ring the bell, show a desktop notification, or both (notifyalone keeps the bell, as in Ghostty;no-bell,notifyfor the notification only).notify-on-command-finish-after = 5s(default): only commands that ran longer, in Ghostty's duration syntax (1m30s,250ms).- Notify on Next Command Finish in the terminal's right-click menu turns
it on for the next command in that split only, whatever
notify-on-command-finishsays; it shows a check mark while on. As in Ghostty it still uses the action and the 5 s minimum, so with the defaults it rings the bell (taskbar flash and 🔔 in the title) and shows no desktop notification; addnotifytonotify-on-command-finish-actionfor one. Ghostty has no key binding or palette entry for it, so neither has Voyager7.
The notification reads like Ghostty's: "Command Succeeded" or "Command Failed" and "Command took 1m 5s 230ms and exited with code 2." It is a notification area balloon on Windows 7 and a toast on Windows 10 and 11. As in Ghostty, each split keeps up to 64: a full split drops its first one, and the same text again replaces the earlier one. A split's notifications all go when you focus that split, when you click one of them (which shows that tab and split), and when the split or window closes; one sent to a focused split goes after three seconds. On Windows 10 and 11 each toast stays in the Action Center until then and is removed from it when its notification goes. Windows pops up one toast at a time for Voyager7's icon and drops one cut short by the next, so a notification that comes while another is on screen pops up when that one has gone (about six seconds); one withdrawn while it waits never shows. Windows 7 shows one balloon at a time and has no Action Center, so a new notification replaces the balloon on screen. The notification-area icon stays while any notification is outstanding; its tooltip and a click on it are the newest one's.
The bell rings for BEL (Ctrl+G; at most every 100 ms) and for finished
commands. bell-features has Ghostty's defaults, which make no sound:
attention flashes the taskbar button until the window is activated, and
title puts "🔔 " before the tab title until that split has the focus (on
Windows 7 only in the tab: the native title bar and taskbar can't draw emoji
there and would show a box). For a sound, add it to the defaults:
bell-features = systemplays Windows' "Default Beep" sound (Control Panel, Sound, Sounds).bell-features = audiowithbell-audio-path = C:\sounds\bell.wavplays a WAV, MP3 or WMA file atbell-audio-volume(0 to 1, default 0.5). As in Ghostty, a relative path is relative to the config file that sets it,~/is your profile folder, and a leading?makes a missing file no error.
border is accepted but does nothing yet.
What sends the marks:
| Shell | Windows 10 and 11 (ConPTY) | Windows 7 (hook) |
|---|---|---|
| cmd | Voyager7's shell integration: D in PROMPT, C when Enter submits the line. cmd can't report an exit code, so it says "Command Finished" and "Command took 3s." | Nothing (no shell integration on Windows 7) |
| Windows PowerShell, pwsh | Voyager7's shell integration, with the exit code (the native program's, else 1 for a failure). C needs PSReadLine. | Nothing |
| Nushell | Its own OSC 133 (shell_integration.osc133, on by default) | The same, through the hook |
| bash, zsh, fish (also over ssh) | Only if their prompt sends OSC 133 (Ghostty's shell integration isn't installed by Voyager7) | The same |
The bundled ConPTY forwards C and D but drops the prompt marks A and
B. Inbox ConPTY (v7-conpty = system) places all of them out of order, so
Voyager7 keeps only C and D there.
80- and 132-column mode
Applications can enable DECCOLM with DEC private mode 40. With ConPTY, the active tab fits the window to 80 or 132 columns while keeping the current row count. A hard reset forwarded by ConPTY returns from 132-column mode to 80. The Windows 10 inbox provider can consume the reset and omit screen alignment output. The bundled provider forwards both. The window fits as many whole cells as the monitor work area allows. Maximised, snapped and interactively resized windows keep their bounds. The terminal retains the requested width and the viewport can clip it.
A background tab updates its terminal grid without resizing the shared window. Switching tabs preserves the window size. A manual window resize fits all tab grids to the new dimensions.
On Windows 7, DECCOLM written as VT through the hook (for example type of a
file with ESC[?40h ESC[?3h) widens the window the same way. The console agent
resizes its hidden console to match before it applies later output, as a
window resize does, so mode con and programs that read the console size see
132 columns. RIS from 132 columns and ESC[?3l return it to 80. Programs that
draw through the console API, including Cygwin on Windows 7, which emulates
escape sequences itself and drops DECCOLM as plain conhost does, stay at 80
columns. With v7-win7-vt = false the sequence is shown as text.
Default terminal
On Windows 11 and Windows 10 22H2, Settings > Default terminal makes Voyager7 the terminal that console programs open in when started from Run, Explorer or the Start menu, like Windows Terminal's "Default terminal application". The choices are Let Windows decide, Windows Console Host, Voyager7 and, when installed, Windows Terminal. The setting is per user, is written only when you pick an entry, and uninstalling Voyager7 puts back what was there before. Each console opens in a new Voyager7 window. Windows hands the console to Microsoft's OpenConsole first, so Voyager7 needs the newer ConPTY component (installed by default) or Windows Terminal. "Let Windows decide" means the console window on Windows 10 and Windows Terminal on Windows 11. Unpackaged programs cannot appear in Windows Terminal's or Windows Settings' own lists. Because of that, Windows Terminal's Settings shows "Let Windows decide" while Voyager7 is the default and writes it back on any Save, which takes the default away from Voyager7. Voyager7's Settings always shows the real current default and says when another app changed it; pick Voyager7 again to get it back. See ADR 0014.
Windows 7, 8.1 and older Windows 10 builds have no such setting. There,
Settings > Default terminal offers Windows Console Host and Voyager7
(hook): Voyager7 then loads a small hook (v7-defterm.dll) into Explorer
at logon (a per-user Run entry, no administrator), and console programs that
Explorer starts (Run box, Start menu, double-click) open in a Voyager7 tab
instead of a console window. The program's exit code still reaches whoever
started it, and if Voyager7 cannot open, the program runs in a normal
console window. Some antivirus programs report or block loading a DLL into
Explorer; then consoles keep opening in console windows. Programs run as
administrator, and those started by other programs than Explorer, keep
their console window. v7-default-terminal-exclude = far.exe, game.exe
names programs that always keep theirs. Choosing Windows Console Host (or
uninstalling) removes the Run entry and unloads the hook. The DLL comes with
the Setup and the ZIP; standalone-min needs it beside voyager7.exe. See
ADR 0015.
Ghostty compatibility on Windows
Voyager7's configuration and CLI are a one-way superset of pinned Ghostty (c7f68a7, ADR 0009, ADR 0010). This document records the exact status of every Ghostty configuration key, keybind action and CLI +action as of Voyager7 1.0.0, verified from the implementation code paths rather than from allowlists alone.
Status definitions:
- works: parsed and applied to runtime behaviour on Windows (with any Windows-specific notes listed).
- partial: parsed and applied in part, with the missing behaviour stated explicitly.
- not on Windows: specific to macOS, Linux, GTK, Wayland, X11 or FreeType. Three quick-terminal keys (
gtk-quick-terminal-layer,gtk-quick-terminal-namespace,quick-terminal-space-behavior) are validated and ignored silently; the remaining platform-specific keys are accepted with anot supported yetwarning rather than failing startup. - not yet: applies to Windows, accepted on load with a
not supported yetdiagnostic (config keys) or rejected as an unsupported action (keybind actions).
Summary
| Surface | Total | Works | Partial | Not on Windows | Not yet | Windows coverage (works + partial / applicable) |
|---|---|---|---|---|---|---|
| Config keys | 219 | 101 | 10 | 48 | 60 | 111/171 (64.9%) |
| Keybind actions | 88 | 68 | 1 | 5 | 14 | 69/83 (83.1%) |
CLI +actions | 19 | 15 | 4 | 0 | 0 | 19/19 (100.0%) |
All works and partial config keys that apply in the main configuration file (110 Ghostty keys, including config-file, plus the 3 validated quick-terminal platform keys) are classified against a single shared list in v7_core::config::implemented_keys used by both GUI startup and +validate-config/+show-config, and verified by implemented_ghostty_keys_never_produce_false_warnings in crates/v7-core/tests/config.rs. Voyager7's own v7-* configuration extensions and v7_* keybind actions are documented in ADR 0009 and +explain-config.
Goal: 100% compatibility on Windows
Voyager7's target is 100% compatibility with every Ghostty feature that applies on Windows: closing the 60 not yet config keys, the 14 not yet keybind actions (13 excluding crash, which is deliberately omitted in release builds per ADR 0010), and the remaining partial gaps. Below are the not yet items grouped and roughly ordered by user impact.
1. Font family variants, bold/faint styling and contrast
font-family-bold,font-family-italic,font-family-bold-italic: separate font faces per style (also unlocks named faces infont-style-bold,font-style-italicandfont-style-bold-italic).bold-color,bold-is-bright: custom bold text colour and classic bold-as-bright palette mapping.minimum-contrast: automatic foreground contrast adjustment against the background.faint-opacity: configurable dimming factor for SGR faint text.font-synthetic-style: control synthetic bold and italic fallback when faces are absent.font-codepoint-map: explicit font fallback mapping for Unicode codepoint ranges (such as Nerd Font or CJK ranges).font-shaping-break: control where ligature/shaping runs break (for example at the cursor).
2. Window startup state, working directory and command lifecycle
maximize,fullscreen: start new windows maximized or fullscreen (runtimetoggle_maximizeandtoggle_fullscreenalready work).wait-after-command,abnormal-command-exit-runtime: keep failed or exited commands readable instead of closing immediately.input: send initial bytes or file contents to a surface's PTY on startup.initial-window,quit-after-last-window-closed-delay: background/resident startup and delayed shutdown.config-default-files: CLI flag to skip default%APPDATA%\Voyager7\configloading.- (Partial gap to close alongside these:
working-directoryin the main config file, currently supported on CLI and in profile files.)
3. Font, cell and cursor metric adjustments
adjust-cell-width,adjust-cell-height,adjust-font-baseline: fine-tune grid density and vertical alignment.adjust-underline-position,adjust-underline-thickness,adjust-strikethrough-position,adjust-strikethrough-thickness,adjust-overline-position,adjust-overline-thickness: text decoration geometry.adjust-box-thickness,adjust-cursor-height,adjust-cursor-thickness,adjust-icon-height: box drawing, cursor and Nerd Font icon metrics.
4. Advanced keybindings, key tables, sequences and remapping
key-remap: remap modifier keys inside the terminal.activate_key_table,activate_key_table_once,deactivate_key_table,deactivate_all_key_tables: modal key tables (tmux-style leader modes).end_key_sequence: multi-key binding sequences (a>b).cursor_key: DECCKM-aware keybind payloads.- (Partial gap in
keybind:all:,unconsumed:andlocal:prefixes.)
5. Background images, custom shaders and colour pipeline
background-image,background-image-opacity,background-image-position,background-image-fit,background-image-repeat: terminal background images.custom-shader,custom-shader-animation: post-processing custom shaders.alpha-blending: selectable linear vs native blending colour space.palette-generate,palette-harmonious: auto-generate extended 256-colour palette from the base 16.window-title-font-family: custom font for window and tab strip titles.
6. Mouse, links, command palette and notifications
link: custom regex-to-URL link matchers.middle-click-action: middle-click paste (clipboard-paste) orignore.cursor-click-to-move: click inside a shell prompt to reposition the cursor.command-palette-entry: user-defined custom Command Palette actions.desktop-notifications: toggle for application-triggered OSC 9 / OSC 777 desktop notifications.drag-handle: split drag handles for mouse rearrangement.clipboard-codepoint-map: remap codepoints on copy.
7. Additional window and surface actions
toggle_readonly: lock a surface against accidental keyboard input.toggle_window_decorations: toggle borderless mode at runtime.toggle_background_opacity: toggle between configured translucentbackground-opacityand opaque.reset_window_size: return a resized window to its initialwindow-widthandwindow-height.toggle_visibility: hide or show all Voyager7 windows together.redo: redo undone tab/window closes (alongside extendingundoto closed splits).toggle_tab_overview: grid overview of open tabs.
8. VT protocol switches, memory, localisation and compatibility aliases
osc-color-report-format,vt-window-resize-allowed,vt-kam-allowed,enquiry-response,grapheme-width-method: remaining VT protocol options.scrollback-compression: compress idle scrollback pages in memory.language: UI localisation override.background-blur-radius,cursor-invert-fg-bg,selection-invert-fg-bg: deprecated Ghostty compatibility aliases (easy wins once mapped to existing keys).crash: deliberately omitted in release builds per ADR 0010 (tested via thecrash-testCargo feature instead).
Configuration keys
All 219 keys from crates/v7-core/src/ghostty_keys.rs (generated from pinned Ghostty vendor/ghostty/src/config/Config.zig, commit c7f68a7).
| Key | Status | Notes |
|---|---|---|
abnormal-command-exit-runtime | not yet | Fast-exit error banner threshold. |
adjust-box-thickness | not yet | Box-drawing stroke thickness adjustment. |
adjust-cell-height | not yet | Cell height pixel or percentage adjustment. |
adjust-cell-width | not yet | Cell width pixel or percentage adjustment. |
adjust-cursor-height | not yet | Cursor height pixel or percentage adjustment. |
adjust-cursor-thickness | not yet | Bar and hollow cursor thickness adjustment. |
adjust-font-baseline | not yet | Baseline vertical offset adjustment. |
adjust-icon-height | not yet | Nerd Font icon height adjustment. |
adjust-overline-position | not yet | Overline vertical offset adjustment. |
adjust-overline-thickness | not yet | Overline thickness adjustment. |
adjust-strikethrough-position | not yet | Strikethrough vertical offset adjustment. |
adjust-strikethrough-thickness | not yet | Strikethrough thickness adjustment. |
adjust-underline-position | not yet | Underline vertical offset adjustment. |
adjust-underline-thickness | not yet | Underline thickness adjustment. |
adw-toolbar-style | not on Windows | Deprecated libadwaita alias for gtk-toolbar-style (Linux/GTK only). |
alpha-blending | not yet | Linear vs native alpha blending colour space. |
app-notifications | works | In-app toasts for clipboard-copy and config-reload; packed-struct syntax (v7_core::notifications, crates/v7-core/tests/notifications.rs). |
async-backend | not on Windows | Linux epoll vs io_uring selector (Linux only). |
auto-update | not on Windows | macOS Sparkle auto-updater; Voyager7 ships no network or updater code (ADR 0010). |
auto-update-channel | not on Windows | macOS Sparkle auto-update release channel. |
background | works | Hex, X11 names, rgb: and rgbi: applied to libghostty-vt default option and renderer (v7_core::colors, crates/v7-core/tests/colors.rs). |
background-blur | works | Enables DWM blur-behind (Win10+ accent policy, Win7 Aero glass; opaque without composition). Numeric radius is accepted and enables blur; Win32 accent/Aero blur is on or off (v7_core::window_config, crates/voyager7/src/render.rs). |
background-blur-radius | not yet | Deprecated Ghostty 1.1 compatibility alias for background-blur. |
background-image | not yet | Terminal background image path (PNG/JPEG). |
background-image-fit | not yet | Background image scaling mode (contain, cover, stretch, none). |
background-image-opacity | not yet | Background image opacity multiplier. |
background-image-position | not yet | Background image anchor position. |
background-image-repeat | not yet | Background image tiling. |
background-opacity | works | Composes client alpha over DWM frame; stays opaque without desktop composition (v7_core::window_config, crates/v7-core/tests/window_config.rs). |
background-opacity-cells | works | Applies background-opacity to cells with explicit background colours too (crates/voyager7/src/render.rs). |
bell-audio-path | works | Plays WAV, MP3 or WMA via MCI DirectShow when bell-features includes audio; resolves ?, ~/ and config-relative paths (v7_core::command_finish, crates/v7-core/tests/command_finish.rs). |
bell-audio-volume | works | Clamped to 0.0..=1.0 and passed to MCI setaudio volume (v7_core::command_finish, crates/v7-core/tests/command_finish.rs). |
bell-features | partial | system, audio, attention and title work (crates/voyager7/src/tabs.rs). Missing: border is parsed and accepted but does not draw a border yet. |
bold-color | not yet | Custom colour or bright policy for bold text. |
bold-is-bright | not yet | Deprecated Ghostty 1.2 compatibility alias for bold-color = bright. |
class | works | Names the single-instance named pipe, session directory and Jump List (crates/voyager7/src/instances.rs, crates/voyager7/src/app.rs). |
click-repeat-interval | works | Milliseconds for double/triple click; 0 uses Windows' GetDoubleClickTime (v7_core::terminal_options, crates/voyager7/src/mouse.rs). |
clipboard-codepoint-map | not yet | Codepoint remapping when copying text to the clipboard. |
clipboard-paste-bracketed-safe | works | Skips unsafe-paste confirmation when bracketed paste mode is active (v7_core::interaction, crates/v7-core/tests/interaction.rs). |
clipboard-paste-protection | works | Shows a confirmation dialog for pastes containing newlines or ESC[201~ (v7_core::interaction, crates/v7-core/tests/interaction.rs). |
clipboard-read | works | allow, deny or ask (default) for OSC 52 and OSC 5522 text/plain reads (v7_core::interaction, crates/voyager7/src/clipboard.rs). |
clipboard-trim-trailing-spaces | works | Trims trailing whitespace per line on copy (v7_core::interaction, crates/voyager7/src/mouse.rs). |
clipboard-write | works | allow (default), deny or ask for OSC 52 and OSC 5522 text/plain writes (v7_core::interaction, crates/voyager7/src/clipboard.rs). |
clipboard-write-limit-bytes | works | Sets libghostty-vt's OSC 5522 write limit (unlimited accepted); OSC 52 uses its own escape limit (v7_vt::clipboard, crates/voyager7/src/render.rs). |
command | works | Command line for new surfaces; supports direct: and shell: prefixes (v7_core::profiles, crates/voyager7/src/profiles.rs). |
command-palette-entry | not yet | User-defined custom entries in the Command Palette. |
config-default-files | not yet | CLI flag to skip loading default %APPDATA%\Voyager7\config files. |
config-file | works | Deferred include loading in insertion order with ? optional prefix, ~/ home expansion, relative paths, cycle detection and empty reset (v7_core::config, crates/v7-core/tests/config.rs). |
confirm-close-surface | works | true, false and always; checks OSC 133 prompt state and Windows process tree; skipped on Windows session end (v7_core::confirm_close, crates/voyager7/src/closing.rs). |
copy-on-select | works | clipboard, both, true, false, none and primary accepted. Windows has no primary selection, so primary is a no-op and true copies to the system clipboard without a toast (v7_core::interaction, crates/voyager7/src/mouse.rs). |
cursor-click-to-move | not yet | Click within a shell prompt to move the cursor with arrow keys. |
cursor-color | works | Hex, X11 names, cell-foreground or cell-background; OSC 12 overrides (v7_core::colors, crates/v7-core/tests/colors.rs). |
cursor-invert-fg-bg | not yet | Deprecated Ghostty 1.2 compatibility alias for cursor-color = cell-foreground and cursor-text = cell-background. |
cursor-opacity | works | Clamped to 0.0..=1.0 and blended with the underlying cell (v7_core::terminal_options, crates/voyager7/src/render.rs). |
cursor-style | works | block, bar, underline and block_hollow; also settable per profile (v7_core::cursor_config, crates/voyager7/src/render.rs). |
cursor-style-blink | partial | Sets the default cursor blink state (true, false, empty). Missing: unlike Ghostty, setting true or false does not block applications from toggling blink with DEC mode 12 (crates/voyager7/src/render.rs). |
cursor-text | works | Hex, X11 names, cell-foreground or cell-background (v7_core::colors, crates/v7-core/tests/colors.rs). |
custom-shader | not yet | Post-processing custom shaders (Shadertoy-style GLSL/HLSL). |
custom-shader-animation | not yet | Continuous animation control for custom shaders. |
desktop-notifications | not yet | Toggle for application-triggered desktop notifications (OSC 9 / OSC 777). |
drag-handle | not yet | Split drag-handle visibility (auto, always, never). |
enquiry-response | not yet | String sent in reply to ASCII ENQ (0x05). |
env | works | Repeatable KEY=VALUE, KEY= removal and empty reset; case-insensitive variable names on Windows; also settable per profile (v7_core::env, crates/voyager7/src/render.rs). |
faint-opacity | not yet | Opacity factor for SGR faint/dim text. |
focus-follows-mouse | works | Moves split focus to the pane under the pointer within the focused window (v7_core::splits, crates/voyager7/src/tab_splits.rs). |
font-codepoint-map | not yet | Map Unicode codepoint ranges to specific font families. |
font-family | works | Repeatable primary family list (empty resets to Cascadia Mono then Consolas); also settable per profile (v7_core::font_config, crates/voyager7/src/fonts.rs). |
font-family-bold | not yet | Separate font family for bold text. |
font-family-bold-italic | not yet | Separate font family for bold-italic text. |
font-family-italic | not yet | Separate font family for italic text. |
font-feature | works | Repeatable OpenType feature tags (+liga, -calt, ss01=1, etc.); also settable per profile (v7_core::font_config, crates/voyager7/src/fonts.rs). |
font-shaping-break | not yet | Controls where text shaping runs break (for example cursor). |
font-size | works | Size in points (1.0..=128.0, default 12); live reload preserves manually zoomed surfaces (v7_core::font_config, v7_core::font_size). |
font-style | works | default, false, or a named style (such as Medium) selecting the regular face within the configured family (v7_core::font_config, crates/voyager7/src/fonts.rs). |
font-style-bold | partial | false draws bold text in the regular style (crates/voyager7/src/fonts.rs). Missing: a named style face is accepted but ignored because Voyager7 renders bold from the regular face. |
font-style-bold-italic | partial | false draws bold-italic text in the regular style (crates/voyager7/src/fonts.rs). Missing: a named style face is accepted but ignored. |
font-style-italic | partial | false draws italic text in the regular style (crates/voyager7/src/fonts.rs). Missing: a named style face is accepted but ignored. |
font-synthetic-style | not yet | Controls synthetic bold and italic when real faces are absent. |
font-thicken | not on Windows | macOS CoreText stroke thickening (macOS only in Ghostty). |
font-thicken-strength | not on Windows | macOS CoreText stroke thickening strength (macOS only in Ghostty). |
font-variation | works | Repeatable axis=value for variable fonts on the regular style; also per profile (v7_core::font_config, crates/v7-text/src/variation.rs). |
font-variation-bold | works | Repeatable axis=value for variable fonts on bold text (v7_core::font_config, crates/v7-text/src/variation.rs). |
font-variation-bold-italic | works | Repeatable axis=value for variable fonts on bold-italic text (v7_core::font_config, crates/v7-text/src/variation.rs). |
font-variation-italic | works | Repeatable axis=value for variable fonts on italic text (v7_core::font_config, crates/v7-text/src/variation.rs). |
foreground | works | Hex, X11 names, rgb: and rgbi: applied to libghostty-vt default option and renderer (v7_core::colors, crates/v7-core/tests/colors.rs). |
freetype-load-flags | not on Windows | FreeType rasterizer flags (Linux/FreeType only; Voyager7 uses swash and v7-nostalgia). |
fullscreen | not yet | Start new windows in fullscreen (toggle_fullscreen action works, startup key does not). |
grapheme-width-method | not yet | Unicode vs legacy grapheme cell width calculation. |
gtk-custom-css | not on Windows | GTK stylesheet loading (Linux/GTK only). |
gtk-horizontal-tab-scroll | not on Windows | GTK tab bar touchpad scrolling (Linux/GTK only). |
gtk-opengl-debug | not on Windows | GTK OpenGL debug logging (Linux/GTK only; Voyager7 uses D3D11). |
gtk-quick-terminal-layer | not on Windows | Wayland layer-shell layer for quick terminal; validated and silently ignored on Windows (v7_core::quick_terminal). |
gtk-quick-terminal-namespace | not on Windows | Wayland layer-shell namespace for quick terminal; validated and silently ignored on Windows (v7_core::quick_terminal). |
gtk-single-instance | not on Windows | GTK D-Bus single-instance mode (Linux/GTK only; Voyager7 uses named-pipe IPC per class). |
gtk-tabs-inverted | not on Windows | GTK tab close button side (Linux/GTK only). |
gtk-tabs-location | not on Windows | GTK tab bar placement (Linux/GTK only). |
gtk-titlebar | not on Windows | GTK header bar visibility (Linux/GTK only). |
gtk-titlebar-hide-when-maximized | not on Windows | GTK header bar hide on maximize (Linux/GTK only). |
gtk-titlebar-style | not on Windows | GTK header bar style (Linux/GTK only). |
gtk-toolbar-style | not on Windows | libadwaita toolbar style (Linux/GTK only). |
gtk-wide-tabs | not on Windows | GTK wide tabs layout (Linux/GTK only). |
image-storage-limit | works | Kitty graphics byte limit per screen (0 disables kitty images) (crates/voyager7/src/render.rs). |
initial-command | works | Command run in the first surface on startup, overriding the default profile when no CLI command is given (v7_core::profiles, crates/voyager7/src/app.rs). |
initial-window | not yet | Start resident without opening an initial window. |
input | not yet | Initial raw or file-backed bytes written to a surface's PTY on startup. |
key-remap | not yet | Modifier key remapping inside the terminal. |
keybind | partial | Triggers, modifiers, clear, empty reset, unbind, performable:, global: and 69 Ghostty actions work (v7_core::bindings). Missing: all:, unconsumed: and local: prefixes, multi-key sequences (a>b), key tables (table/a=action), and 19 Ghostty actions. |
language | not yet | Override Voyager7 UI language. |
link | not yet | Custom regex-to-URL link matchers. |
link-osc8 | works | Enables or disables Ctrl+hover and Ctrl+click on OSC 8 hyperlinks (v7_core::interaction, crates/voyager7/src/mouse.rs). |
link-previews | works | true, false and osc8; shows the hovered link target at the bottom of the terminal (v7_core::link, crates/voyager7/src/render.rs). |
link-url | works | Enables Ctrl+hover and Ctrl+click on URLs and Windows file paths (v7_core::interaction, crates/voyager7/src/mouse.rs). |
linux-cgroup | not on Windows | Linux systemd cgroup scoping (Linux only). |
linux-cgroup-hard-fail | not on Windows | Linux systemd cgroup failure policy (Linux only). |
linux-cgroup-memory-limit | not on Windows | Linux systemd cgroup memory limit (Linux only). |
linux-cgroup-processes-limit | not on Windows | Linux systemd cgroup process limit (Linux only). |
macos-applescript | not on Windows | macOS AppleScript dictionary (macOS only). |
macos-auto-secure-input | not on Windows | macOS Secure Input automation (macOS only). |
macos-custom-icon | not on Windows | macOS custom app bundle icon (macOS only). |
macos-dock-drop-behavior | not on Windows | macOS Dock drag-and-drop behaviour (macOS only). |
macos-hidden | not on Windows | macOS Dock and app switcher hiding (macOS only). |
macos-icon | not on Windows | macOS app icon preset (macOS only). |
macos-icon-frame | not on Windows | macOS app icon frame material (macOS only). |
macos-icon-ghost-color | not on Windows | macOS app icon ghost tint (macOS only). |
macos-icon-screen-color | not on Windows | macOS app icon screen tint (macOS only). |
macos-non-native-fullscreen | not on Windows | macOS Spaces vs non-native fullscreen (macOS only). |
macos-option-as-alt | not on Windows | macOS Option key mapping (macOS only). |
macos-secure-input-indication | not on Windows | macOS Secure Input indicator (macOS only). |
macos-shortcuts | not on Windows | macOS Shortcuts integration (macOS only). |
macos-titlebar-proxy-icon | not on Windows | macOS titlebar proxy icon (macOS only). |
macos-titlebar-style | not on Windows | macOS titlebar style (macOS only). |
macos-window-buttons | not on Windows | macOS traffic-light window buttons (macOS only). |
macos-window-shadow | not on Windows | macOS window shadow toggle (macOS only). |
maximize | not yet | Start new windows maximized (toggle_maximize action works, startup key does not). |
middle-click-action | not yet | Action on middle click (clipboard-paste, ignore; primary-paste is Linux-only). |
minimum-contrast | not yet | Minimum WCAG contrast ratio enforced between foreground and background. |
mouse-hide-while-typing | works | Hides the pointer when typing into the terminal (v7_core::terminal_options, crates/voyager7/src/render.rs). |
mouse-reporting | works | Enables or disables forwarding mouse events to applications requesting mouse tracking (v7_core::interaction, crates/voyager7/src/mouse.rs). |
mouse-scroll-multiplier | works | discrete:N, precision:N, or single factor (0.01..=10000) (v7_core::interaction, crates/voyager7/src/mouse.rs). |
mouse-shift-capture | works | false, true, always and never (v7_core::interaction, crates/voyager7/src/mouse.rs). |
notify-on-command-finish | works | never, unfocused and always, driven by OSC 133 command marks (v7_core::command_finish, crates/voyager7/src/tabs.rs). |
notify-on-command-finish-action | works | Packed struct (bell, notify, no-*, true, false); Windows notifications use notification-area balloons on Win7 and Action Center toasts on Win10+ (v7_core::command_finish, crates/voyager7/src/tabs.rs). |
notify-on-command-finish-after | works | Ghostty duration syntax (default 5s) (v7_core::command_finish, crates/v7-core/tests/command_finish.rs). |
osc-color-report-format | not yet | 8-bit vs 16-bit vs none reply format for OSC 10/11/12 colour queries. |
palette | works | Repeatable N=COLOR (0..=255, decimal/0x/0o/0b), empty resets to Ghostty defaults (v7_core::colors, crates/v7-core/tests/colors.rs). |
palette-generate | not yet | Generate extended 256-colour palette (16 to 255) from base 16 colours. |
palette-harmonious | not yet | Invert generated 256-colour palette order. |
progress-style | works | Enables or disables the OSC 9;4 progress bar, tab marks and taskbar progress (v7_core::notifications, crates/voyager7/src/tabs.rs). |
quick-terminal-animation-duration | works | Slide duration in seconds (clamped to 5s, 0 shows immediately; skipped when Windows disables animations) (v7_core::quick_terminal, crates/v7-platform-windows/src/quick.rs). |
quick-terminal-autohide | works | Hides the quick terminal when focus moves to another window (v7_core::quick_terminal, crates/v7-platform-windows/src/quick.rs). |
quick-terminal-keyboard-interactivity | works | none (WS_EX_NOACTIVATE), on-demand and exclusive (behaves as on-demand on Windows) (v7_core::quick_terminal, crates/v7-platform-windows/src/quick.rs). |
quick-terminal-position | works | top, bottom, left, right and center (v7_core::quick_terminal, crates/v7-core/tests/quick_terminal.rs). |
quick-terminal-screen | works | main, mouse and macos-menu-bar (uses primary monitor on Windows) (v7_core::quick_terminal, crates/v7-platform-windows/src/quick.rs). |
quick-terminal-size | works | Primary and optional secondary size in N% or Npx (scaled by monitor DPI) (v7_core::quick_terminal, crates/v7-core/tests/quick_terminal.rs). |
quick-terminal-space-behavior | not on Windows | macOS Spaces behaviour for quick terminal; validated and silently ignored on Windows (v7_core::quick_terminal). |
quit-after-last-window-closed | works | true (default) exits when the last window closes; false keeps the process resident for IPC and global hotkeys (crates/voyager7/src/tabs.rs). |
quit-after-last-window-closed-delay | not yet | Delay before quitting after the last window closes. |
resize-overlay | works | after-first (default), always and never (v7_core::resize_overlay, crates/v7-core/tests/resize_overlay.rs). |
resize-overlay-duration | works | Ghostty duration syntax (default 750ms) (v7_core::resize_overlay, crates/v7-core/tests/resize_overlay.rs). |
resize-overlay-position | works | All 7 positions (center, top-left, top-center, top-right, bottom-left, bottom-center, bottom-right) (v7_core::resize_overlay). |
right-click-action | works | context-menu (default), copy, paste, copy-or-paste and ignore (v7_core::interaction, crates/voyager7/src/mouse.rs). |
scroll-to-bottom | works | Packed struct (keystroke, output, no-*, true, false) (v7_core::terminal_options, crates/voyager7/src/render.rs). |
scrollback-compression | not yet | Compress idle scrollback pages in memory. |
scrollback-limit | works | Compatibility alias for scrollback-limit-bytes (v7_core::scrollback, crates/voyager7/src/render.rs). |
scrollback-limit-bytes | works | Byte limit per surface (default 50000000, unlimited accepted) applied via libghostty-vt (v7_core::scrollback, crates/voyager7/src/render.rs). |
scrollback-limit-lines | works | Line limit per surface (default unlimited) applied via libghostty-vt (v7_core::scrollback, crates/voyager7/src/render.rs). |
scrollbar | works | system (default overlay scrollbar with marks) and never (v7_core::scrollbar, crates/voyager7/src/scrollbar.rs). |
search-background | works | Highlight background for search matches; accepts colours and cell-foreground/cell-background (v7_core::colors). |
search-foreground | works | Highlight foreground for search matches (v7_core::colors). |
search-selected-background | works | Highlight background for the active search match (v7_core::colors). |
search-selected-foreground | works | Highlight foreground for the active search match (v7_core::colors). |
selection-background | works | Selection highlight background; accepts colours and cell-foreground/cell-background (v7_core::colors). |
selection-clear-on-copy | works | Clears the selection after copying (v7_core::interaction, crates/voyager7/src/mouse.rs). |
selection-clear-on-typing | works | Clears the selection on typed input or IME composition (v7_core::interaction, crates/voyager7/src/render.rs). |
selection-foreground | works | Selection highlight foreground; accepts colours and cell-foreground/cell-background (v7_core::colors). |
selection-invert-fg-bg | not yet | Deprecated Ghostty 1.2 compatibility alias for selection-foreground = cell-background and selection-background = cell-foreground. |
selection-word-chars | works | Custom word-boundary characters with Ghostty escape syntax (v7_core::interaction, crates/voyager7/src/mouse.rs). |
shell-integration | partial | detect, none, cmd, powershell and pwsh work (v7_core::shell_integration). Missing: Unix shells (bash, zsh, fish, elvish, nushell) are accepted without warning but do not inject hooks. |
shell-integration-features | partial | title, ssh-env and ssh-terminfo (PowerShell only) work (v7_core::shell_integration). Missing: cursor, path and Unix-only sudo are accepted without effect. |
split-divider-color | works | Custom split divider colour; unset mixes 20% foreground into background for visibility on Windows (v7_core::splits, crates/voyager7/src/splits.rs). |
split-inherit-working-directory | works | New splits inherit the focused split's working directory (v7_core::splits, crates/voyager7/src/tab_splits.rs). |
split-preserve-zoom | works | navigation, no-navigation, true and false (v7_core::splits, crates/voyager7/src/tab_splits.rs). |
tab-inherit-working-directory | works | New tabs inherit the focused surface's working directory (crates/voyager7/src/tabs.rs). |
term | works | Sets TERM for spawned shells when configured; unset by default on Windows because xterm-ghostty has no native Windows terminfo (v7_core::terminal_options, crates/voyager7/src/render.rs). |
theme | works | Built-in Ghostty + Windows Terminal themes, %APPDATA%\Voyager7\themes, absolute paths, and light:NAME,dark:NAME switching with Windows app mode (v7_core::themes, crates/voyager7/src/settings.rs). |
title | works | Fixed window and tab title overriding program OSC title changes; also settable per profile (crates/voyager7/src/tabs.rs). |
title-report | works | Allows programs to query the window title via CSI 21 t (v7_core::terminal_options, crates/voyager7/src/render.rs). |
undo-timeout | works | Ghostty duration syntax (default 5s) for keeping closed tabs and windows alive for undo (v7_core::window_config, crates/voyager7/src/undo.rs). |
unfocused-split-fill | works | Overlay fill colour for unfocused splits; unset uses background (v7_core::splits, crates/voyager7/src/splits.rs). |
unfocused-split-opacity | works | Clamped to 0.15..=1.0 (default 0.7) (v7_core::splits, crates/voyager7/src/splits.rs). |
vt-kam-allowed | not yet | Allow ANSI mode 2 (keyboard action mode) to lock keyboard input. |
vt-window-resize-allowed | not yet | Allow CSI 8 ; rows ; cols t window resize requests from applications. |
vt-xt-checksum-extension | works | Packed struct (negate, attributes, trim, undrawn, full, no-*) passed to libghostty-vt (v7_core::terminal_options, crates/voyager7/src/render.rs). |
vt-xt-checksum-report | works | Allows DECRQCRA checksum queries (v7_core::terminal_options, crates/voyager7/src/render.rs). |
wait-after-command | not yet | Keep surface open after its command exits until a key is pressed. |
window-colorspace | not on Windows | macOS sRGB vs Display P3 colour space (macOS only). |
window-decoration | works | none opens a borderless WS_POPUP window; auto, client and server keep the standard Windows frame (v7_core::window_config, crates/voyager7/src/render.rs). |
window-height | works | Initial height in cells (minimum 4, requires window-width too) (v7_core::window_config, crates/voyager7/src/app.rs). |
window-inherit-font-size | works | New tabs and windows inherit the focused surface's font size (v7_core::font_size, crates/voyager7/src/tabs.rs). |
window-inherit-working-directory | works | New windows inherit the focused surface's working directory (crates/voyager7/src/tabs.rs). |
window-new-tab-position | works | current (after active tab) and end (v7_core::window_config, crates/voyager7/src/tabs.rs). |
window-padding-balance | works | false, true and equal (v7_core::window_config, crates/voyager7/src/render.rs). |
window-padding-color | partial | background, extend and extend-always work (crates/voyager7/src/render.rs). Missing: extend checks default-background cells and Powerline glyphs, but does not detect shell prompt rows. |
window-padding-x | works | Horizontal padding in points (N or L,R, default 2), scaled by DPI and floored (v7_core::window_config, crates/voyager7/src/render.rs). |
window-padding-y | works | Vertical padding in points (N or T,B, default 2), scaled by DPI and floored (v7_core::window_config, crates/voyager7/src/render.rs). |
window-position-x | works | Initial X position in pixels (requires window-position-y, clamped to monitor work area) (v7_core::window_config, crates/voyager7/src/render.rs). |
window-position-y | works | Initial Y position in pixels (requires window-position-x, clamped to monitor work area) (v7_core::window_config, crates/voyager7/src/render.rs). |
window-save-state | works | default (saves on Windows session end / Restart Manager), always (also on quit) and never (discards saved state) (v7_core::window_config, crates/voyager7/src/session_state.rs). |
window-show-tab-bar | works | always, auto and never (crates/voyager7/src/tabs.rs). |
window-step-resize | works | Snaps WM_SIZING window resizing to whole cell multiples (v7_core::window_config, crates/voyager7/src/tabs.rs). |
window-subtitle | not on Windows | GTK AdwWindowTitle subtitle (Linux/GTK only). |
window-theme | works | auto, system, light, dark and ghostty (acts as auto on Windows); themes Voyager7's UI windows and Win10+ title bars/menus, leaving the native Win7 caption unchanged (v7_core::window_theme, crates/voyager7/src/settings.rs). |
window-title-font-family | not yet | Custom font family for window and tab strip titles. |
window-titlebar-background | not on Windows | GTK header bar background colour when window-theme = ghostty (Linux/GTK only). |
window-titlebar-foreground | not on Windows | GTK header bar foreground colour when window-theme = ghostty (Linux/GTK only). |
window-vsync | not on Windows | macOS DisplayLink/Metal vsync toggle (macOS only in Ghostty; D3D11 present sync is used on Windows). |
window-width | works | Initial width in cells (minimum 10, requires window-height too) (v7_core::window_config, crates/voyager7/src/app.rs). |
working-directory | partial | Works on the CLI (--working-directory=) and in profile files (profiles\NAME.ghostty). Missing: not applied in the main config file, where it emits not supported yet (v7_core::profiles). |
x11-instance-name | not on Windows | X11 WM_CLASS instance name (Linux/X11 only). |
Keybind actions
All 88 actions from crates/v7-core/src/ghostty_actions.rs (generated from pinned Ghostty vendor/ghostty/src/input/Binding.zig, in Ghostty +list-actions order). Every parsed action in crates/v7-core/src/bindings.rs has a real runtime handler in crates/voyager7/src/; no parsed action is a no-op (other than ignore, whose specification is to consume the trigger).
| Action | Status | Notes |
|---|---|---|
ignore | works | Consumes the trigger and takes no action (v7_core::bindings). |
unbind | works | Removes any existing binding for the trigger (v7_core::bindings). |
csi | works | Sends ESC [ followed by the payload verbatim to the PTY and scrolls to bottom (crates/voyager7/src/actions.rs). |
esc | works | Sends ESC followed by the payload verbatim to the PTY and scrolls to bottom (crates/voyager7/src/actions.rs). |
text | works | Decodes Zig string escapes and writes raw bytes to the PTY, scrolling to bottom (crates/voyager7/src/actions.rs). |
cursor_key | not yet | Not parsed; sends application or normal payload based on DECCKM mode. |
reset | works | Resets terminal state and clears selection (crates/voyager7/src/render.rs). |
copy_to_clipboard | works | Supports bare (mixed), :mixed (CF_UNICODETEXT + CF_HTML + RTF), :plain, :vt and :html (crates/voyager7/src/mouse.rs). |
paste_from_clipboard | works | Pastes from the Windows clipboard with optional single-line trim and unsafe-paste protection (crates/voyager7/src/render.rs). |
paste_from_selection | not on Windows | X11/Wayland primary selection clipboard; Windows has no primary selection. |
copy_url_to_clipboard | works | Copies the hovered URL or OSC 8 link under the pointer (crates/voyager7/src/mouse.rs). |
copy_title_to_clipboard | works | Copies the focused surface title to the clipboard (crates/voyager7/src/tabs.rs). |
increase_font_size | works | Increases the focused surface's font size in points (v7_core::font_size, crates/voyager7/src/tabs.rs). |
decrease_font_size | works | Decreases the focused surface's font size in points (v7_core::font_size, crates/voyager7/src/tabs.rs). |
reset_font_size | works | Restores the surface's original configured or inherited font size (v7_core::font_size). |
set_font_size | works | Sets the focused surface's font size in points (1..=128) (v7_core::font_size). |
search | works | Starts or updates search with the given needle via libghostty-vt (crates/voyager7/src/tabs.rs). |
search_selection | works | Starts a search for the currently selected text (crates/voyager7/src/tabs.rs). |
navigate_search | works | Moves to :next or :previous search match (crates/voyager7/src/tabs.rs). |
start_search | works | Opens the find bar on the focused split (crates/voyager7/src/tabs.rs). |
end_search | works | Ends the active search and closes the find bar (crates/voyager7/src/tabs.rs). |
clear_screen | works | Clears the primary screen and scrollback and clears selection (crates/voyager7/src/render.rs). |
select_all | works | Selects all text on the terminal screen (crates/voyager7/src/actions.rs). |
scroll_to_top | works | Scrolls the viewport to the top of scrollback (crates/voyager7/src/actions.rs). |
scroll_to_bottom | works | Scrolls the viewport to the bottom (crates/voyager7/src/actions.rs). |
scroll_to_selection | works | Scrolls the viewport to the active selection (crates/voyager7/src/actions.rs). |
scroll_to_row | works | Scrolls to absolute row :N (crates/voyager7/src/actions.rs). |
scroll_page_up | works | Scrolls up by one viewport page (crates/voyager7/src/actions.rs). |
scroll_page_down | works | Scrolls down by one viewport page (crates/voyager7/src/actions.rs). |
scroll_page_fractional | works | Scrolls by a signed fractional page count (crates/voyager7/src/actions.rs). |
scroll_page_lines | works | Scrolls by a signed line count (crates/voyager7/src/actions.rs). |
adjust_selection | works | All 10 directions (left, right, up, down, page_up, page_down, home, end, beginning_of_line, end_of_line) (crates/voyager7/src/actions.rs). |
jump_to_prompt | works | Jumps by :N OSC 133 prompts (crates/voyager7/src/actions.rs). |
write_scrollback_file | works | Writes history to a temp file (copy, paste, open; plain, vt, html; CRLF for text) (crates/voyager7/src/actions.rs). |
write_screen_file | works | Writes visible screen to a temp file (copy, paste, open; plain, vt, html) (crates/voyager7/src/actions.rs). |
write_selection_file | works | Writes active selection to a temp file (copy, paste, open; plain, vt, html) (crates/voyager7/src/actions.rs). |
new_window | works | Opens a new Voyager7 window (crates/voyager7/src/tabs.rs). |
new_tab | works | Opens a new tab respecting window-new-tab-position and inheritance settings (crates/voyager7/src/tabs.rs). |
previous_tab | works | Switches to the previous tab (crates/voyager7/src/tabs.rs). |
next_tab | works | Switches to the next tab (crates/voyager7/src/tabs.rs). |
last_tab | works | Switches to the last tab (crates/voyager7/src/tabs.rs). |
goto_tab | works | Switches to 1-based tab :N (crates/voyager7/src/tabs.rs). |
move_tab | works | Moves the active tab by signed offset :N (crates/voyager7/src/tabs.rs). |
move_tab_to_new_window | works | Detaches the active tab and its live processes into a new window (crates/voyager7/src/tabs.rs). |
toggle_tab_overview | not yet | Not parsed; libadwaita tab overview on Linux, no Windows overview UI yet. |
prompt_surface_title | works | Opens a prompt dialog to rename the focused surface (crates/voyager7/src/tabs.rs). |
prompt_tab_title | works | Opens a prompt dialog to rename the active tab (crates/voyager7/src/tabs.rs). |
prompt_window_title | works | Opens a prompt dialog to rename the window (crates/voyager7/src/tabs.rs). |
set_surface_title | works | Sets or clears the focused surface title (crates/voyager7/src/tabs.rs). |
set_tab_title | works | Sets or clears the active tab title (crates/voyager7/src/tabs.rs). |
set_window_title | works | Sets or clears the window title (crates/voyager7/src/tabs.rs). |
new_split | works | Bare (auto), :auto, :right, :down, :left and :up (crates/voyager7/src/tab_splits.rs). |
goto_split | works | :previous, :next, :up, :down, :left, :right, :top and :bottom (crates/voyager7/src/tab_splits.rs). |
goto_window | works | :next and :previous, skipping hidden quick terminals (crates/voyager7/src/tabs.rs). |
toggle_split_zoom | works | Zooms or unzooms the focused split (crates/voyager7/src/tab_splits.rs). |
toggle_readonly | not yet | Not parsed; read-only surface mode is not implemented yet. |
resize_split | works | `:up |
equalize_splits | works | Equalizes split ratios in the active tab (crates/voyager7/src/tab_splits.rs). |
reset_window_size | not yet | Not parsed; resetting a window back to its initial configured size is not implemented yet. |
inspector | works | :toggle, :show and :hide open or close the native Terminal Inspector (crates/voyager7/src/render.rs, crates/voyager7/src/actions.rs). |
show_gtk_inspector | not on Windows | GTK widget inspector (Linux/GTK only). |
show_on_screen_keyboard | not on Windows | GTK/GNOME Screen Keyboard accessibility toggle (Linux/GTK only). |
open_config | works | Bare open_config and open_config:os_open open the active config in VISUAL, EDITOR or Notepad (crates/voyager7/src/render.rs). GTK-only open_config:new_window is not accepted. |
reload_config | works | Transactional live reload of configuration across open windows with toast notification (crates/voyager7/src/render.rs, crates/voyager7/src/tabs.rs). |
close_surface | works | Closes the focused split, tab or window with confirm-close-surface support (crates/voyager7/src/tab_splits.rs, crates/voyager7/src/closing.rs). |
close_tab | works | Bare (this), :this, :other and :right with confirm-close-surface and undo (crates/voyager7/src/tabs.rs). |
close_window | works | Closes the current window with confirm-close-surface and undo (crates/voyager7/src/tabs.rs). |
close_all_windows | works | Closes all open windows with confirmation (deprecated no-op in Ghostty, working in Voyager7) (crates/voyager7/src/tabs.rs). |
toggle_maximize | works | Maximizes or restores the current window (crates/voyager7/src/actions.rs). |
toggle_fullscreen | works | Toggles borderless monitor fullscreen (crates/voyager7/src/actions.rs). |
toggle_window_decorations | not yet | Not parsed; toggling frame decorations at runtime is not implemented yet. |
toggle_window_float_on_top | works | Toggles HWND_TOPMOST always-on-top state (crates/voyager7/src/actions.rs). |
toggle_secure_input | not on Windows | macOS Secure Event Input API (macOS only). |
toggle_mouse_reporting | works | Toggles mouse reporting for the active tab until the next config reload (crates/voyager7/src/render.rs). |
toggle_command_palette | works | Opens or closes the native Command Palette (crates/voyager7/src/render.rs). |
toggle_quick_terminal | works | Shows or hides the drop-down quick terminal, including from global: hotkeys (crates/voyager7/src/quick_terminal.rs). |
toggle_visibility | not yet | Not parsed; hiding and restoring all Voyager7 windows together is not implemented yet. |
toggle_background_opacity | not yet | Not parsed; toggling between configured translucent background-opacity and opaque is not implemented yet. |
check_for_updates | not on Windows | macOS Sparkle update check; Voyager7 has no network or updater code. |
undo | partial | Reopens closed tabs and closed windows within undo-timeout with their programs still running (crates/voyager7/src/undo.rs). Missing: closing a split is not undone. |
redo | not yet | Not parsed; redo of undone actions is not implemented yet. |
end_key_sequence | not yet | Not parsed; multi-key binding sequences are not implemented yet. |
activate_key_table | not yet | Not parsed; named key tables are not implemented yet. |
activate_key_table_once | not yet | Not parsed; named key tables are not implemented yet. |
deactivate_key_table | not yet | Not parsed; named key tables are not implemented yet. |
deactivate_all_key_tables | not yet | Not parsed; named key tables are not implemented yet. |
quit | works | Exits Voyager7 after confirm-close-surface checks and optional session save (crates/voyager7/src/tabs.rs). |
crash | not yet | Deliberately omitted in release builds so users cannot trigger crashes via config (ADR 0010); crash reporting is tested via the crash-test Cargo feature. |
CLI actions
All 19 +actions from crates/voyager7/src/cli/inventory.rs (generated from pinned Ghostty vendor/ghostty/src/cli/ghostty.zig). Every action has Windows-specific --help output tested by xtask/src/cli.rs, and runs synchronously in cmd and PowerShell through voyager7.com.
| Action | Status | Notes |
|---|---|---|
+version | works | Ghostty layout (Version and Build Config), without OSC 8 links for Win7 conhost safety. Adds Voyager7's --full flag for bug reports (crates/voyager7/src/cli/version.rs). |
+help | works | Program help and per-action --help/-h for every Ghostty action (crates/voyager7/src/cli/help.rs). |
+list-fonts | works | Supports --family, --style, --bold and --italic. Windows notes: includes proportional fonts, and filters exclude non-matching faces rather than reordering them (crates/voyager7/src/cli/mod.rs). |
+list-keybinds | works | Supports --default, --docs (no-op, matching Ghostty) and --plain (crates/voyager7/src/cli/lists.rs). |
+list-themes | works | Supports --path, --plain, `--color=all |
+list-colors | works | Supports --plain; outputs Ghostty's X11 colour table (crates/voyager7/src/cli/mod.rs). |
+list-actions | works | Supports --docs; lists implemented Ghostty actions in Ghostty order followed by v7_ actions, with missing Ghostty actions listed in --help (crates/voyager7/src/cli/lists.rs). |
+ssh | works | Supports --forward-env, --terminfo, --cache, --ssh, --verbose, -- and passthrough arguments; installs xterm-ghostty terminfo on remote hosts (crates/voyager7/src/cli/ssh.rs, v7_core::ssh). |
+ssh-cache | works | Supports --clear, --add, --remove, --prune and --host; stores cache in %LOCALAPPDATA%\Voyager7\ssh_cache (crates/voyager7/src/cli/ssh.rs, v7_core::ssh_cache). |
+edit-config | works | Creates %APPDATA%\Voyager7\config from the template if absent and opens it in VISUAL, EDITOR or Notepad (crates/voyager7/src/cli/config.rs). |
+show-config | partial | Supports --default, --changes-only, --docs, --no-pager (always plain/unpaged), --<key>=<value>, plus Voyager7's --config and --v7-profile. Missing: --default prints only Voyager7's Settings-editor default table rather than every Ghostty default (and omits title, scrollbar, image-storage-limit and quick-terminal-* defaults) (crates/voyager7/src/cli/config.rs). |
+explain-config | works | Supports positional <name>, --option, --keybind and --no-pager; covers every Ghostty option and action (with Windows notes) plus v7- extensions (crates/voyager7/src/cli/config.rs). |
+validate-config | works | Supports --config-file (plus --v7-profile), default files, includes, value validation, themes and profiles. Values of unimplemented Ghostty keys cannot be validated and return non-zero with not supported yet (crates/voyager7/src/cli/config.rs). |
+show-face | partial | Supports --cp, --string, --style and --presentation against real font discovery and internal sprites (crates/voyager7/src/cli/mod.rs). Missing: always probes against the default Cascadia Mono family rather than loading configured font-family or CLI --font-family= overrides. |
+crash-report | works | Lists local crash reports (<id>.txt and <id>.dmp) in %LOCALAPPDATA%\Voyager7\crash; never uploads anything (ADR 0010) (crates/voyager7/src/cli/lists.rs). |
+boo | works | Plays Ghostty's 235-frame animation in a console or dumps one cycle when redirected (crates/voyager7/src/cli/boo.rs). |
+new-window | partial | Supports --class, --working-directory, --command, --title, --shell-integration, --v7-profile and -e over named-pipe IPC with detached startup fallback (crates/voyager7/src/instances.rs). Missing: arbitrary --<config-key>=<value> per-window overrides accepted by Ghostty are rejected. |
+new-tab | partial | Supports --class, --surface-id (and VOYAGER7_SURFACE_ID), --working-directory, --command, --title, --shell-integration, --v7-profile and -e (crates/voyager7/src/instances.rs). Missing: arbitrary --<config-key>=<value> overrides accepted by Ghostty are rejected. |
+toggle-quick-terminal | works | Supports --class (and --config) over IPC with detached quick-terminal startup fallback (crates/voyager7/src/instances.rs). |
Voyager7 also adds +show-licenses, which prints the LICENSE and NOTICE texts built into the executable. It is not a Ghostty action and is not counted above.
Performance
Measured on pre-release build 25df8c8 in the GPU-less Windows 7 and Windows 10 test VMs
(Direct3D 11 on WARP on Windows 7 and on Microsoft Basic Render Driver on Windows 10; Alacritty
and WezTerm used software OpenGL from WezTerm's official archive). Burst times use the 50 MB
source fixture (49,999,950 UTF-8 bytes, 673,400 rows; SGR stripped to 43,265,950 bytes on
Windows 7 before UTF-16 WriteConsoleW). Values are medians across valid runs (n shown when
fewer than 3). Memory is summed working set across the terminal and its console host processes,
which can double-count shared pages (idle private bytes for Voyager7 on Windows 10: 76.6 MiB for
1 tab, 136.2 MiB for 10 tabs).
| Voyager7 | conhost | Windows Terminal | ConEmu | Alacritty | WezTerm | |
|---|---|---|---|---|---|---|
| Win7, 50 MB source (rendered) | 8.6 s (n=3) | 54.8 s (n=1) | (no Win7) | no verified result | (no Win7) | (no Win7) |
| Win10, 50 MB source (rendered) | 12.9 s (n=1) | 27.8 s (n=3) | 8.0 s (n=3, 2.5 to 23.9 s) | no verified result | 43.4 s (n=2, 30.3 to 56.5 s) | no verified result |
| Win10, 50 MB source (fresh burst-only, console acceptance) | 16.6 s (n=3, 16.5 to 19.6 s) | not run | not run | no verified result (0/1) | not run | no verified result (0/1) |
| Win10, 1 tab (summed WS) | 73 MiB | 17 MiB | 75 MiB | 47 MiB | 65 MiB | 82 MiB |
| Win10, 10 tabs (summed WS) | 174 MiB | n/a | 223 MiB | 317 MiB | n/a | 175 MiB |
On Windows 7 (active-hook baseline), Voyager7 rendered the 50 MB source fixture in 8.6 s across three runs, while inbox conhost took 54.8 s in its one verified run and ConEmu had no verified burst result within the test deadlines. On Windows 10, Voyager7 rendered the burst in 12.9 s in its one completed full-sequence run (console acceptance 12.8 s), and in three separate fresh burst-only trials accepted the fixture in a median 16.6 s (16.5 to 19.6 s, no verified rendered frame). In the same Windows 10 VM, Alacritty (on software OpenGL) rendered the burst in 43.4 s across two runs, while ConEmu and WezTerm (also on software OpenGL) had no verified burst result within the test deadlines (ConEmu had no eligible full-sequence sample, WezTerm failed earlier in its sole full-sequence attempt, and neither finished a fresh burst-only trial). For idle memory on Windows 10, Voyager7 had lower summed working set than WezTerm at 1 tab (73 vs 82 MiB, though higher private bytes at 76.6 vs 53.5 MiB) and similar summed working set at 10 tabs (174 vs 175 MiB, with lower private bytes at 136.2 vs 204.1 MiB). Unlike Alacritty and WezTerm, Voyager7 also runs on Windows 7.
Versions: Voyager7 25df8c8 (bundled OpenConsole 1.25.2609.30003 on Windows 10), ConEmu 230724,
Windows Terminal 1.25.2733.0, Alacritty 0.17.0, WezTerm 20240203. Results on real GPUs will
differ. Method, raw numbers and the Nushell comparison:
build notes.
Memory changes since these measurements
The tables above were measured on pre-release build 25df8c8. Two memory reductions shipped in
1.0.0 after that and were measured on the same VMs:
- Windows 7: each tab's console agent starts with small output buffers (they still grow to 8 MiB when needed). Private bytes per tab agent fell from 25.5 to 10.0 MiB, and the whole process family with 10 tabs fell from 369 to 207 MiB.
- Windows 10: the GPU readback copy is created only when something reads the screen back. Private bytes for one 920x614 window fell from 75.0 to 72.6 MiB (108.7 to 105.9 MiB with a split). Working set did not change.
Executable size and VT throughput budgets are in Executable size, and idle memory in Memory.
Known limits
-
Kitty graphics and the console host. On Windows the console host between the program and Voyager7 does not know that an image moved the cursor (
a=Tora=pwithoutC=1). On Windows 7 the next text can start where the console's cursor is, as many rows higher as the image moved the cursor down. Programs that place images withC=1, or move the cursor themselves, as Yazi does, are not affected. -
APC Glyph Protocol (
ESC _ 25a1 ; ... ESC \). libghostty-vt's Glyph Protocol is still compiled in and enabled: Voyager7 answers the support query (ESC _ 25a1 ; s ESC \) withfmt=glyfand accepts Private Use Area glyph registrations, but the Renderer does not draw registered glyphs yet (and libghostty-vt has no C API to read them). Printing a registered codepoint draws whatever normal font or built-in sprite covers it, or the primary font's missing-glyph fallback (.notdef) when none does. The protocol may be turned off (saving about 47 KB; see guides/size.md) or implemented later.
On Windows 7
- Native programs that use the Console API are limited to 16 colours and the API's mouse support. Only programs that emit VT get the full experience.
- Each Surface needs its own Backend process or hidden console.
- The scraper path still polls. Only the hooks turn polling into push.
- 32-bit (WOW64) children fall back to the Scraper; x64 programs that emit VT (such as Win32-OpenSSH) get the full libghostty-vt experience through the Hook.
- When a tab's program cannot be found, no message is shown: the tab or first window closes, and for a new tab the rest of the app keeps running.
vttesttest 1 (cursor movements) draws wrong under Cygwin.
Unverified areas
Two open questions from roadmap.md have not been verified yet:
- Antivirus coexistence with the Hook. Whether
v7-hook.dllcoexists with common antivirus on a stock Windows 7 SP1 machine has not been tested. - WSL tabs end to end. Not verified in a running distribution yet (nested virtualization
blocked WSL 2 on the test VM, and WSL 1 Ubuntu did not finish first-run setup), including
Ubuntu's fragment colour scheme and icon,
wsl.exe --cdin\\wsl.localhost\or Linux folders,WSLENVforwarding (COLORTERM,TERM_PROGRAM), and dropped paths becoming/mnt/c/….
Questions
Over Plink on Windows 7, why do Right arrow, the remote size and Ctrl+C misbehave?
That is how Plink 0.85 works on a Windows 7 console, and plain conhost shows the same three things:
- Plink reads the console with
ReadFileand only processed input (mode0x1). Arrow keys produce no characters that way, so Right never reaches the remote shell. - Plink asks for an 80×24 terminal and never sends a new size. Run
stty rows R cols Cafter login. - With processed input, Ctrl+C is a
CTRL_C_EVENTfor every program on the console. Plink exits, and a batch file that started it asks "Terminate batch job (Y/N)?".
Win32-OpenSSH's ssh.exe reads raw input with window events in Voyager7: arrows, Ctrl+C
and resizes reach the remote side. In plain Windows 7 conhost it cannot, because it
needs a console with VT support.
Roadmap
Order agreed 2026-11-05. Each step was built test-first per guides/testing.md.
-
libghostty-vt on Windows 7. Done 2026-11-04, test queue closed 2026-11-05. Builds for
x86_64-windows.win7-gnuwith the patches inpatches/, and the C harness and Ghostty's own lib-vt suite pass on a real Windows 7 SP1 VM (7,119 passed, 0 failed). The wait/wake, memory-reset and out-of-memory probes pass. See guides/test-results.md and tests/win7/REPORT.md. -
Foundations. Done 2026-11-06. Cargo workspace (
v7-core,v7-text,v7-vt,v7-platform-windows,v7-gpu-d3d11,v7-backend-conpty,v7-backend-scraper,v7-hook,voyager7,xtask, plus laterv7-tab-strip,voyager7-consoleandvoyager7-setup), Nix shell with stable Rust andx86_64-pc-windows-gnu, Zig as the Windows linker, CRT-free static libghostty-vt,no_stdcosmic-text, lints from guides/STYLE.md, and the Windows 7 / Universal CRT import checker. -
Text Engine, font discovery, cell geometry. Done 2026-11-06. CPU-only and tested on Linux with approved PNG goldens (seams 5 and 6): the renderer acceptance checks for borders, Powerline, emoji presentation and fallback, sizes, scales, and bidi. Discovery walks the font folders, the registry Fonts key and the
fontssidecar folder; fallback order is configured family (default Cascadia Mono from the sidecar, then Consolas), user fallback list, the optional Symbols Nerd Font sidecar for Nerd Font symbols (as Ghostty embeds), platform per-script list, any installed font, other sidecar fonts last. Explicit families and system emoji preference win; Noto sidecars are last resorts. Windows 7 uses Noto Color before monochrome symbols when no system color emoji font exists. -
Renderer. Done 2026-11-06. Win32 window, D3D11 backend with the feature-level chain and WARP fallback, and the frame builder. One instanced draw per pass, verified with WARP offscreen checks on the Windows 7 and Windows 10 VMs (seam 7).
-
ConPTY Backend and input. Done 2026-11-06.
CreatePseudoConsolebehind the Backend interface (with optional bundledconpty.dllandOpenConsole.exe), key and mouse encoding through libghostty-vt (seam 4). First interactive terminal, on Windows 10. -
Inspector. Done 2026-11-07 (extended 2026-11-08). A native Win32 window showing screen and cursor state, Backend details, modes, keyboard and terminal I/O logs, cell inspection (codepoints, colors, font choice), and Surface info.
-
Scraper. Done 2026-11-11 (diff oracle 2026-11-10). Our own implementation from Microsoft's Console API documentation: reads the hidden console in clamped chunks with
ReadConsoleOutputWandGetConsoleScreenBufferInfoEx, polls adaptively, diffs line by line, and emits VT with full attributes. The diff is a pure function tested on Linux with libghostty-vt as the oracle (seam 2). -
Hook. Done 2026-11-11 (wired into the Windows 7 Backend 2026-11-15). A
no_std, kernel32-only x64 DLL (v7-hook.dll) that intercepts console writes and mode calls via IAT patching, forwards raw VT bytes through a bounded ring, propagates throughCreateProcess, and falls back to the Scraper for 32-bit (WOW64) or unhooked children. Validated on the Windows 7 and Windows 10 VMs (seam 3). -
Packaging and first release. Done 2026-11-07 (Windows 7 Backend joined 2026-11-15). Ghostty-style
key = valueconfig, selection and clipboard, wheel scrollback, thefontssidecar folder, native Windows packaging (Voyager7-Setup.exe, portable ZIP,standalone-min), and the budgets in guides/testing.md.
Beyond the initial roadmap
- Done: tabs with a File Pilot-style GPU strip (native Windows 10 caption host and
Windows 7 glass chrome); Ghostty configuration superset and CLI
+actionsuperset (ADR 0009, ADR 0010); ☰ app menu, Command Palette, About, and native Settings editor; keybinding, scrolling, and per-tab font-size actions; manual titles (prompt_*_title,set_*_title); native tooltip toasts and OSC 9;4 progress (top bar, background tab marks, taskbar button, and ConEmu title percentages); Setup installer with optional font components plus portable ZIP andstandalone-minbuilds (standalone-fullremains pending); 80- and 132-column mode (DECCOLM); nostalgia pixel font mode (v7-nostalgia, with the ANAKRON sidecar or Windows' Terminal raster font); Symbols Nerd Font icons with Ghostty's constraints; per-tab Aero Peek taskbar thumbnails (v7-taskbar-tabs); Ghostty splits (new_split,goto_split,toggle_split_zoom,resize_split,equalize_splits), each split with its own Backend; search in the screen and scrollback (start_searchand its find bar);adjust_selection,copy_url_to_clipboardandmove_tab_to_new_window; Windows 7 SSH and TUI fixes; and the kitty graphics protocol (images, placeholders, animation); Ghostty's window keys (window-padding-*,window-width/-height,window-position-*,window-decoration,window-step-resize,window-new-tab-position,background-opacity,background-blur),confirm-close-surface,window-save-stateandundo. - Next: 100% Ghostty compatibility on Windows. The remaining config keys and keybind
actions, most visible first (bold and italic font families,
bold-is-bright,minimum-contrast,faint-opacity, startupmaximize/fullscreen, theadjust-*metrics,font-codepoint-map,wait-after-command, key tables andkey-remap, background images and custom shaders), are listed in ghostty-compatibility.md. - Deferred: Linux (
wgpu) and macOS ports. - Dropped: CRT/scanline shader.
Open questions
Does libghostty-vt, through Zig's standard library, stay within Windows 7 APIs?Not as shipped (it needs Win8 wait/wake andDiscardVirtualMemory); yes withpatches/. Verified 2026-11-04.Are unfrozen console reads safe on Windows 7 if every region is clamped to the buffer size?Yes, with clamped chunked reads (requests above ~52 KB fail cleanly withERROR_NOT_ENOUGH_MEMORY) and a resize barrier; validated on Windows 7 SP1 (2026-11-10, 2026-11-15).- Does the hook DLL coexist with common antivirus on a stock Windows 7 SP1 machine?
- Do WSL tabs work end to end? Not verified yet: on the test VM, WSL 2 fails to start under
nested virtualization and the WSL 1 Ubuntu never finished its first-run setup. Still to
check inside a real distribution: the Ubuntu colour scheme and icon from its Windows
Terminal fragment, starting in a
\\wsl.localhost\or Linux folder (wsl.exe --cd), theWSLENVvariables (COLORTERM,TERM_PROGRAM), and dropped paths becoming/mnt/c/….
Architecture
The core problem
A terminal has three parts:
- a renderer that draws the screen,
- a VT engine that turns bytes like
ESC[31minto screen state, and - a source of that byte stream.
On Unix the kernel pty supplies part 3 for free. On Windows, native programs such as cmd.exe
and PowerShell do not write bytes. They call the Console API (SetConsoleCursorPosition,
WriteConsoleOutput, ReadConsoleInput) against a cell grid inside conhost.exe. Something has
to translate grid activity into bytes and keystrokes into console input events.
On Windows 10 1809 and later, ConPTY is that Backend. Windows 7 has no ConPTY and cannot
get one: ConPTY depends on the condrv.sys driver and on kernelbase routing that Windows 7 lacks.
Voyager7 therefore supplies its own Backends. libghostty-vt sits downstream of the Backend and
cannot replace it.
Overview
child (cmd, pwsh, tools)
│ Console API calls, WriteFile/WriteConsole bytes
▼
[Hook, in the child] ── raw VT bytes ─────────────┐
│ unhooked / unknown calls │
▼ │
hidden Win7 console ── Scraper (diff → VT) ───────┤
▼
libghostty-vt ──snapshot──▶ frame builder ──▶ D3D11 / WARP
▲ ▲
keystrokes ── encoded by libghostty-vt ─────────────┘ cosmic-text glyph atlas
→ KEY_EVENT records into hidden console / Hook
On Windows 10 1809+, ConPTY replaces the whole left side. Voyager7 loads it at runtime with
GetProcAddress("CreatePseudoConsole"), or uses a bundled conpty.dll and OpenConsole.exe.
| Layer | Choice | Decision |
|---|---|---|
| Application language | Rust, stable. Every crate shipped on Windows is no_std plus alloc. | ADR 0002, ADR 0004 |
| VT engine | libghostty-vt, built with Zig for a win7 target floor, linked as a static library through its C API | step 1 |
| Text Engine | cosmic-text on every platform, as a no_std crate; our own font discovery feeds it | ADR 0001 |
| Renderer | One portable frame builder and glyph atlas; Direct3D 11 at feature level 10_0+ with WARP fallback on Windows; wgpu on Linux and macOS later | ADR 0003 |
| Window and platform | Win32 directly, our own platform layer; no C runtime at all: our own entry point, heap allocator and memory routines | ADR 0004 |
| Backends on Windows 7 | The Hook (in-process, forwards VT bytes) with the Scraper underneath as a fallback | step 7, 8 |
| Backend on 1809+ | ConPTY | step 5 |
| Inspector | A native Win32 window showing live Surface, Backend, mode, input, I/O and cell diagnostics | step 6 |
| Memory | Allocate at initialization and reconfiguration only; every buffer capped | ADR 0005 |
Engineering notes
- Decisions: one short ADR per hard-to-reverse choice.
- Style: TigerStyle adapted for Voyager7, enforced by lints.
- Testing: the seams, the golden rules, and the budgets.
- Dependencies: the allowlist with a reason per crate.
- Terminal rendering gotchas: lessons from the COSMIC border, Powerline, and emoji fixes, with Windows 7 constraints and renderer acceptance checks.
- File Pilot: native rendering and performance observations.
- Reference checkouts: the local clones we read and what each is for.
Design decisions
| Decision | Reason |
|---|---|
| Do not backport ConPTY | It needs condrv.sys plus kernelbase routing. The driver is proprietary, and on Windows 7 the console client is hard-wired to ALPC. |
| Do not write a kernel driver | No Windows 7 process would ever call it. Intercepting ALPC means kernel hooking, and new Windows 7 x64 kernel drivers can no longer be signed in an acceptable way. |
| Do not depend on VxKex | VxKex lets unmodified Windows 10 binaries run on Windows 7. We control our own binary, so we target a Windows 7 floor and late-bind newer APIs. |
| Do not build on Cygwin | Cygwin's last Windows 7 release is 3.4.10, and native programs would still need a Backend. |
| x64 only, no 32-bit build | 32-bit builds hit upstream layout and overflow limits in libghostty-vt (an overflow in the snapshot decoder, and tests that assume 64-bit sizes). 32-bit Windows 7 is out of scope. Decided 2026-11-05. |
| Use in-process hooks with a scraper fallback | Hooking is the only Windows 7 design whose ceiling is not Windows 7's conhost. The scraper catches anything the hooks miss. |
| Rust, not Zig or C | Zig is pre-1.0 and breaks each release. Rust is stable, is where cosmic-text and wgpu live, and gives thread safety where the Backend, VT state and Renderer meet. Decided 2026-11-05. |
no_std on Windows, stable toolchain | Rust's std needs Windows 10; the Windows 7 targets are tier 3 and nightly-only. no_std plus alloc builds on stable for the ordinary gnu target and imports nothing we did not call. Spikes on 2026-11-05 proved both routes; see ADR 0004. |
| cosmic-text everywhere, about 1.4 MB | One Text Engine with one set of metrics on all platforms, Arabic handled well, our emoji fixes carried over, and color glyphs rasterized by swash where Windows 7's DirectWrite cannot. |
| D3D11 on Windows, wgpu elsewhere | wgpu has no D3D11 backend and D3D12 and Vulkan do not fit Windows 7 hardware. D3D11 with WARP covers old Intel GPUs, VMs and Remote Desktop. |
| Patches stay local | Windows 7 patches to Ghostty and Zig, and any C API additions we need, are carried in patches/ and not upstreamed. |
| Fonts ship as sidecar files | No font is embedded in the exe. A fonts folder beside it is loaded if present, and Setup offers each font group as an optional component (checked by default): Cascadia Mono (default family on Windows 7 and 10, monospace Arabic designed by Mohamad Dakak since release 2106.17, SIL OFL), Noto Color Emoji and Noto Emoji (SIL OFL, providing color emoji on Windows 7 and a final fallback for newer emoji), Symbols Nerd Font 3.4.0 (MIT, the symbols font Ghostty embeds), and ANAKRON 8x12 (SIL OFL 1.1, for v7-nostalgia). Without the folder, Voyager7 falls back to Consolas, installed fonts, and Windows' Terminal raster font for nostalgia. |
Architecture decision records
Each record states one decision, the reasons for it and its consequences. Start here for why Voyager7 is the way it is.
- 0001: cosmic-text is the Text Engine on every platform.
- 0002: the application is written in Rust.
- 0003: D3D11 on Windows, wgpu on Linux and macOS.
- 0004: crates shipped on Windows are
no_std. - 0005: allocate at initialization and reconfiguration only.
- 0006: reorder right-to-left text per row from the alpha.
- 0007: direction and alignment of right-to-left text per paragraph.
- 0008: alpha selection belongs to the visible snapshot.
- 0009: configuration is a superset of pinned Ghostty.
- 0010: the CLI is a one-way superset of pinned Ghostty.
- 0011: Windows packaging.
- 0012: optional Microsoft ConPTY sidecar.
- 0013: shell profiles.
- 0014: Voyager7 as Windows' default terminal application.
- 0015: the default terminal without console delegation (hook).
- 0016: themes, per-profile colours and
+list-themes. - 0017: kitty graphics protocol.
- 0018: "Open in Voyager7" in Explorer's context menu.
- 0019: Windows Terminal JSON fragments.
- 0020: per-monitor DPI awareness.
- 0021: quick terminal and global keybinds.
cosmic-text is the Text Engine on every platform
Status: accepted. Date: 2026-11-05.
Shaping and rasterization are not part of libghostty-vt, so Voyager7 needs its own Text Engine. We chose cosmic-text (rustybuzz shaping, swash rasterization) on every platform, including Windows 7, over DirectWrite on Windows with a second engine for Linux and macOS. The reasons: one engine means one set of metrics and one set of bugs across platforms; it already handles Arabic in a cell grid the way we want; our local emoji presentation and fallback fixes carry over; and swash rasterizes color glyphs itself, which DirectWrite on Windows 7 cannot do.
Consequences
- Rust is in the build. A spike on 2026-11-05 showed cosmic-text 0.19 builds as a
no_stdstatic library with a C ABI on stable Rust forx86_64-pc-windows-gnu, with no Windows API imports, so it is usable from any host language on Windows 7. - It costs about 1.4 MB of executable, mostly Unicode and shaping tables. That is accepted against the size goal in filepilot.md.
- Font discovery is not part of the
no_stdbuild. Voyager7 enumerates installed fonts itself and hands font bytes to the engine.
The application is written in Rust
Status: accepted. Date: 2026-11-05.
libghostty-vt is Zig and the first test harness is C, so the application language was open between Zig, C, and Rust. We chose Rust. Zig would have given one toolchain for the whole repo and a CRT-free Windows 7 binary with no extra work, but it is pre-1.0 and breaks on every release, which the owner considers too risky for a long-lived project. Rust is stable, is where cosmic-text and wgpu live natively, gives compile-time thread safety at the point where the Backend thread, the VT state and the Renderer meet, and is the language the owner is most productive in. C was ranked between the two and offered nothing Rust lacks for this project.
Consequences
- Windows 7 is a tier-3 Rust target when the standard library is used, so the standard-library policy is a separate decision (see the next ADR once settled).
- libghostty-vt is consumed only through its C API.
- The Hook, which is injected into child processes, must never pull a Rust runtime into those processes; it is built without the standard library.
D3D11 on Windows, wgpu on Linux and macOS
Status: accepted. Date: 2026-11-05.
The Renderer has one portable frame builder and glyph atlas and a small per-platform GPU backend. On Windows the backend is hand-written Direct3D 11, following Windows Terminal's AtlasEngine: try hardware feature levels 11_1 down to 10_0, then fall back to WARP, Microsoft's in-box software rasterizer. This runs on Windows 7 era Intel graphics, in VMs, and over Remote Desktop, none of which OpenGL or Vulkan cover on Windows 7. wgpu was rejected for Windows because it has no D3D11 backend and its D3D12 and Vulkan backends do not fit Windows 7. On Linux and macOS the backend is wgpu, which selects Vulkan, Metal or OpenGL itself.
Consequences
- Two short shader sources are kept in sync by hand: HLSL at shader model 4 for feature level 10_0, and WGSL for wgpu. naga's HLSL output targets newer shader models, so it is not used to generate the D3D11 shaders.
- Unlike Windows Terminal there is no Direct2D fallback; WARP covers the no-GPU case.
- A backend is: create device, upload atlas regions, upload the per-cell instance buffer, one instanced draw per pass, present. Anything larger belongs in the shared frame builder.
Crates shipped on Windows are no_std
Status: accepted. Date: 2026-11-05.
Rust's standard library has required Windows 10 since 1.78. The Windows 7 targets are
tier 3: no prebuilt standard library, a nightly compiler, and no upstream CI. A spike
on 2026-11-05 showed that route works today (a std program built with -Zbuild-std
for x86_64-win7-windows-gnu imports only kernel32, ntdll and msvcrt.dll), but it
would tie every build to a nightly that can break without notice. A second spike
showed that #![no_std] plus alloc builds on stable Rust for the ordinary
x86_64-pc-windows-gnu target and imports nothing we did not call ourselves.
We chose no_std: every crate that ships in the Windows binary, the Hook, and the
Scraper is #![no_std] with alloc, on stable Rust. The standard library is allowed
only in the Linux and macOS platform crates, in the wgpu backend, and under
cfg(test).
Consequences
- The Windows platform layer (threads, locks, channels, files, processes, timers) is
ours, written over
windows-sys. It is a few hundred lines and matches the File Pilot model we already chose. - Third-party crates on Windows must be
no_std. The ones we need are: cosmic-text, windows-sys, hashbrown. See dependencies.md. - Unit tests run natively on stable Linux with the standard library enabled under
cfg(test). - The nightly route stays documented in the spike notes as the escape hatch if a crate we cannot do without ever needs std on Windows.
Allocate at initialization and reconfiguration only
Status: accepted. Date: 2026-11-05.
TigerBeetle's TigerStyle allocates all memory statically at startup. A terminal cannot know its scrollback, font set, or image load at startup, but it can bound them. We adopted the adapted rule: memory is allocated at initialization and at explicit reconfiguration (resize, font or size change, config reload), never in the per-byte path of the Backend, the per-frame path of the Renderer, or the per-event path of input. Every buffer has a cap, from config or a compile-time constant: columns, rows, scrollback bytes, number of fonts, fallback chain length, VT bytes consumed per tick, glyph atlas size, image memory. Per-frame scratch comes from one arena that is reset each frame. libghostty-vt already follows this model with its page memory limit.
Consequences
- Steady-state allocation count is a measured gate: zero allocations per frame and per input batch once the Surface is running. The test suite counts them through the global allocator.
- Caps are visible in the config file with their defaults, so a user can trade memory for scrollback knowingly.
- Resize and font changes are allowed to be slower; they are where allocation lives.
Reorder right-to-left text per row from the alpha, the way COSMIC Terminal does
Status: superseded by 0007. Date: 2026-11-06.
Arabic is supported from day 0. Programs write Arabic in logical order. Terminals
that only place cells left to right (Alacritty, Ghostty, Windows Terminal, kitty)
show it reversed and, without shaping across cells, unjoined. The owner compared
Alacritty, COSMIC Terminal, Ghostty and GNOME Terminal on ls and bat with an
Arabic file name and contents: COSMIC's rendering was preferred. COSMIC gets there
by laying out each row through cosmic-text, which runs the Unicode Bidirectional
Algorithm and shapes the runs. Voyager7 already uses cosmic-text. There is no settled
standard for bidi in a monospace terminal; the "BiDi in Terminal Emulators"
recommendation, which GNOME's VTE implements, is the closest prior art, and Unicode
work on it continues.
Decision
- The VT grid stays in logical order. libghostty-vt is not changed and its cells, cursor and wrapping are logical.
- The Renderer resolves each row with UAX #9 at a left-to-right base level, reorders right-to-left runs into visual order as whole cells (wide cells move as units), shapes each run with joining across cells, and places each cluster at its visual cell. Rows with no strong right-to-left character skip this entirely.
- Each row keeps its logical-to-visual cell map. The cursor is drawn at the visual position of its logical cell; selection and mouse hit-testing map through the same table, so copying text yields logical order.
- Box drawing and other neutrals between left-to-right text keep their columns, so
tables like
bat's borders stay aligned. - A config switch turns reordering off for programs that do their own bidi. The escape sequences from the recommendation (letting a full-screen program switch a row or the screen to explicit mode) come after the alpha.
Consequences
- Cost is per dirty row with right-to-left content, cached until the row changes, so ordinary output pays only the "any strong RTL character?" scan.
- Tests: CPU reference goldens for an English line, an Arabic line and a mixed line (owner approved), plus property tests that the visual map is a permutation, that cursor and selection round-trip, and that left-to-right-only rows are untouched.
- Emoji: the owner considers Ghostty's emoji handling the reference (presentation, width and color); our emoji tests compare against that behavior.
Direction and alignment of right-to-left text per paragraph
Status: accepted. Date: 2026-11-06. Supersedes: 0006.
ADR 0006 reordered right-to-left runs per row at a fixed left-to-right base. That shows every Arabic sentence with its final punctuation on the wrong side and short Arabic rows at the left (build/a1, build/a2 reports). There is still no settled standard for bidi in monospace terminals; the "BiDi in Terminal Emulators" recommendation ties alignment to the paragraph base and leaves autodetection to the terminal. Every mainstream terminal defaults to fixed LTR; the owner asked for a compromise that keeps tables, file names and prompts where they are while Arabic prose reads correctly.
Approved by the owner on 2026-11-06.
Decision
- Unchanged from ADR 0006: the VT grid is logical; libghostty-vt is unchanged; right-to-left runs are reordered as whole cells with joining across cells; each row keeps a logical-to-visual map used by cursor, backgrounds, selection and hit testing; rows with no strong right-to-left character pay only a class scan; a config switch turns reordering off; the recommendation's escape sequences come later.
- A paragraph is a row plus the rows that continue it by soft wrap (Ghostty's
wrap flags). Its base direction is right-to-left only when it contains a strong
right-to-left letter and no strong left-to-right letter; box-drawing and block
characters (U+2500..U+259F) count as strong left-to-right so tables keep their
columns. Everything else is left-to-right. The setting
v7-bidi-base(auto,ltr,rtl) overrides the rule. - The alternate screen is always left-to-right per row: full-screen programs own their cell coordinates. Rows marked as a shell prompt by OSC 133 are left-to-right.
- Rows of a right-to-left paragraph are resolved with their erased cells, so they align to the right edge and the cursor sits where the next letter appears. Left-to-right rows stay left.
- Levels are resolved per row at the paragraph's base for the alpha; a row shaped across a soft wrap gets the neighbouring row's edge letter as joining context. Whole-paragraph level resolution is deferred until a case needs it.
Consequences
- Arabic prose, headings and numbered lists read correctly and sit at the right.
battables,File: مرحبا.txt,lsrows with any Latin, and prompts with any Latin render exactly as before (approved goldens unchanged). - Known wrong: Arabic prose containing a Latin word stays left-to-right; a prompt with no Latin jumps right when Arabic is typed; ASCII-drawn tables with only Arabic reverse; a paragraph whose head is above the viewport is classified from its visible rows.
- Cost: one combined class scan per dirty row, a per-row base byte in the cache key, and relayout of a wrap chain when its base changes. Left-to-right rows in left-to-right paragraphs are untouched.
- Tests: the approved goldens stay;
bidi-arabic-rtlmust equalbidi-arabictranslated; a multi-row UDHR excerpt golden; table-driven tests of the base rule; property tests at both bases; GPU equals CPU on the VMs.
Implementation notes
The configuration file is selected with --config PATH; its keys are v7-bidi = implicit | off and v7-bidi-base = auto | ltr | rtl. CLI --v7-bidi, --v7-bidi-base
override the file, and --no-bidi takes precedence. No general configuration
loader existed before this change.
The forced RTL table assertion in proposal step 2 was incorrect: strong-L borders preserve columns under the auto-selected LTR base, but UAX #9 can still reorder runs under a forced RTL base. The class wrapper is used without exceptions.
Joining context is excluded from level resolution and maps. A shaping-only ZWJ at a lam/alef wrap boundary prevents cross-row ligation while retaining forms. Equal-position glyphs have deterministic paint order so the approved Arabic image is exactly translated by 38 cells (456 pixels), with no raster changes. CPU page surfaces permit bounded heights up to 8192 pixels for the full UDHR. Window padding remains four pixels; the proposal's accepted last-row clipping tradeoff remains (about two pixels for the deepest marks).
Paragraph-wide levels (proposal step 9) remain deferred.
Block selection (2026-11-30, ADR 0009) is of logical columns. On a row this policy reorders, the highlighted cells sit where those columns are drawn and the copy is exactly them, in logical order.
Status: superseded. Date: 2026-11-06.
Superseded by ADR 0009.
Alpha selection belongs to the visible snapshot
Selection stores an inclusive logical cell range in the visible snapshot. Any Backend output, forwarded keyboard event, viewport scroll, or grid resize clears it. Pixel-only resizing preserves it. Tracking selections through reflow and history would require stable anchors plus content invalidation; clearing instead prevents copying text different from what the user selected. This deliberately also clears selection when output affects another row. Selection does not scroll automatically when a drag leaves the grid. Captured motion and releases clamp to the nearest grid cell so application button releases are never lost outside the client area; release outside ends the drag.
Hit testing uses the row's visual-to-logical map after subtracting the physical padding. Backgrounds are highlighted at each selected logical cell's visual position; copying walks logical cells, skips wide-cell spacers, joins soft wraps, keeps hard breaks as CRLF, and trims trailing spaces at hard breaks and the end. Double-click words are Unicode alphanumeric/underscore runs; triple-click lines span the visible soft-wrap chain. A paragraph beginning outside the viewport can only be selected through its visible rows.
Shift overrides application reporting for local selection. Ctrl+Shift+C copies; Ctrl+C copies and clears an existing selection and otherwise reaches the app. Ctrl+Shift+V (and the existing Shift+Insert) use the bounded Ghostty paste path. Right click copies and clears a selection, otherwise pastes. Clipboard conversion is bounded to 1 MiB UTF-8 for copying; the existing paste path retains its 16 KiB limit. Wheel steps scroll three rows, accumulating fractional Windows wheel ticks; alternate-screen scrolling sends arrows only when DEC mode 1007 is active.
Configuration is a superset of pinned Ghostty
Status: accepted. Date: 2026-11-06. Owner approved: yes.
Compatibility is one-way: Ghostty configuration files are accepted by Voyager7;
Voyager7 files need not load in Ghostty. Implemented equivalents use Ghostty's
names, values, meaning and defaults. Unknown keys warn; known keys without an
implementation produce one not supported yet diagnostic per key. Neither is a
fatal error. The factual inventory is generated from pinned Config.zig fields
and compatibility aliases by scripts/gen-ghostty-keys.py; no parser code is
copied. Regenerate when updating the vendor pin.
On Windows load %APPDATA%\Voyager7\config, then config.ghostty. Ghostty uses
$XDG_CONFIG_HOME/ghostty/config, then config.ghostty; Voyager7 deliberately
uses the Windows roaming application data directory and its own product name.
--config PATH selects an explicit file instead. Relative config-file paths
are relative to their containing file; CLI include paths use the working
directory. Includes are deferred until after the defining configuration, in
insertion order, with duplicate/cycle detection. Tilde-prefixed include paths
use %USERPROFILE% on Windows. ? suppresses missing-file
diagnostics. Empty values reset implemented scalar settings; repeatable entries
are preserved in order. Comments occupy whole lines, so #RRGGBB is a value.
CLI --key=value uses the same keys. The documented space-separated bidi CLI
forms are --v7-bidi VALUE and --v7-bidi-base VALUE. The developer override --no-bidi remains unchanged.
Like Ghostty, Voyager7 writes a commented template (Ghostty's
config-template, adapted: Voyager7's path, CLI, README and reload key) to
%APPDATA%\Voyager7\config at start-up when neither default file exists,
and Open configuration file and Settings' Apply start a missing file from it.
It sets nothing and is never written over an existing file
(v7_core::config_template, owner request 2026-11-29).
window-theme is implemented with Ghostty's values, default and auto rule
(dark unless the configured background's perceived luminance is above one
half) for Voyager7's own windows: Settings, the Inspector, About, the command
palette, menus, prompts, notices and title bars (v7_core::window_theme,
owner decision 2026-11-29: "it's the app UI theme, so reuse Ghostty's key").
system follows Windows' app mode (AppsUseLightTheme, live on
WM_SETTINGCHANGE "ImmersiveColorSet"; Windows 10 1809 and later, light
before). ghostty behaves as auto: Ghostty's terminal-coloured header bar
is Linux-only, and the Windows 10 tab strip already takes the terminal
colours; under light or dark a strip whose terminal background has the
other brightness takes neutral title-bar colours. Dark is drawn by Voyager7
on every Windows version (custom-drawn buttons, check boxes and headers,
painted drop-down and spin faces, field frames and its own scroll bars),
because Windows 7 has no dark control theme; Windows 10 1809+ adds dark DWM
title bars and dark native menus. The native Windows 7 caption is unchanged.
High Contrast overrides the theme. Settings offers three of the values
(Automatic, Windows theme, Dark, Light; owner 2026-11-29); all five parse,
and ghostty shows as Automatic.
Diagnostics go to the existing stderr/debug output. voyager7 +show-config PATH
writes the loaded entries and diagnostics into a reviewable UTF-8 file and exits.
This alpha report is an input replay, not a full dump of effective defaults.
Startup limits are 128 includes, 1 MiB per file and 4096 entries/diagnostics.
Every Voyager7-only configuration key must start with v7-, reserving Ghostty's
key namespace for Ghostty semantics. The generated Ghostty inventory must not
contain any v7- keys; tests enforce both rules against the implemented inventory.
CLI config forms use the same names. No unprefixed legacy aliases are accepted:
bidi, bidi-base and conpty are unknown keys under the normal warning policy.
Voyager7 extensions are v7-bidi = implicit|off (default implicit),
v7-bidi-base = auto|ltr|rtl (default auto), per ADR 0007, and
v7-conpty = auto|bundled|system (default auto), per ADR 0012. Future extensions
include v7-legacy-default-colors = true|false (default true), which rewrites
only the adjacent separate SGR 37 then SGR 40 pair for the active bundled
provider. Empty resets to true; system fallback preserves bytes. Extensions
must use descriptive kebab-case names after v7- and document their defaults
and interaction with Ghostty equivalents. If Ghostty later adds an equivalent
key, accept Ghostty's key with Ghostty's semantics and keep ours as an alias.
A Ghostty key with different semantics must retain those semantics independently
of the Voyager7 extension.
v7-win7-vt = true|false defaults to true and resets to true on an empty
value. It interprets escape sequences from hooked Windows 7 console writes
without altering the application's reported console mode. False is
scraper-only: the hook never takes VT ownership, so a request to enable VT
output reaches Win7 conhost and fails there as it does natively, and the
scraper shows native cells. The hook keeps its input, resize, title and
directory duties. Reload applies the policy to new tabs. ConPTY and the
Windows 10 scraper are unaffected. See the
Windows 7 backend notes.
v7-nostalgia = true|false defaults to false and resets to false on an empty
value. True draws the terminal with a bitmap font on an integer pixel grid, for
the look of the classic Windows console (owner decision 2026-11-22; it replaces
v7-font-antialias, the thresholded-outline mode, which is removed with no
alias). Ghostty has no equivalent key: freetype-load-flags = monochrome only
thresholds outlines, the look the owner rejected, so it stays unsupported.
v7-nostalgia-font = anakron|terminal defaults to anakron and resets to it
on an empty value. anakron is ANAKRON 8x12 (SIL OFL 1.1, molarmanful/ANAKRON
at 6308ba7), packed from the pinned BDF by cargo xtask anakron into
crates/v7-text/data/ (8,610 bytes compressed). Like every other font it is a
sidecar, not compiled in (owner decision 2026-11-22, the "Fonts ship as sidecar
files" rule): fonts/anakron-8x12.v7bf.z with fonts/ANAKRON-OFL.txt, the
optional "Nostalgia pixel font (ANAKRON)" setup component (category 5, checked
by default), carried by the ZIP and not by standalone-min, and named in NOTICE.
It is read only when nostalgia turns on. terminal reads
the system "Terminal" raster font through GDI at start-up (face, raster type,
OEM charset, fixed pitch and exact 8x12 metrics are verified, so a silent
substitution is rejected). If the requested font is unavailable (the ANAKRON
file missing or corrupt, or no exact Terminal strike) the other one draws and
Voyager7 says so once in the debug log and in the Inspector; with neither,
nostalgia stays off (v7_text::nostalgia::choose).
The cell is the font's 8x12 times a scale step k = round(font-size / 12 * DPI / 96) (at least 1), a pure function of font size and DPI, so font-size actions
step it. Nothing is resampled by a fraction: bitmap glyphs, sprites and
fallback glyphs are drawn on the 8x12 grid and every pixel becomes a kxk
block. Characters the bitmap font lacks are shaped as usual (bidi, Arabic
joining and cell-fit stretching are unchanged) at the size where the fallback
face's ascent plus descent spans the 12-pixel cell, thresholded on or off
(alias::alias_mask), widened to the bitmap font's stem weight, and enlarged
by k. Joining scripts keep device resolution from k = 2, where they read
much better; at k = 1 they are not widened, which would fill the counters of
letters like meem at about 12 pixels. Colour emoji are unchanged. Bold and italic use the same bitmap
glyphs. Underline, strikethrough and the bar/underline cursor are whole font
pixels thick.
Box drawing, blocks, shades and Powerline: when the bitmap font has the whole
sprite range (ANAKRON has all 164), its own glyphs draw them. They join
seamlessly and look more designed than the sprites at 8x12 (staggered 25%/75%
shades as on VGA, distinct dash patterns, more open double lines); see the
comparison sheet in the nostalgia goldens test. A strike that lacks part of the
range (the Terminal font has only the CP437 subset) leaves the whole range to
Voyager7's sprites, drawn on the 8x12 base grid and enlarged, so lines from two
designs never meet. Window chrome (tab strip, caption) is unchanged. A colour
preset and a CRT shader are not part of it (owner decision). On 2026-11-27 the owner
approved the 1x/2x/3x reference images (tests/golden/nostalgia-mixed-x*.png),
kept Arabic at 1x on the bitmap grid, chose no 8514oem 10x20 strike for
125-150% scale, and kept the sprites for the whole range with the Terminal font.
Ghostty's app-notifications (clipboard-copy, config-reload, its
packed-struct syntax) and progress-style are implemented with Ghostty's
semantics. Two extensions refine progress-style and are off whenever it is
false: v7-taskbar-progress = true|false mirrors progress on the taskbar
button (ITaskbarList3, the Windows equivalent of a dock badge Ghostty lacks
on Linux), and v7-title-progress = true|false reads ConEmu's title
percentage, accepted only as a [N%] or {N%} (N from 0 to 100) at the start
or end of the title, set apart from the rest by whitespace; an OSC 9;4 report wins over it.
Both default to true and reset to true on an empty value.
v7-taskbar-tabs = true|false (default true, empty resets to true) gives each
tab its own taskbar thumbnail (ITaskbarList3::RegisterTab proxies, the
Windows counterpart of Ghostty's macOS native tabs in the Window menu) once a
window has two or more tabs; a window with one tab keeps Windows' own
whole-window thumbnail, peek and button progress. Background tabs' thumbnails
draw the hollow cursor of an unfocused window. It needs desktop composition
and changes nothing on the Windows 7 Basic and Classic themes. A Ghostty
copy-on-select = true targets the selection clipboard, which Windows lacks;
Voyager7 copies to the system clipboard there without the copy toast, which
clipboard and both show as in Ghostty.
notify-on-command-finish, notify-on-command-finish-action,
notify-on-command-finish-after and bell-features follow Ghostty's GTK
surface (commandFinished, setBellRinging) with its values, defaults and
text. Windows has no notification daemon, so a notification is a
notification-area balloon (Windows 7) that Windows 10 and 11 show as a toast.
Voyager7 tracks them as GTK's desktop_notifications.zig does
(v7_core::desktop_notifications): up to 64 per surface, the same text
replacing its earlier entry, a full surface dropping its first, three seconds
for one sent while focused, and all of a surface's withdrawn, including their
Action Center toasts, when it gets the focus or closes. attention is
FlashWindowEx. system is MessageBeep (Windows' "Default Beep", as GTK's
gdk_surface_beep is the desktop's alert sound). audio plays
bell-audio-path at bell-audio-volume (clamped to 0..1) through MCI's
DirectShow device, which takes WAV, MP3 and WMA where GTK's media stream
takes whatever GStreamer can play; the path resolves as Ghostty's Path
(relative to its config file, ~/, optional ?). border is accepted but
not acted on yet. Before Windows 10 the native caption and taskbar draw a box
for 🔔 and 🔍, so the title marks stay in the tab strip only there. Differences from Ghostty: a command whose shell sent no
exit code (cmd) gets Ghostty's "Command Finished" text instead of "exited with
code 0". An icon shows one balloon at a time. Windows 10 drops the toast of
a balloon cut short by the next one, so there each notification waits for the
previous pop-up to time out (NIN_BALLOONTIMEOUT, about six seconds) and every
one reaches the Action Center. Windows 7 has no Action Center: a new
notification replaces the balloon on screen while the others stay tracked
under the icon, whose tooltip and click are the newest one's. Windows doesn't
say which toast was clicked: Voyager7 takes the newest notification whose
toast has left the Action Center, else the balloon's. And toasts can only be
found by their text, so two windows showing the same text at once can remove
each other's toast.
Splits use Ghostty's keys with Ghostty's semantics and defaults:
unfocused-split-opacity (0.7, clamped to 0.15..1), unfocused-split-fill
(unset: the background), split-divider-color, focus-follows-mouse
(false), split-inherit-working-directory (true) and split-preserve-zoom
(no-navigation), implemented in v7_core::splits. Ghostty leaves an unset
split-divider-color to the platform: GTK draws its window chrome colour,
macOS darkens the background (8 % when light, 40 % when dark), which all but
vanishes on a dark background. Windows has no such chrome colour, so Voyager7
mixes a fifth of the foreground into the background: a clear one-pixel line,
lighter than a dark background and darker than a light one (the owner asked
on 2026-11-27 for a divider at least as visible as Ghostty's on Linux).
resize-overlay (after-first), resize-overlay-position (center) and
resize-overlay-duration (750ms, Ghostty's duration syntax) are implemented
in v7_core::resize_overlay: a resized surface shows its grid size,
"80 x 24", in a small label for that long. after-first skips a surface's
first size and always shows it too, as Ghostty documents (its GTK and macOS
front ends also wait a moment after creation before either shows anything).
As a Windows addition to Ghostty's Linux defaults, alt+shift+arrow_* are
also bound to resize_split:<direction>,10 (performable:), Windows
Terminal's keys: Windows 10 and later reserve Win+Ctrl+arrows, so Ghostty's
super+ctrl+shift+arrow_*, which stay bound, may never arrive. The terminal
context menu is Ghostty's GTK context_menu_model (Copy, Paste; Clear,
Reset; Split, Tab and Window submenus; Config), followed by Voyager7's Command
Palette and Application Menu…, with Ghostty's "Notify on Next Command Finish".
Search
Ghostty's search actions are implemented with its semantics: start_search
(default ctrl+shift+f), end_search (default escape), search_selection,
navigate_search:next|previous and search:TEXT, on libghostty-vt's own search
(search.h), so matching is Ghostty's: byte-exact except ASCII letters, across
soft wraps, over scrollback and both screens. search-foreground,
search-background, search-selected-foreground and
search-selected-background take Ghostty's defaults and cell-foreground /
cell-background. Keybinds accept Ghostty's performable: prefix; Ghostty's
search defaults use it, so Escape reaches the program unless a search or the
find bar is open. The find bar follows Ghostty's GTK overlay (top right, "n/m",
Enter/Shift+Enter, Esc). Deliberate differences: end_search also acts while
the bar is open without a needle (Ghostty passes that Escape on as well); F3
navigates like Enter (Windows convention); the bar cannot be dragged to another
corner; search:TEXT shows its text in an open bar. Each split has its own
search, as each Ghostty surface does; Voyager7 has one find bar per window,
which shows and edits the focused split's search.
Selection and clipboard policy
This decision supersedes ADR 0008's defaults and clearing policy. Selection is
anchored to content through terminal mutations; typing data or starting IME
composition clears it by default, output alone does not. Pruned content must
never silently select replacement text. Reset and screen switches clear selection, following the VT engine. Erasing cells in place preserves row anchors and
copy returns their current contents (empty after a full erase). Pruning either
endpoint invalidates the whole selection, including copy. Selection clear on copy defaults false. Copy uses Ghostty's trim
policy and word boundaries (including U+0000). Note that the pinned default
boundary set contains :, so a complete Windows drive path is not a single
word under that exact default; the requested whole-drive-path example conflicts
with the default and needs an owner decision.
Block (rectangular) selection is libghostty-vt's rectangle selection. A drag
with Alt (Windows Terminal, ConEmu, Ghostty on macOS) or Ctrl+Alt (Ghostty
on Linux and Windows) held starts one; with mouse reporting on, Shift must
be held too, as in Ghostty. Copy is Ghostty's formatter: one line per row,
clipboard-trim-trailing-spaces applied, a wide character on either edge
copied whole, and the highlight follows it (a wide cell is highlighted when
either of its cells is in the block). The block is of logical columns, the
grid's own order, as the BiDi recommendation's logical selection and
libghostty-vt's pins are. Its corners are the cells under the pointer by the
same hit test as a stream selection, so on a row that bidi reorders the
highlighted cells sit where those logical columns are drawn and may not form
a rectangle; the copy is exactly the highlighted cells, in logical order.
Rows that are left to right (tables, the alternate screen, prompts) are
unaffected.
Mark mode (v7_toggle_mark_mode, default Ctrl+Shift+M, which pinned
Ghostty does not bind) is Windows Terminal's keyboard selection. Ghostty has
adjust_selection but no way to start a selection from the keyboard. It
starts with one cell at the cursor, at the viewport's first cell when the
cursor is scrolled out of view, or keeps an existing selection; a box inside
the selection's end shows the mark. While marking, its keys come before key
bindings: arrows, Home/End, PgUp/PgDn move the mark (arrows by one cell);
with Shift they extend through adjust_selection (Ghostty's semantics), with
Ctrl+Left/Right by word (selection-word-chars), Ctrl+Home/End to the
screen's corners, and with Alt as a block. Enter copies (mixed), Esc
cancels; both leave mark mode and clear the selection, as conhost and Windows
Terminal do. Other bindings keep working; a key that reaches the program, a
mouse selection or a cleared selection ends mark mode.
copy_to_clipboard takes Ghostty's plain, vt, html and mixed
(default). mixed puts CF_HTML and RTF beside CF_UNICODETEXT; both are
built from Ghostty's vt selection format with the terminal's current
palette (the C API's HTML emits CSS palette variables, which word processors
ignore), use <span>s, <br> and non-breaking spaces rather than
white-space, and name the configured font, then Cascadia Mono and Consolas.
As in Ghostty's mixed, default foreground and background are left to the
document; html keeps them and puts the markup on the clipboard as text as
well as CF_HTML, since Windows has no HTML-only paste into plain text.
Selections whose vt text exceeds 1 MiB are copied as plain text only.
v7-clipboard-paste-trim = true|false (default true, empty resets) is
Windows Terminal's trimPaste and ConEmu's isAutoTrimSingleLine; Ghostty
has no equivalent. Text that is one line followed only by whitespace holding
a line break is pasted as that line (its own trailing spaces kept). It applies
before paste protection, so such a line needs no confirmation, and in
bracketed paste mode too: the break would only be inserted there, but it is
never wanted.
Size cost of block selection, mark mode, formatted copy and the paste trim:
32,256 bytes (cargo xtask size, 5,312,000 on main 9eba872, 5,344,256 with
them).
Adopt Ghostty defaults for mouse reporting, shift capture, scroll multipliers,
copy-on-select, paste protection and application clipboard access. Windows has
no primary selection: primary has no effect, both uses the clipboard.
Discrete wheel deltas are multiples of 120, finer deltas use the precision
multiplier, with fractional movement accumulated. Unsafe paste requires a
Windows 7 compatible confirmation dialog unless protection is disabled or
bracketed-paste mode is considered safe. Ctrl+C always reaches the application;
Ctrl+Shift+C/Ctrl+Insert copy and Ctrl+Shift+V/Shift+Insert paste.
The deliberate default exception is right-click-action = copy-or-paste.
context-menu is accepted with a not-supported diagnostic and temporarily acts
as copy-or-paste. Other supported actions are copy, paste and ignore.
Implemented interaction defaults
| Key | Default |
|---|---|
selection-clear-on-typing | true |
selection-clear-on-copy | false |
selection-word-chars | Pinned Ghostty delimiter set described above, plus U+0000 |
mouse-scroll-multiplier | discrete:3,precision:1 |
mouse-shift-capture | false |
mouse-reporting | true |
copy-on-select | none |
clipboard-trim-trailing-spaces | true |
clipboard-paste-protection | true |
clipboard-paste-bracketed-safe | true |
clipboard-write | allow |
clipboard-read | ask |
clipboard-write-limit-bytes | 67108864 (OSC 5522 only; unlimited accepted) |
right-click-action | copy-or-paste (deliberate deviation) |
link-url | true (Ctrl+hover finds URLs) |
link-osc8 | true (Ctrl+hover finds OSC 8 hyperlinks) |
v7-clipboard-paste-trim | true (Voyager7 extension) |
Ctrl+click opens a link with Ghostty's Linux behaviour on Windows and Linux
builds (owner decision 2026-11-27): at once, any scheme, no confirmation and
no blocked list. Ghostty's xdg-open never runs a program and never reaches
another computer for a file: link, so on Windows, where ShellExecute
"open" does both, Voyager7 keeps that meaning by not opening local targets
Windows would run (executable file types, or a name without a type that is
not an existing folder) or files on another computer, and offers to copy them.
Ghostty's stricter macOS UntrustedURL policy (v7_core::link::untrusted)
is compiled only for macOS builds (and host tests).
The existing packaged font choice remains Cascadia Mono, then Consolas (README and ADR 0001). Font configuration keys remain accepted but unsupported in this migration; this does not change that existing application default.
Implementation status
The syntax/inventory/report foundation, bidi adapters, local interaction settings, tracked selection anchors and protected paste are implemented. Clipboard actions allocate explicitly per transaction, bounded by queried source/output sizes and checked allocation failure, replacing the former 1 MiB/16 KiB caps. This is an explicit allocation-policy exception for user clipboard transactions. Desktop acceptance is tracked in the status document. Application clipboard callbacks now support text/plain system clipboard reads and writes with consent policies. The C API does expose terminal-owned tracked selections, grid refs and selection formatting, so anchoring does not require a vendor patch. The 64 MiB upstream clipboard-write limit applies to Kitty OSC 5522, not OSC 52 (which has a separate escape-sequence limit); preserve that distinction in implementation.
Color configuration
background, foreground, repeatable palette = N=COLOR, cursor-color,
cursor-text, selection-foreground and selection-background are implemented.
The pinned Ghostty Config has background #282c34, foreground #ffffff;
all four cursor/selection options default unset. Cursor fill then follows the
terminal foreground, cursor text the terminal background, and selection uses
inverted window foreground/background. Explicit cell-foreground and
cell-background values follow each displayed cell, including inverse video.
An OSC 12 cursor override takes precedence over configuration.
Colors accept Ghostty's hex forms (RGB/RRGGBB, optional #; # also permits RRRGGGBBB/RRRRGGGGBBBB), X11 names, rgb: and rgbi: notation. Palette indices accept decimal and 0b/0o/0x prefixes. Repeated palette entries update individual indices; last wins for a repeated index. Empty values reset the corresponding scalar or whole palette. Invalid values warn and retain the last valid value. Includes and CLI overrides keep the existing deferred include order.
Foreground/background, palette and literal cursor defaults use public
libghostty-vt default-color options 11–14. OSC 10/11/4 queries, overrides and
110/111/104 resets therefore operate on configured defaults, rather than injected
SGR or OSC sequences. Selection and cursor-text/cell references are renderer
policy; there is no public VT option for them. +show-config --default reports
all 256 palette entries; effective reports merge palette entries by index.
+explain-config uses the credited pinned Ghostty documentation.
Palette 0–15: 1d1f21, cc6666, b5bd68, f0c674, 81a2be, b294bb, 8abeb7, c5c8c6,
666666, d54e53, b9ca4a, e7c547, 7aa6da, c397d8, 70c0b1, eaeaea. Indices 16–231
use the RGB cube with component levels 0,95,135,175,215,255; 232–255 use gray
8+10*(index-232). palette-generate defaults false upstream and stays unsupported,
as do theme, palette-harmonious, bold-color and the other color keys.
Sources (pin c7f68a7f48c6a5b357689eb8c2328bc2dab5d8ed): Config.zig, color.zig, renderer defaults. All parsing, configuration and rendering code is ours. Factual values and X11 names retain the MIT credit in licenses/Ghostty-MIT.txt.
Step 6 Part A update
Keybindings, transactional reload, live font configuration and the native system
menu are now wired into the application. See Part A
for the grammar, action/default table and live/restart inventory. The approved
Ctrl+, default opens v7_open_settings, now implemented by the native
Part B Settings editor.
Errors appear in a nonactivating native diagnostic window. As in Ghostty,
an invalid value, or a non-optional config-file (or --config file) that
cannot be read, never stops startup or a reload, whether it comes from the
main file, an include or the CLI: the key keeps its previous value and the
problem is listed in the "Configuration applied with warnings" notice when
the window opens. The Settings editor still refuses to save one, and
+validate-config still fails on one. Inspector toggle is
reserved as a bindable no-op until Part C. The former statement that all font
keys are unsupported is superseded for font-family/font-size/font-feature.
Window keys on Windows (2026-11-30)
Ghostty's window keys apply with Ghostty's values and defaults
(v7_core::window_config). Where Ghostty documents a key for one platform
only, Voyager7 maps it to the nearest Windows behaviour:
window-padding-x/-yare points scaled by the display DPI and floored, as in Ghostty, so the default 2 is 2 pixels at 100% (the fixed 4 physical pixels before had no recorded reason and did not scale).window-padding-balanceandwindow-padding-color(extend,extend-always) follow Ghostty'ssize.zigand renderer;extenddoes not know prompt rows. A reload applies new padding to open terminals too (Ghostty: new terminals only).window-position-x/-y(Ghostty: macOS only) place every new window that does not open under the pointer, kept on a monitor's work area, as arewindow-width/-heightwindows larger than the screen.window-decoration = noneopens a window without caption or border (WS_POPUP);clientandserverareauto.window-step-resize(Ghostty: macOS only) snapsWM_SIZINGto whole cells.background-opacitycomposes the client's alpha (the whole client is DWM frame);background-blurblurs behind on Windows 10 and later (accent policy) and on Windows 7 Aero, whose glass always blurs; without it Windows 7 uses an empty blur-behind region. Without desktop composition (Windows 7 Basic and Classic) the window stays opaque. In a see-through window split dividers show what is behind.confirm-close-surfaceasks unless every program a close ends has exited or sits at a shell prompt (OSC 133); without shell integration the process tree decides (a program that is not a shell, or a shell with a child). It never asks when Windows ends the session, as Ghostty does not at logout.window-save-state:defaultsaves when Windows ends the session (shut down, restart, sign out) and on a Restart Manager restart, the Windows counterpart of macOS saving a terminated app;alwaysalso saves on quit;neversaves nothing and deletes what was saved. The state is perclass, in%LOCALAPPDATA%\Voyager7\session\CLASS\, read once at the next plain start.v7-window-save-scrollbackadds each terminal's recent output, which Ghostty does not keep and Windows Terminal does.undo(Ghostty: macOS only) reopens the tabs or window closed last withinundo-timeout, their programs still running; it has no default key, as on Linux. Closing a split andredoare not undone.
Not applied, as they have no Windows counterpart or belong to other work:
window-vsync, window-colorspace (macOS), window-subtitle,
window-titlebar-background, window-titlebar-foreground (GTK), and
window-title-font-family (the tab strip and caption fonts are the window
chrome's).
The CLI is a one-way superset of pinned Ghostty
Status: accepted. Date: 2026-11-07. Owner approved: yes.
The rule in ADR 0009 applies to action invocations too: ghostty +action [options] is recognized as voyager7 +action [options]. Implemented behavior
uses upstream names and plain output conventions. Recognizing an action does
not claim its feature exists: unsupported actions and options return a nonzero
status with not supported yet in Voyager7. They never enter GUI startup.
-h and --help print per-action help and return zero even for pending actions.
--version, -h and --help also work globally. Value options use --key=value,
as in pinned Ghostty's parser. Unknown input is diagnosed, never panicked on.
scripts/gen-ghostty-cli.py extracts the factual action/option inventory from
src/cli/ghostty.zig and action Options structs (including manually parsed
explain-config flags). Regenerate after updating the vendor pin. It extracts
config and keybind documentation and X11 color names from that same pin, without
copying Zig parsing, dispatch or playback logic. Documentation and all 235 boo
frames are zlib compressed; decompression is bounded. See licenses/README.md
and the MIT notice next to the data.
| Action | State |
|---|---|
+version | Implemented; Ghostty's layout; --full adds Windows bug-report facts (below) |
+help | Implemented; our own Windows help for the program and every action |
+list-fonts | Implemented; grouped by family, sorted unless --family; family/style/bold/italic filters |
+list-keybinds | Implemented; today's four copy/paste keyboard bindings |
+list-themes | Implemented; Ghostty's preview and flags in any Windows console (ADR 0016) |
+list-colors | Implemented; generated pinned X11 names, plain output |
+list-actions | Implemented; generated from the keybind action table, Ghostty order, --docs |
+ssh | Implemented; Ghostty's flags and flow, xterm-ghostty terminfo (below) |
+ssh-cache | Implemented; Ghostty's file format, queries, messages and exit codes |
+edit-config | Implemented; create APPDATA/Voyager7/config, VISUAL, EDITOR or Notepad |
+show-config | Implemented; default, changes-only, docs, no-pager |
+explain-config | Implemented; positional, option, keybind, no-pager; own v7-bidi docs |
+validate-config | Implemented; config-file or default paths, includes, local value checks |
+show-face | Implemented; cp/string, style, presentation, real discovery candidates and cmap |
+crash-report | Implemented; lists local reports (below); nothing is ever sent |
+boo | Implemented temporarily at the owner's explicit request; remove later |
+new-window | Implemented; class-selected local IPC, detached startup fallback, --shell-integration |
+new-tab | Implemented; --surface-id/VOYAGER7_SURFACE_ID or focused window, detached startup fallback |
+toggle-quick-terminal | Implemented; class-selected local IPC, detached startup fallback (ADR 0021) |
+show-licenses | Voyager7 only: prints the LICENSE and NOTICE texts built into the executable (2026-12-01) |
show-config describes Voyager7's implemented effective defaults, not imagined
support for every Ghostty setting. Unsupported configured keys remain visible
with diagnostics. --default skips files, overrides changes-only, and prints
all implemented defaults. Changes-only defaults true, as upstream. Scalar entries
use the last value; empty resets restore defaults. --docs comments are upstream
text, which can describe capabilities Voyager7 has not yet implemented.
Validation returns nonzero for unknown/unsupported keys, invalid local values,
and unreadable includes; unsupported Ghostty values cannot be fully validated.
--no-pager and --plain are accepted: output is always plain and never paged.
list-keybinds --docs is accepted and currently has no effect, matching the pin.
The old --list-fonts REPORT and +show-config REPORT extensions remain.
CLI output attaches to the parent console, never allocates a console, preserves
inherited file/pipe handles, uses Unicode console writes and UTF-8 byte writes
for redirection, and never reads stdin or injects keystrokes into a parent prompt.
The executable retains its GUI subsystem. Interactive cmd may display its next
prompt before a GUI program finishes; start /wait is the Windows mechanism
when synchronous prompt ordering is required. Scripts and pipelines wait normally.
This OS limitation cannot be fixed by attaching after process startup.
+version keeps upstream's shape (src/cli/version.zig): Voyager7 <version>, a blank line, then titled blocks of - label : value rows.
Voyager7 adds a commit row to Version and replaces the GTK rows with Windows
ones. Plain +version prints Version and Build Config (Rust, build mode, Text
Engine, a device-only D3D11 probe for hardware/WARP, libghostty-vt's own
ghostty_build_info with the Ghostty pin and Zig version), as upstream does.
+version --full, a Voyager7 option, adds Windows (product, release and
build.UBR, edition, architecture, composition, theme, DPI), Backend (the one a
new Surface would get, v7-conpty, the default terminal) and Install
(installer registration or package flavour, recorded Choices against the
files present, config files); those facts are gathered only for --full.
Every row, the Version block included, pads its label to the longest label in
the printed report, so all colons share one column (upstream hand-pads only
its later blocks). Any other argument is an error. It reads only, spawns
nothing at run time (build facts come from build scripts), and prints paths
relative to %LOCALAPPDATA%, %APPDATA% or %USERPROFILE% with any other
\Users\<name> masked. It emits no OSC 8 link, unlike upstream on a TTY,
because Windows 7 conhost would print it raw. The palette's
v7_copy_version_info copies the --full text. The issue template asks for
+version --full.
The temporary animation player has one dispatch arm and its own module and data; no global playback state. A redirected stream gets one complete cycle without delays or escape sequences. A console loops at about 30 fps until Escape or Ctrl+C. It needs a console large enough for the 100 by 41 art. Platform code owns safe console cursor/input wrappers; Rust playback is entirely our own.
cargo xtask vm-cli builds, checks Win7 imports, then runs real cmd.exe scripts
through win7vm.py on both guests, using the VM lock internally. It checks help
for every action, implemented invocations, unknown actions/options, validation
errors, redirection, pipes, and PowerShell redirection. See the status document
for measured executable size and acceptance results.
Step 6 Part A replaced the fixed copy/paste inventories: +list-keybinds reports
the application's effective table (--default skips files). See the
Part A inventory.
+list-actions (2026-11-29) prints the names a keybinding accepts, without
parameters, as Ghostty does: v7_core::action_list derives them from
Action::ALL and the free-text actions, puts Ghostty's in Binding.zig order
(names generated into ghostty_actions.rs by scripts/gen-ghostty-cli.py),
then Voyager7's v7_ actions. Ghostty actions Voyager7 does not implement are
left out of the list and named at the end of +list-actions --help, computed
from the same table. --docs writes Ghostty's plain-text layout with Ghostty's
documentation (our own for v7_ actions). A test fails when an action parses
but is not listed, or the reverse.
+new-window and +new-tab (2026-11-29) take Ghostty's per-surface
--shell-integration=<mode>; it also travels with a bare startup that joins a
running instance. Every program a surface starts sees VOYAGER7_SURFACE_ID
(Ghostty's GHOSTTY_SURFACE_ID, 0x%016x; Voyager7 does not set the Ghostty
name, as it hides other terminals' brands). +new-tab --surface-id=<id>, or
that variable, opens the tab in the window holding that surface; 0 or an
unknown id is the focused window, as upstream. +new-window --surface-id is an
error: upstream's +new-window has no such option.
Crash reports
Ghostty writes Sentry envelopes, to send later, and its +crash-report lists
them. Voyager7 keeps the listing but never sends anything anywhere: no network
code, no upload option, now or later. A report is two local files in
%LOCALAPPDATA%\Voyager7\crash: <id>.txt (build, process and role, the
exception code and address, a backtrace unwound from the crashed context,
then +version --full from a child process) and <id>.dmp
(a minidump: normal plus indirectly referenced memory, thread info and
unloaded modules). The id is YYYYMMDD-HHMMSS-PID, local time. The 10 newest
reports are kept. +crash-report prints <id> (<local date>, <age> ago),
newest first, and Ghostty's No crash reports! 👻 only to a console.
v7_platform_windows::crash::install runs first in every voyager7.exe role
(window, CLI action, Win7 console agent, default-terminal watcher) and in
voyager7.com. Injected DLLs never install it. The panic handler and an
unhandled-exception filter hand the crash to a new thread with a 1 MiB stack
(the crashing thread may have overflowed its own) and wait for it; if that
thread cannot start within 3 s the crashing thread writes the report itself.
The crash path does not allocate. A panic's message and source location are
not read: that keeps every panic site's strings in the executable (about
230 KB); the backtrace's first frames name the site instead. dbghelp.dll is loaded by its full System32
path only when a dump is written, so startup pays nothing and no DLL can be
planted. A crash in the report writer ends that thread; earlier stages stay
written. Windows' own handling (WER) still runs after the filter. On 64-bit
Windows 7, exceptions in window procedures called back from the kernel were
ignored; install turns that filter off (SetProcessUserModeExceptionPolicy)
so they crash and are reported. Fail-fast exits (heap corruption,
__fastfail) bypass unhandled-exception filters and leave no report.
Crashes are tested only with the crash-test Cargo feature, which packages
never enable: V7_CRASH_TEST=panic|access-violation|stack-overflow[@paint]
and V7_CRASH_TEST_MATCH=<command line text>. Ghostty's crash keybind
action is not implemented, so a normal user cannot crash Voyager7 on purpose
or by accident.
+ssh and +ssh-cache
+ssh follows pinned src/cli/ssh.zig: --forward-env, --terminfo,
--cache, --ssh and --verbose come first, and -- or the first other
argument starts ssh's arguments, which pass through unchanged. It sends
COLORTERM, TERM_PROGRAM and TERM_PROGRAM_VERSION with SendEnv, runs
ssh -G to name the destination (user@host, :port when not 22), and on
the first connection pipes the terminfo entry into
command -v tic … && mkdir -p ~/.terminfo && tic -x - on the remote host. It
sets TERM in ssh's own environment, not with SetEnv. Messages, warnings
and exit statuses are upstream's (2 for usage errors, 1 when ssh cannot start,
otherwise ssh's status), and a destination is cached only after the session
exits 0. The flow lives in v7_core::ssh behind a Host trait and the cache
rules in v7_core::ssh_cache behind a Store trait, so both are tested on
Linux against upstream's own test cases.
TERM is xterm-ghostty, falling back to xterm-256color. Voyager7's VT is
libghostty-vt: the parser, modes, replies (DA, XTVERSION, DECRQM, kitty
keyboard and graphics) and capabilities that Ghostty's terminfo entry
describes are the same code, so that entry is the accurate description of what
remote programs talk to. A Voyager7-named entry would describe the same thing
under a name no program, distribution or ncurses release knows. The entry is
not copied or retyped: scripts/gen-ghostty-cli.py runs the pinned
src/terminfo/ghostty.zig under Zig (scripts/ghostty-terminfo.zig), so
data/xterm-ghostty.z is byte for byte what Ghostty installs and the cache
records Ghostty's content-derived version (cli/terminfo.rs). A host Ghostty
set up therefore counts as set up here, and re-pinning Ghostty changes the
version, which reinstalls on the next connection, as upstream does. Where the
install cannot happen (--terminfo=false, no tic, no write access), TERM is
xterm-256color, which every host knows. Identity stays separate from
capability: TERM_PROGRAM=Voyager7 says which terminal this is. One
capability depends on the Windows path rather than the VT, and programs probe
it rather than assume it: the kitty keyboard protocol (fullkbd) is not
offered on the Windows 7 hook or inbox ConPTY, where encoded keys cannot reach
the program, so they keep legacy keys there.
The cache is %LOCALAPPDATA%\Voyager7\ssh_cache (Ghostty's
$XDG_STATE_HOME/ghostty/ssh_cache), one destination|unix seconds|version
line each, newest line winning, at most 512 KiB, replaced atomically. Keys,
[ipv6]:port brackets, queries (user@host exact, bare host any user and
port, host:port any user), the listing (2026-05-05T22:49:33Z (2w ago)),
--prune durations and every message match src/cli/ssh_cache.zig. Windows
has no file locks here, as upstream on Windows.
Windows-specific behaviour:
voyager7.exeis a GUI program, so+sshjoins its parent's console (keeping redirected handles) before starting ssh, and outlives Ctrl+C so it can report ssh's status;voyager7.comwaits as for every action. Without a parent console, children get no console window.sshis looked up asssh,ssh.comorssh.exein each PATH folder only, not in the current folder or Voyager7's own;--ssh=<path>takes a path, with or without.exe. Windows 10'sSystem32\OpenSSH, Git for Windows'usr\bin\ssh.exeand a portable Win32-OpenSSH on Windows 7 all work, and arguments are quoted with the CRT rules that all three parse.- The install connection uses
-o ControlMaster=no -o ControlPath=noneinstead of upstream's private short-lived master, which Win32-OpenSSH cannot create. Both keep the install out of a multiplexed connection from the user's ssh config.ssh -Goutput may end lines in CRLF. - The install connection gets its own arguments, not all of the session's
(
v7_core::ssh::install_args): the destination plus only the options that say how to reach and log in to the host (-p -l -i -F -o -J -b -c -m -B -E -I -Pand-1 -2 -4 -6 -a -C -k -K -q -v -y), led by-T -o RemoteCommand=none -o ClearAllForwardings=yes. Upstream appends its script to every argument, soghostty +ssh -tt hostgivestica pty whose input never ends and waits forever,-L/-Rforwards are opened twice, and a remote command (+ssh host tmux attach) receives the script as arguments. -hbefore ssh's arguments prints help, as for every action above; upstream would runssh -h. As upstream, a second+wordanywhere is a second action and an error.
Shell integration: Ghostty's ssh-env and ssh-terminfo features (off by
default) make the shell's ssh run ghostty +ssh with --forward-env=false
or --terminfo=false for a missing feature. Voyager7 does the same in its
PowerShell hook (Windows PowerShell 2.0 and later, pwsh), calling the
voyager7.com beside the running voyager7.exe so PowerShell waits for it.
cmd's integration is only its PROMPT; it has no functions and the command
line is never rewritten, so cmd users run voyager7 +ssh or a doskey macro.
Windows packaging
Status: accepted. Date: 2026-11-07. Owner approved: yes.
The alpha has a native installer with per-user and all-users scopes and a portable ZIP. The three intended executable deliverables are:
Voyager7-Setup.exe: our Rust, CRT-free native Win32 installer with a compressed payload appended after the PE image. No external installer framework is used.voyager7-<version>-win64-standalone-min.exe: the bare GUI executable, without fonts. This is the artifact subject to the existing 5,000,000-byte gate.voyager7-<version>-win64-standalone-full.exe: pending. TODO after the emoji sidecar work: embed fonts uncompressed in PE read-only sections. Font bytes must remain image-backed, add no private copy, and expose exactly the same family, fallback, presentation, color and shaping behavior as sidecar faces. No full artifact is produced until those contracts are implemented and measured.
voyager7-<version>-win64.zip carries voyager7.exe, voyager7.com, fonts/
and license/notice files. It also includes Microsoft's optional modern ConPTY
sidecars (conpty.dll, OpenConsole.exe) and their MIT notice. cargo xtask package
reuses the SHA-256-pinned cargo xtask sidecar downloads, fixed ZIP timestamps,
order and attributes, normalized PE COFF timestamps, and a version from the
workspace. Reproduction assumes the same Rust, Zig, Python and
zlib versions and source tree; it does not depend on filesystem timestamps.
Console launcher
voyager7.exe keeps its GUI subsystem. The console-subsystem Rust helper is
shipped as voyager7.com beside it. Default PATHEXT resolves COM before EXE.
CLI actions, help/version and diagnostic probes wait for the executable in the
helper's own directory. The original UTF-16 argument tail is preserved. Standard
handles are duplicated as inheritable and passed via STARTF_USESTDHANDLES; console
writes, file redirection and pipes share the same executable implementation.
The helper handles Ctrl+C/Break itself while the child receives the console's
original event, avoiding duplicate delivery, and returns the child's exit code.
Ordinary GUI startup uses DETACHED_PROCESS and returns immediately. The exe's
existing attach-to-parent path continues to support start /wait voyager7.exe.
Shell interoperability
The exe uses valid inherited output handles first. It attaches only when output has no usable handle. An invalid console stream is retried once after attaching, while retaining valid file/pipe streams and stdin. This also covers a console stdout paired with a redirected stderr. No console is ever allocated for actions.
Win10 acceptance pins Portable Git for Windows 2.51.2 and Nushell 0.109.1 by
SHA-256 (see xtask/src/package_shells.rs). Actual twin .exe/.com resolution probes
confirm Git Bash selects .exe in both mintty and conhost, while Nushell selects
.com through the default PATHEXT order; reversing PATHEXT to put .exe first
changes Nushell's selection to .exe. cmd and PowerShell also select .com.
The tested actions include version, help, unsupported-action exit 1, head pipelines
and file redirection. The temporary boo player sends one finite, undelayed cycle
to pipes/files; closing a pipe terminates output rather than hanging. A real
console supports its interactive animation. The modern Git build is tested on
Win10 only; a separate Cygwin installation is not part of this matrix.
cargo xtask vm-shells downloads pinned archives into ignored build/ storage,
runs through Sal's interactive token, then removes the extracted shells and
archives from the guest. Failed runs can retain the verified archives while
work continues; completed acceptance must remove them.
Installer scope
The default “Just me” scope installs into %LOCALAPPDATA%\Programs\Voyager7.
“All users” installs into 64-bit %ProgramW6432%\Voyager7, registers under HKLM,
creates OS-dependent links in the common Start Menu Programs directory, and updates
system PATH under HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment.
Per-user scope continues to use HKCU, the user's Start Menu and user PATH.
The manifest remains asInvoker: only executing an all-users install/uninstall
requests ShellExecuteExW with runas, and only if the process is not already
elevated. The original UI waits for the child's status and keeps its original
token for Finish/Launch. Directory, exact checkbox choices and settings-removal
choice are carried to the elevated silent worker. Cancelling UAC returns 1223.
Cleanup after an elevated uninstall waits for the original unelevated UI process
to exit, so its open image cannot block deletion. The installed uninstaller infers machine scope by matching its own directory
against HKLM InstallLocation; its Start Menu link needs no arguments.
Windows 7 creates a Voyager7 folder in Programs with Voyager7.lnk and
Uninstall Voyager7.lnk. Windows 8 and later (real version >= 6.2 from
RtlGetVersion) create only a top-level Voyager7.lnk. Modern Start menus hide
Uninstall-named links; their Uninstall action uses the registered UninstallString
through Programs and Features / Settings instead. Both scopes use this policy.
Every upgrade cleans both prior managed layouts before creating the current one;
/noshortcut and uninstall clean both layouts. Empty product folders are removed,
and foreign files are preserved. The acceptance product name also isolates the
top-level link, so scratch testing cannot migrate the owner's installed links.
Cross-scope installation is refused with Windows error 1638: uninstall the other
copy first. The unelevated process checks its own HKCU before relaunch; the elevated
machine worker also checks every local profile (loaded HKU hives, otherwise a
read-only process-private RegLoadAppKey hive). An uninspectable profile refuses
the operation rather than risking a duplicate. A global setup handle prevents
concurrent setup mutations (1618). Per-user settings/config locations are unchanged.
The native dialog uses common-controls v6, an asInvoker manifest and system-DPI
scaling. Its state is guarded against reentrant Win32 callbacks. Layout is in
dialog units from the system message font (NONCLIENTMETRICS), on a fixed-size,
centered window without minimize/maximize boxes: a task-dialog style header,
then Install location (scope radios, folder), Components (with installed sizes)
and Integration sections, and a gray command area showing the space required.
The action button carries the UAC shield when it will elevate. Installing
replaces the options with a per-file progress bar and status line; the done
view offers Launch Voyager7 and Finish. Uninstall shows its location read-only.
Component sizes come from inflating the payload once when the dialog opens. The
terminal and emoji font groups, Start menu shortcut and user PATH default on.
“Nerd Font symbols (Symbols Nerd Font)” is offered beside the terminal font and
is checked by default too (/nonerdfont opts out): SymbolsNerdFont-Regular.ttf
(2,440,316 bytes) and its MIT LICENSE (as fonts/SymbolsNerdFont-LICENSE.txt)
from the Nerd Fonts 3.4.0 Symbols Only archive Ghostty pins and embeds
(NerdFontsSymbolsOnly-3.4.0.tar.gz; archive and member SHA-256 pinned in
cargo xtask sidecar). It replaced Microsoft's Cascadia Mono NF on 2026-11-22:
that build squeezes every icon into one cell, so Ghostty's Nerd Font
constraints keep its icons small, while Symbols Nerd Font icons are drawn
about 1.5 cells wide, as in Ghostty. Install and upgrade delete the old
fonts/CascadiaMonoNF* files; uninstall removes them too. It is payload category 4 (0 core, 1 terminal
font, 2 emoji font, 3 modern console host); the retained choices string gains a
sixth digit; a five-digit value from an older install takes the default, so
the upgrade adds it, and a saved 0 keeps it off. When
installed, it is the fallback for Nerd Font symbols right after the configured
family and Consolas (see v7_text::discovery::candidates). The portable ZIP
carries it; standalone-min does not. “Nostalgia pixel font (ANAKRON)” follows
the same pattern as category 5 (checked by default, /noanakron opts out and
/anakron back in): fonts/anakron-8x12.v7bf.z, the v7-nostalgia bitmap
table, with fonts/ANAKRON-OFL.txt; the choices string gains a seventh digit,
and a shorter saved value leaves it at its default. Without it nostalgia draws
with the Terminal raster font. Builds that embedded ANAKRON left
ANAKRON-OFL.txt in the install root; install and uninstall delete it. Choices and installation directory
are retained in the selected scope's Uninstall registration on upgrade.
No terminal is silently killed: locked executables fail silently with a nonzero
status, or offer Retry/Cancel in the dialog.
/S suppresses setup UI; /ALLUSERS selects machine scope and /CURRENTUSER
selects the default user scope (the two flags together are invalid). UAC may still
require consent for a non-elevated silent machine operation. /D=<absolute directory>, /nofonts, /noemoji,
/noshortcut, /nopath, /noconpty, /nonerdfont, /nerdfont,
/noanakron and /anakron override defaults or retained choices. Quote
the complete /D=... argument when it contains spaces. Exit 0 means success, 13 malformed
payload, 87 invalid arguments/destination, and other values are Windows errors
(e.g. 32 for an executable still running). GUI Cancel closes the dialog.
The modern-console checkbox reads “Modern console host (recommended)”, defaults
on, and is offered only on build 17763 or newer, queried through RtlGetVersion.
Older systems show neither the checkbox nor its requirement note, reclaim the row,
and never install those files.
The unmodified Microsoft.Windows.Console.ConPTY 1.25.260930003 binaries are copied
beside voyager7.exe. cargo xtask sidecar fetches and verifies package/member
SHA-256 pins, placing them in build/sidecar/conpty/; packaging consumes that output.
The runtime preference and fallback are owned by the ConPTY implementation.
The Microsoft binaries target Windows 10 1809 and deliberately do not pass the
Win7 import gate; setup, uninstall and the helper must pass it on both systems.
Standalone-min neither contains nor embeds these sidecars.
After each PATH change, setup rebuilds its own process PATH from expanded machine and user registry values, as well as broadcasting WM_SETTINGCHANGE. Finish refreshes again before launching the terminal, including after an elevated worker completes. Registry writes/broadcasts do not refresh existing process environments; already-open shells must be restarted or refreshed.
The small stub is copied as uninstall.exe, without its compressed payload.
It always removes managed binaries and fonts from its own executable's parent
folder, ignoring /D= during uninstall. Registry InstallLocation never redirects
file deletion. Only when the chosen scope's InstallLocation matches that folder
(case-insensitive, ignoring trailing backslashes) does uninstall also remove that
scope's registration, Start Menu links, PATH entry and explicitly selected settings.
A moved/copied uninstaller without a matching registration removes only its own
managed files. Machine-scope inference uses the same normalized comparison;
elevation reruns that same image and cleanup retains the original-parent PID handoff.
Uninstall metadata strings use REG_SZ; readers also accept legacy REG_EXPAND_SZ,
and upgrades rewrite them. Environment PATH continues to use REG_EXPAND_SZ.
A small temporary copy waits for the uninstaller process to exit, then removes
its image and the empty directory. A hidden system command removes that temporary
copy after it exits. Leaving the interactive Finish state open cannot race
cleanup. Unrecognized files are retained. Config under %APPDATA%\Voyager7
is kept unless “Also remove settings” is explicitly selected (/settings for
silent uninstall). Only the two known config files are then removed; unrelated
user data is retained.
The payload uses zlib/deflate and the already-used no_std miniz_oxide decoder,
with a 32 MiB decompression cap, 64-record cap, bounded record lengths and path
validation. The trailer specifies the compressed length and a format signature;
zlib checks integrity. All records are validated before installation writes begin.
cargo xtask decoder-size compares identical CRT-free no_std probes: deflate
adds 12,800 bytes, and lzma-rust2 0.25.0 XZ adds 38,912. The shipping stub's
actual incremental deflate cost is 12,288 bytes after LTO/padding. XZ -9e saves
about 1 MB of payload, while deflate keeps the original native stub at 51,200 bytes (59,392 after scope/elevation support) and
reuses the existing bounded decoder. This alpha chooses the smaller stub and
accepts the larger download. The XZ probe is not a shipping dependency.
Launch/setup use size optimization; the terminal's optimization is unchanged.
Compression measurements and exact toolchains are in the
acceptance report. Installer changes
allocate only during explicit setup work, not the terminal's steady-state paths
(ADR 0005).
These alpha artifacts are unsigned. The owner accepts SmartScreen's “unknown publisher” warning for now. Signing and its release-key lifecycle are pending.
Limits before broader distribution
There is no transactional rollback for disk-full or registry failures after file replacement. Install/uninstall run synchronously on the dialog thread; progress indicates start/completion rather than bytes. The installer rejects relative, UNC, drive-root, dot-segment, overlong and shell-metacharacter destinations. Moving an existing installation to a new directory does not migrate/delete the old directory. A complete dependency-license inventory and the project's own license decision remain pending; the packaged LICENSE is an explicit distribution-status notice, not a new license grant. These are alpha limitations, not completed features.
Optional Microsoft ConPTY sidecar
Status: accepted. Date: 2026-11-07. Owner approved: yes.
Ship unmodified x64 Microsoft.Windows.Console.ConPTY 1.25.260930003 as an
optional sidecar, recommended by the installer. The standalone-min distribution
remains one executable. The sidecar consists of conpty.dll (119,608 bytes) and
OpenConsole.exe (1,089,376 bytes), plus Microsoft's MIT license notice.
cargo xtask sidecar verifies the pinned NuGet archive SHA-256 and each binary
before writing build/sidecar/conpty/{conpty.dll,OpenConsole.exe,LICENSE.txt}.
This is the packaging input directory; install both binaries beside voyager7.exe.
The notice is in licenses/ConPTY-MIT.txt. No Microsoft source is copied.
W27 measured inbox ConPTY at 0/10 strict numbered resize storms, retaining
196–215/240 rows. The newer package passed 20/20 (10 flags-zero, 10 flags-two),
retaining all 240 rows once and in order. Captured repaint bytes demonstrate
that inbox absolute-position repaint overwrites active rows without scrolling
them into history. Reordering/draining/reflow changes did not fix this.
See docs/research/tui-parity-2026-11-07.md for the exact loss intervals and qualifications.
This evidence supports shipping the sidecar; it does not certify actual Claude
Code or Codex sessions.
The Voyager7 extension v7-conpty = auto|bundled|system defaults to auto, following
ADR 0009's v7- namespace and warning/reset/include/CLI rules.
Use --v7-conpty=system on the CLI; unprefixed conpty is unknown.
auto and bundled try the optional sidecar and permit system fallback.
system always uses kernel32. Empty resets to auto. +explain-config v7-conpty documents this policy.
On Windows build 17763 or later, discover both siblings using the executable's absolute filename. Load the DLL with full-path LoadLibraryExW and dependency search restricted to its directory and System32. Resolve its prefixed exports at runtime and retain the module until the console and worker threads close. Resolve RtlGetVersion dynamically to avoid manifest-dependent version reporting. Missing files, an unsupported OS, missing exports, DLL load failure or any sidecar startup failure all select the system provider. Diagnostics report the selected provider and the fallback error. Windows 7 retains its unavailable-Backend path; no Windows 10 functions become static imports. Production creation flags stay zero: flags 0/2/4/6 produced no distinct benefit in W27's controlled capture.
Newer ConPTY requests DEC private mode 9001. The pinned libghostty-vt public mode
query exists, but its mode inventory has no 9001 entry. Voyager7 therefore observes
DECSET/DECRST from the output stream without a vendor patch, across write chunk
boundaries, ignoring control strings and recognizing reset/cancellation. While
active, keyboard input uses Microsoft's public CSI Vk;Sc;Uc;Kd;Cs;Rc _ protocol.
Records retain down/up, scan code, virtual key, UTF-16 units, repeat count and
console modifier flags, including AltGr. Dead-key preedit carries no committed
character. Ctrl+C uses VK_C/ETX; Ctrl+Break retains VK_CANCEL so console processed
input policy remains conhost's responsibility. Mode-off input keeps the existing
Ghostty encoder. Clipboard shortcuts retain Voyager7 policy.
Protocol reference: Microsoft's specification.
The feature conpty-experiment now enables only explicit-path diagnostic overrides
and output tracing; the shipping loader and mode handling have one unconditional
implementation. Experimental resize policies remain diagnostic only.
cargo xtask vm-tui checks shared invariants on Win7, exact native console input
on Win10, and ten strict live storms for each provider. Bundled losses fail the
gate; system losses are reported as a known inbox limit. Native mouse receipt is
reported independently rather than inferred from keyboard record support.
Inbox conhost crash on a height shrink during a cooked read (2026-11-27)
Windows 10 inbox conhost (10.0.19041, on 22H2 19045.6456) fail-fasts with
STATUS_STACK_BUFFER_OVERRUN (0xC0000409, "conhost.exe - System Error") when
ResizePseudoConsole shrinks the height below the prompt row while a cooked
read holds typed text, e.g. cmd at its prompt with echo hi typed but not
entered. The console session dies with it, so cmd exits and the pane closes.
A direct kernel32 harness (no Voyager7 code) reproduced it in 14 of 15 such
resizes. It needs all three conditions: pending text (an idle prompt survives),
a height change (width-only shrinks and growth survive), and a prompt row at or
below the new height (prompt row 3 or 12 with 19 rows survives). Creation flags
2, 4 and 6 did not prevent it. The bundled OpenConsole 1.25 survived the same
sequence 3/3. This is microsoft/terminal#1856, fixed by microsoft/terminal#5620
(April 2020, after the 19041 inbox conhost was frozen). That fix hides the cooked
read's command line around the resize, which only the host can do.
No resize order, size clamp or flag avoids it from the client side. Keeping the
pseudoconsole taller than the grid would misplace conhost's absolute repaints.
The installer and zip ship the sidecar and are not affected; standalone-min on
Windows 10 is, as is v7-conpty = system. Evidence:
build/fixes/backend-bugs/NOTES.md.
Shell profiles
Status: accepted. Date: 2026-11-29. Owner approved: yes.
A Profile is a named way to start a Surface: a command line plus the settings that go with it (starting directory, title, icon, tab colour, elevation, and later its appearance). On Windows several shells are usually installed side by side, so Voyager7 offers them the way Windows Terminal and VS Code do: a ▾ button beside + lists the profiles, Ctrl+Shift+1…9 open them, the palette and the terminal context menu can open a tab or split with any of them, and the Settings window edits them.
The main configuration stays pure Ghostty: each profile is a Ghostty
configuration fragment in its own file (owner decision 2026-11-29, which
replaced a first draft of NAME=VALUE keys in the main file).
Enabling
v7-profiles = true|false turns the feature on. The default is true on
Windows and false on Linux and macOS (owner decision 2026-11-29); an empty
value resets to the platform default. When false there is no ▾ button, no
profile menus or palette entries, the profile actions are not performable (so
Ctrl+Shift+1…9 reach the program) and every Surface runs Ghostty's command,
else the platform shell, exactly as without this ADR.
Profile files
%APPDATA%\Voyager7\config main configuration, pure Ghostty
%APPDATA%\Voyager7\profiles\Work.ghostty the profile "Work"
%APPDATA%\Voyager7\profiles\Git Bash.ghostty
With --config PATH, profiles are in the profiles folder beside that file.
The file name without .ghostty is the profile's identity, compared without
regard to case (the Windows file system's rule). A profile file uses Ghostty's
syntax and Ghostty's keys:
# profiles\Work.ghostty
command = pwsh.exe -NoLogo
working-directory = D:\work
title = Build
v7-profile-icon = C:\Program Files\PowerShell\7\pwsh.exe
v7-profile-tab-color = #2d6cdf
A tab opened with a profile gets the main configuration (files, includes and
CLI overrides, as today) followed by the profile file, exactly as if the
file were one more config-file include loaded last. So a profile file means
the same thing to Voyager7 as it would to Ghostty given as a final
--config-file, and per-profile appearance needs no new syntax later.
Profile-scoped keys (the only ones a profile may change):
| Key | Meaning in a profile |
|---|---|
command | The profile's command (Ghostty semantics, direct: / shell:). |
working-directory | home, inherit or a path (Ghostty semantics; inherit is WT's "Use parent process directory"). |
title | Fixed tab title (Ghostty semantics). |
shell-integration, shell-integration-features | As in Ghostty, for that profile's Surfaces. |
config-file | Includes, relative to the profile file, deferred as in Ghostty. |
theme and the colour keys | For that profile's Surfaces (ADR 0016), over the main configuration's colours. |
The font keys (font-family, font-size, font-feature, font-variation*, font-style*), cursor-style, cursor-style-blink and env | For that profile's Surfaces, over the main configuration's (added 2026-11-30). Each Surface measures and draws with its own font, so tabs and splits with different cell sizes share a window; one engine per distinct font configuration per window, reused by every Surface with the same one. |
Other appearance keys (adjust-*, background-*, selection-*, …) | Later. Reported "not supported in a profile yet". |
Voyager7-only metadata, valid only in a profile file:
| Key | Value | Default |
|---|---|---|
v7-profile-name | Name shown in menus and tabs | the file name |
v7-profile-icon | .ico, .exe or .dll, optional ,INDEX | detected, else the command's program |
v7-profile-tab-color | A Ghostty colour (Ghostty has no tab colour key) | none |
v7-profile-elevate | true|false: run as Administrator | false |
v7-profile-hidden | true|false: keep out of menus and numbering | false |
v7-profile-path-style | auto|windows|cmd|powershell|nushell|wsl|cygwin|msys2|mingw: how dropped files' paths are written (v7_core::drop_paths) | auto: from the command |
Application- and window-scoped keys (keybind, class,
quit-after-last-window-closed, window-*, v7-conpty, …) have no per-tab
meaning and are reported once per file as "applies to the whole application;
ignored in a profile". v7-profile-* keys in the main file are reported as
"only in a profile file".
Main-file keys:
| Key | Value | Default |
|---|---|---|
v7-profiles | true|false | true on Windows, false elsewhere |
v7-profile-detect | true|false: add installed shells | true |
v7-default-profile | A profile name | see below |
v7-profile-order | Repeatable names; listed profiles first, in that order | none |
The default profile is a main-file key, not a per-file flag, so two files can never both claim it.
Detected profiles
Installed shells (below) are built-in, in-memory profiles: a detected layer
with command and v7-profile-icon between the main configuration and the
profile file. A profile file with a detected profile's name overrides it (a
file with only v7-profile-hidden = true hides it; one with command =
changes it). Detected profiles cannot be deleted, only hidden.
Layer order for a tab: main files, includes and CLI → detected layer (if the
name is detected) → profile file and its includes. Launch options
(--command=, -e, --working-directory=, --title=) win over all of
them for the Surface they start.
Ghostty's command and initial-command
Both are implemented with Ghostty's meaning.
commandin the main file (also--command=) is what the default profile runs whenv7-default-profileis unset, and what a profile file without its owncommandruns (it inherits the main configuration). Voyager7 shows it as a profile named after its program (nu), first.initial-commandand-erun only for the first Surface (Ghostty). Before this ADR Voyager7 also used-efor later tabs; that deviation is removed.direct:is removed (CreateProcess never uses a shell);shell:runs the rest through%COMSPEC% /c.
--v7-profile=NAME (CLI, +new-window, +new-tab) starts the first Surface
with that profile. It is a launch option, like --title=.
Default profile
v7-default-profile names the profile +, Ctrl+Shift+T (new_tab),
new_window, new_split and Voyager7's first window use. Unset: the
command profile when command is set, else Command Prompt
(%COMSPEC%), which is what Voyager7 ran before profiles, so every existing
configuration starts the same shell.
Detection
Only the file system and the registry are read: no process is started, nothing is loaded, network drives are skipped. Startup resolves the default profile without detection unless the default names a detected shell; the full list is built on first use (a menu, the palette, Ctrl+Shift+N, Settings) and again on reload. Measured on the QEMU VMs: 0.7–1.4 ms for a full pass.
| Profile | Found at | Command | Icon |
|---|---|---|---|
| Command Prompt | %COMSPEC%, else %SystemRoot%\System32\cmd.exe | as found | cmd.exe |
| Windows PowerShell | %SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe | as found | powershell.exe |
| PowerShell (7+) | %ProgramFiles%\PowerShell\<N>\, %ProgramFiles(x86)%\PowerShell\<N>\, the msix aliases under %LOCALAPPDATA%\Microsoft\WindowsApps, %USERPROFILE%\.dotnet\tools, %USERPROFILE%\scoop\shims, else PATH | "…\pwsh.exe" | pwsh.exe |
| Git Bash | HKLM\SOFTWARE\GitForWindows\InstallPath, %ProgramFiles%\Git, %ProgramFiles(x86)%\Git, %LOCALAPPDATA%\Programs\Git, scoop, else git.exe on PATH | "…\bin\bash.exe" --login -i | git-bash.exe |
| Nushell | %ProgramFiles%\nu\bin, %LOCALAPPDATA%\Programs\nu\bin, WinGet links, %USERPROFILE%\.cargo\bin, scoop, else PATH | "…\nu.exe" | nu.exe |
| MSYS2 | C:\msys64 (and %SystemDrive%) | …\msys2_shell.cmd -defterm -here -no-start -ucrt64 | ucrt64.ico / msys2.ico |
| Cygwin | %SystemDrive%\cygwin64, \cygwin | "…\bin\bash.exe" --login -i | Cygwin-Terminal.ico / Cygwin.ico |
| WSL distributions | HKCU\Software\Microsoft\Windows\CurrentVersion\Lxss\{GUID}\DistributionName (Windows 10+) | wsl.exe -d NAME (--cd ~ from build 19041) | the distribution's ShortcutPath, else wsl.exe |
PowerShell 7 instances are ordered and named as Windows Terminal does
(PowershellCoreProfileGenerator.cpp). WSL skips docker-desktop* and
rancher-desktop* and reads the registry as WT does instead of running
wsl.exe -l as VS Code does. Git Bash, MSYS2 and Cygwin follow VS Code's
terminalProfiles.ts. Not sources: Windows Terminal fragments, Visual Studio
developer shells, SSH hosts, Azure Cloud Shell (owner). On Linux and macOS
(ports to come) /etc/shells is read as VS Code does; the parser is tested
now and unused until a port exists.
Order: v7-profile-order, then the command profile, detected profiles in
the table's order, then profile files by name. Ctrl+Shift+N counts visible
profiles in that order.
Icons
Read with SHDefExtractIconW at the size drawn (16 px times the DPI scale),
on first draw, kept for the process; a missing icon draws Voyager7's.
Interface
- New-tab dropdown: ▾ right of + lists the visible profiles (icon, name,
Ctrl+Shift+N; the default in bold), and nothing else: Settings, Command
Palette and About are in the ☰ menu (owner feedback 2026-11-29; WT lists
them here only because it has no ☰). The ▾ is the + button's twin: the same
size, plate, hover and pressed looks, with a DPI-scaled chevron.
Click: new tab; Shift+click: new window; Alt+click: split (WT); Shift+Enter
and Alt+Enter do the same from the keyboard. A message filter keeps the menu
open while Alt is down (a Win32 menu loop otherwise ends on Alt).
v7_open_profile_menuopens it from the keyboard: Ctrl+Shift+Space, Windows Terminal's key (owner decision 2026-11-29; pinned Ghostty binds nothing to it). - +,
new_tab,new_window,new_splituse the default profile. - Palette: "New Tab…" and "Split…" list the profiles; Backspace on an empty search or Esc goes back.
- Context menu: the Tab and Split submenus end with one row per profile.
- Tabs show their profile's icon. A tab colour fills the whole tab, as
in Windows Terminal (owner decision 2026-11-29, replacing a stripe along
the top): the active tab in the colour; an inactive tab in a darker shade,
35% toward a gray of the same lightness and then darkened to 68%; a hovered
one halfway between (
v7_core::tab_strip::tab_fill). The title and close button are black or white, whichever has the higher WCAG contrast with the fill (readable_on). Profile icons keep their own colours. On Windows 7 the fill takes each chrome's tab shape (the selected tab, the plate, the Classic bevel), opaque on Aero glass, without the glass text glow. - Settings: the Profiles category has its own editor. It lists every
profile with its icon (the default marked, hidden ones gray) and edits the
selected one's name, command line, starting directory (with "Use parent
process directory"), icon, tab title, tab colour, Run as Administrator and
Hide from menus, with New profile, Delete (your profiles) or Hide (installed
shells), Move Up/Down (
v7-profile-order), Set as default (v7-default-profile) and thev7-profilesandv7-profile-detectswitches. Apply writes each changed file one key at a time (config_edit), so lines it does not change keep their bytes. The Name field renames the file of a profile of your own, and setsv7-profile-namefor an installed shell.
Keys
v7_new_tab_profile:N, v7_new_split_profile:N, v7_new_window_profile:N
(N counts visible profiles from 1) and v7_open_profile_menu. Defaults:
performable:ctrl+shift+digit_1 … digit_9 = v7_new_tab_profile:1 … 9,
Windows Terminal's keys. Pinned Ghostty binds no Ctrl+Shift+digit, so none of
Ghostty's defaults change; performable: lets the key reach the program when
that profile does not exist or profiles are off. Digits match physically, so
layouts where Shift+digit types a symbol work.
Jump list and dropped files (added 2026-11-30)
- Jump list: the taskbar button's Tasks list the visible profiles in menu
order with their icons, then a separator and "New window"
(
ICustomDestinationList, Windows 7+, as Windows Terminal and ConEmu). A task runsvoyager7.exe [--class=CLASS] --v7-profile=KEY, which is a taskbar launch: it joins the running instance of that class as a new window (ADR 0014's new-instance behaviour) or starts one; an elevated profile asks for UAC as from the ▾. Written after the first frame and after a reload that changes it (the profile editor's Apply reloads); the uninstaller deletes the uninstalling user's list. A WSL distribution's icon is a Start menu shortcut, which a task cannot show, so its task showswsl.exe's. - Dropped files: their paths are written for the split's profile:
v7-profile-path-style, else detected from the command it started (cmd, PowerShell, Nushell, WSL, Cygwin, MSYS2/Git Bash, else quoted Windows paths); a console Windows handed over is "else". See the README for the rules.
Run as Administrator
From a process that is not elevated, an elevated profile starts
voyager7.exe --class=… --v7-profile=NAME --working-directory=DIR with the
runas verb (ShellExecuteW, Windows 7 and later). The elevated process
joins an elevated Voyager7 of the same class (the IPC endpoint already names
the elevation, docs/w68) or opens its own window. From an elevated process it
opens in place. Declining the UAC prompt does nothing.
Accepted trade-offs
- Repeatable keys append, as in Ghostty includes: a profile's
font-familyorpaletteadds to the main file's list unless the profile first writesfont-family =. This is Ghostty's include rule, kept on purpose; the Settings editor writes the reset line for the user. - Scope: Ghostty has no per-surface configuration, so Voyager7 defines which keys are profile-scoped (table above). Everything else in a profile file is diagnosed and ignored, which a Ghostty user may not expect.
- Precedence over the CLI: a profile file loads after CLI overrides, so
voyager7 --font-size=20loses to a profile'sfont-size. The profile is the more specific choice; launch options still win. - Order is not expressible with files:
v7-profile-orderin the main file, else names sort. - Names are file names:
\ / : * ? " < > |, trailing dots and spaces and device names (CON,NUL) cannot be used;v7-profile-nameshows any name. Renaming in Settings renames the file. - Detected names can move: with two pwsh installs, "PowerShell" is the best one, which changes when a newer one is installed, so an override file follows the name, not the install (Windows Terminal has the same issue).
- Including a profile from the main file (
config-file = profiles/Work.ghostty) applies it to every tab, as Ghostty would; it is not prevented. - Tools:
+show-configand+validate-configgain--v7-profile=NAMEto show or check one profile's effective configuration; without it they validate every profile file. - Cost: the profiles folder is listed and every file parsed on first use and on reload (bounded: 64 files, the usual 1 MiB and include limits); startup reads only the default profile's file.
Seams left for later
Per-profile colours and themes are done (ADR 0016): a
Surface keeps its profile name and re-reads them on reload. Fonts, cursors
and env are done the same way (2026-11-30); the other appearance keys stay
application-wide for now. Startup-page items other than the default profile, and the default
terminal application, are separate work.
Consequences
- Every existing Ghostty and Voyager7 configuration starts the same shell as before; the main file never needs a Voyager7 key for profiles.
-eapplies only to the first Surface (Ghostty).- Ctrl+Shift+1…9 open profiles on Windows;
keybind = ctrl+shift+digit_1=unbindorv7-profiles = falsegives them back.
Voyager7 as Windows' default terminal application
Status: proposed. Date: 2026-11-29. Owner approved: no.
Windows 11 and Windows 10 22H2 can open console programs started from Run,
Explorer or the Start menu in a terminal other than the console window
(Windows Terminal: Settings > Startup > "Default terminal application").
Voyager7 offers itself there the way an unpackaged program can: a per-user
choice in its Settings window, served by voyager7.exe -Embedding.
How Windows hands a console over
Sources: microsoft/terminal at 9a8127f (src/server/IoDispatchers.cpp
attemptHandoff, src/host/srvinit.cpp ConsoleEstablishHandoff,
src/propslib/DelegationConfig.cpp, src/host/proxy/*.idl).
- A console program starts without a console. Windows starts the inbox
conhost.exe. It reads two per-user strings,HKCU\Console\%%Startup\DelegationConsoleandDelegationTerminal, both COM class ids. A missing or zero value on either side means "Let Windows decide";{B23D10C0-E52E-411E-9D5B-C09FDF709C7D}on either side means "Windows Console Host"; anything else is a custom pair. - Only a first, interactive, visible start is handed over: not an
AttachConsole, not a pseudoconsole (so nothing inside a terminal), not a service session, notCREATE_NO_WINDOW, not a hidden or minimized start. - With a custom pair, conhost creates
DelegationConsoleout of process and callsIConsoleHandoff::EstablishHandoffwith its console-driver server handle, the pending connect message and a signal pipe. The console host (OpenConsole,OpenConsole.exe -Embedding) now serves the session. Inbox conhost stays only to wait for the program to exit (process id continuity) and to relay signals. - OpenConsole reads the same pair and creates
DelegationTerminal, callingITerminalHandoff3::EstablishPtyHandoff(&in, &out, signal, reference, server, client, startupInfo). The terminal makes the two pipes and returns OpenConsole's ends; OpenConsole runs as a headless pseudoconsole on them (--headless --signal).startupInfocarries the title, icon and show command conhost read from the shortcut. - Any failure (class not registered, interface not marshalable, an error result) leaves the console in conhost's own window.
ITerminalHandoff3 dates from microsoft/terminal#17575 (July 2024, Windows
Terminal 1.22); the older ITerminalHandoff/ITerminalHandoff2 passed the
pipes in. All three interfaces pass handles with MIDL system_handle
marshaling, so both processes need the proxy/stub DLL that Windows Terminal
ships as OpenConsoleProxy.dll (class {3171DE52-6EFA-4AEF-8A9F-D02BD67E7A4F}).
"Let Windows decide"
That entry writes zeros (Windows Terminal's dropdown writes
{00000000-…} to both values; the owner's Win10 VM had exactly that).
- Windows 11 (22H2 and later): inbox conhost replaces a default pair with
Windows Terminal's (
{2EACA947-7F5F-4CFA-BA87-8F7FBEEFBE69},{E12CFF52-A866-4C77-9A90-F570A7AA2C6B}) and checks that the console class also implementsIDefaultTerminalMarker(microsoft/terminal#13160, 2022). So Windows picks Windows Terminal when a version that opts in is installed (it is inbox on Windows 11 22H2), and conhost otherwise. The choice is hard-coded to Windows Terminal's class ids: no other terminal can become "Windows' choice". - Windows 10 22H2 (verified on 19045.6456): inbox conhost has the
delegation code (it reads both values and contains
IID_IConsoleHandoff) but none of Windows Terminal's class ids and noIDefaultTerminalMarker. "Let Windows decide" is the console window. Only an explicit pair hands over: with Windows Terminal's pair,cmd.exestarted from the user session opened in Windows Terminal (OpenConsole.exe -EmbeddingandWindowsTerminal.exe -Embeddingfrom its package).
Which Windows can delegate
Windows Terminal offers the setting on build 22000 and later, or where
HKLM\SOFTWARE\Microsoft\SystemSettings\SettingId\SystemSettings_Developer_Mode_Setting_DefaultTerminalApp
exists (Windows 10 22H2 servicing; present on the VM). Voyager7 uses the same
test. Windows 7, 8.1 and older Windows 10 builds have no delegation; Voyager7
hides the option there.
The lists in Windows Terminal and Windows Settings
Both lists come from packaged app extensions: a package that declares
com.microsoft.windows.console.host and com.microsoft.windows.terminal.host
(each with a Clsid property) appears as one entry, console and terminal
paired by package. Unpackaged Voyager7 cannot appear there.
Windows Terminal's Settings takes the default back. While Voyager7 is the
default, Windows Terminal's list has no matching entry, so it shows "Let
Windows decide" (DelegationConfig::s_GetAvailablePackages falls back to
packages.at(0)), and every Save in its Settings writes the shown entry back
(CascadiaSettingsSerialization.cpp _writeSettingsToDisk →
DefaultTerminal::Current): the default silently stops being Voyager7, even
when the user changed something unrelated. Voyager7 cannot prevent that. It
reads the pair live each time its Settings window is activated or reloaded,
shows the real default (a choice, another Windows Terminal channel, or
Other ({…}, {…}) with the class ids), and when Voyager7 had been chosen there
but the pair changed since, says "Another app changed the default terminal to
…" and removes the per-user registrations the new pair no longer uses
(Voyager7's class; the bundled OpenConsole and proxy unless the pair still
names OpenConsole's class with no package serving it). Pick Voyager7 again to
get it back.
Being listed would take an MSIX or a sparse package (package identity for an
unpackaged exe) that declares both extensions, a com:ExeServer for
voyager7.exe, the proxy/stub, and a console-host class of its own: the
bundled OpenConsole serves only Windows Terminal's class id, which two
packages cannot both declare, so the package would need an OpenConsole built
from Microsoft's MIT sources with a Voyager7 class id. Packages must be signed
(sparse packages too; unsigned only in developer mode). Not now: Voyager7 is
unsigned for the alpha.
Decision
- The pair is (
{2EACA947-7F5F-4CFA-BA87-8F7FBEEFBE69}OpenConsole,{7939EF47-5E38-46C9-B384-0AC7BDFA629C}Voyager7). The bundledOpenConsole.exe(ADR 0012) is Microsoft's release build, which serves only that console class id, the one Windows Terminal ships. - Per-user registration under
HKCU\Software\Classes, no administrator:- always
CLSID\{7939EF47…}\LocalServer32 = "<dir>\voyager7.exe"(COM appends-Embedding); - when Windows Terminal's package does not serve the console class
(
HKLM\SOFTWARE\Classes\PackagedCom\ClassIndex\{2EACA947…}lists no package):CLSID\{2EACA947…}\LocalServer32 = "<dir>\OpenConsole.exe",CLSID\{3171DE52…}\InprocServer32 = <dir>\OpenConsoleProxy.dll(ThreadingModel=Both) andInterface\{IConsoleHandoff, ITerminalHandoff3, IDefaultTerminalMarker}\ProxyStubClsid32. These exist only while Voyager7 is the choice: choosing another entry in Voyager7 removes them (only the ones that point at Voyager7's directory).
- always
- Nothing is written until the user picks an entry. Before the first switch
to Voyager7 the exact previous values (or their absence) are saved in
HKCU\Software\Voyager7\DefaultTerminalPrevious. - Uninstall: if Voyager7 from this directory is still the default, the saved values are written back (or "Let Windows decide" when none were saved); another terminal's choice and another copy's registration are left alone. Then the classes registered from the directory are removed.
voyager7.exe -Embeddingregisters its class object first thing (multithreaded apartment, single use), takes the handoff, waits for the caller to release it, and then either forwards the console to a running instance of itsclass(the handles are duplicated into that process and named in an IPC+new-window --v7-handoff=…request) or opens it in its own first window. A console arriving while Voyager7 runs opens a new window, as a console program would.- The Backend is the ConPTY Backend in an adopted form (
ConPty::adopt): same reader, ring and input encoding as the bundled provider (OpenConsole hosts it), with resize, clear and close sent asPTY_SIGNAL_*packets on the signal pipe (winconpty's protocol). The client process is reopened withPROCESS_TERMINATE, so closing its tab ends it as with any other tab. OpenConsoleProxy.dll(38,712 bytes) ships in the ConPTY component. The ConPTY NuGet package has no proxy;cargo xtask sidecartakes it from Windows Terminal 1.25.2733.0's release archive (SHA-256 pinned), whoseOpenConsole.exeis byte-identical to the NuGet one. MIT, Microsoft.- Settings: a "Default terminal" drop-down in the Settings command bar (Let
Windows decide, Windows Console Host, Voyager7, Windows Terminal when
installed, and the current entry if it is another terminal), applied on
selection. It is not a configuration key: loading a config must never
change a Windows setting.
--diag-default-terminal=show|windows|conhost| voyager7|windows-terminaldoes the same for tests. - standalone-min can be the default where Windows Terminal is installed;
elsewhere it needs
OpenConsole.exeandOpenConsoleProxy.dllbeside it, and Settings says so.
Consequences and risks
- Measured on the Win10 VM (19045.6456, Windows Terminal 1.25.3131
installed): a per-user
Interface\…\ProxyStubClsid32takes precedence over the package's (our proxy was loaded into conhost and into Windows Terminal's OpenConsole), while activation of{2EACA947…}still went to the package's OpenConsole despite a per-userLocalServer32. Hence the console side is registered only when the package does not serve it. - Elevated consoles ("Run as administrator") do not use per-user COM servers and are expected to stay in conhost (not verified).
- If the console side stays registered after the choice was changed outside Voyager7 (Windows Settings) on a Windows 11 without Windows Terminal, "Let Windows decide" would start the bundled OpenConsole for its marker check, which then fails to reach Windows Terminal and falls back to conhost: slower console starts until Voyager7's Settings is next opened (which removes it, see above) or Voyager7 is uninstalled.
- With Windows Terminal installed its newer OpenConsole hosts Voyager7's consoles. The interfaces are append-only by design (the IDL's "LOAD BEARING" note) and the signal packets have not changed since 2018.
- An all-users uninstall elevated by a different administrator account restores that account's values, not the user's.
- Evidence:
build/fixes/default-terminal/NOTES.md.
Voyager7 as the default terminal without console delegation (hook)
Status: proposed. Date: 2026-11-29. Owner approved: no.
ADR 0014 makes Voyager7 the default terminal where Windows has console
delegation (HKCU\Console\%%Startup): Windows 11 and Windows 10 22H2. Windows
7, 8.1 and older Windows 10 builds have no delegation: a console program
started from Explorer (Run box, Start menu, a double-click) always opens in a
console window. This ADR adds an opt-in replacement for them, in the spirit of
ConEmu's "Default terminal" feature, written from Microsoft's documentation in
our own code.
Prior art (ConEmu's public documentation only)
ConEmu's page (conemu.github.io/en/DefaultTerminal.html) describes: turn on
"Force ConEmu as default terminal", list the "parent" programs that start
console tools (for example explorer.exe|devenv.exe|totalcmd.exe), and its
hook DLL (ConEmuHk.dll/ConEmuHk64.dll) is loaded into those parents.
"Register on OS startup" covers mostly explorer.exe. Elevated ("As
administrator") consoles "can't be hooked". It warns: "Enabling 'Default
terminal' feature may cause false alarms in some antiviral programs." A
started program is rewritten to run through ConEmu or its console helper
(ConEmuC64.exe … /ROOT "cmd.exe"), because the parent "does not really need
to get started process handle". Nothing of ConEmu's code is used or read.
How it works
Microsoft sources for every call: CreateProcessW/CreateProcessA
(processthreadsapi.h), STARTUPINFOW, process creation flags, the PE format
(IMAGE_OPTIONAL_HEADER64.Subsystem), NtQueryInformationProcess with
ProcessBasicInformation and the PEB/RTL_USER_PROCESS_PARAMETERS fields
that winternl.h documents (ProcessParameters, ImagePathName,
CommandLine), CreateRemoteThread, VirtualAllocEx, WriteProcessMemory,
EnumProcessModules, DuplicateHandle, the Run key
(HKCU\Software\Microsoft\Windows\CurrentVersion\Run).
- Watcher. Choosing "Voyager7 (hook)" writes one per-user
Runvalue,Voyager7 default terminal="<dir>\voyager7.exe" --v7-defterm-watch, and starts that command now. The watcher has no window. It copiesv7-defterm.dllfrom besidevoyager7.exeinto%LOCALAPPDATA%\Voyager7DefTerm-<SHA-256>\(a directory only the user can open, like the console hook's cache) and loads it into every host process of the user's session:explorer.exe. It looks again every 3 seconds (one Toolhelp snapshot), so a restarted Explorer is hooked again. One watcher per session andclass; it ends when told to stop. - Hook.
v7-defterm.dll(no_std Rust, kernel32 only) is loaded withCreateRemoteThread(LoadLibraryW); a second remote thread calls itsVoyager7DefaultTerminalInstallexport with a configuration block (voyager7.exe's path, the watcher's--class/--config, the exclusion list). It replaces the import-table entries ofCreateProcessWandCreateProcessAin every loaded module (matched by value, kernel32 or kernelbase; Windows 7'sshell32.dllimportsCreateProcessWthroughAPI-MS-Win-Core-ProcessThreads-L1-1-0, Windows 10'swindows.storage.dllthe same way), and of the fourLoadLibrary*calls, after which it patches the modules that were loaded.GetProcAddressis not hooked (Windows 7's kernel32 version depends on its caller); on Windows 10 kernel32's ownCreateProcessWstub jumps through a patched entry anyway. Nothing else is hooked; DllMain does nothing. - Decision, per call. A start is left alone (the original call, unchanged)
unless it would open a new console window:
- no
DETACHED_PROCESS,CREATE_NO_WINDOW,DEBUG_*or protected-process flag.CREATE_SUSPENDEDandEXTENDED_STARTUPINFO_PRESENTare allowed: Windows 7'sShellExecuteEx(Explorer, the Run box) starts every program with0x04080414= both of them plusCREATE_NEW_CONSOLE,CREATE_UNICODE_ENVIRONMENTandCREATE_DEFAULT_ERROR_MODE, with an empty attribute list, and resumes the thread itself (traced on the VM); - the caller has no console, or asks for
CREATE_NEW_CONSOLE; STARTUPINFOdoes not redirect standard handles (STARTF_USESTDHANDLES) and does not ask for a hidden or minimized window;- then the program is created suspended with the caller's exact
arguments, and its image is checked: console subsystem
(
IMAGE_SUBSYSTEM_WINDOWS_CUI), notvoyager7.exe,voyager7.com,conhost.exeorOpenConsole.exe, not on the exclusion list. A GUI program (or anything else) is simply resumed: the caller gets its real process, created exactly as asked.
- no
- Hand-over. For a console program the hook reads the suspended
process's exact image path and command line (the PEB's process
parameters; this also covers a
.batstarted directly, which Windows runs ascmd.exe /c), and starts the agent instead:voyager7.exe --v7-defterm-agent <image> <command line> [--class/--config]with the caller's working directory, environment block (and itsCREATE_UNICODE_ENVIRONMENT), handle inheritance, security attributes, desktop, attribute list and suspension (the caller resumes the agent as it would have resumed the program), a hidden console and no busy cursor. Only when the agent started is the suspended program terminated (it has run no code); otherwise it is resumed and opens in its console window as before. - Agent. The agent is the Win7 Backend's console agent (the hidden
console that each Voyager7 tab on Windows 7 already has) started by the
hook instead of by Voyager7. It makes its two pipes and an event, and
starts
voyager7.exe [--class/--config] --v7-agent=<pid>,<event>,<in>,<out>, which, like any second Voyager7, hands that argument to the running instance of its class as a+new-windowrequest or opens its own first window (ADR 0014's path). The receiving Voyager7 duplicates the pipe ends out of the agent (DUPLICATE_CLOSE_SOURCE) and signals the event; from then on it is an ordinary Win7 tab, and the agent starts the program in its console with the hook DLL of the scraper, as for any tab. - Fallback. If Voyager7 cannot be started, exits with an error, or does not take the console within 20 s, the agent shows its console window and runs the program there, unhooked: the program runs in a normal console window and nothing is lost.
What callers see
CreateProcess returns the agent's process and thread (handles and ids). The
agent lives exactly as long as the program and exits with the program's exit
code (closing the tab ends both, as with any tab), so a caller that waits for
the process or reads its exit code gets the program's. The process id is the
agent's, not the program's, and the program's parent is the agent; a caller
that inspects the process image sees voyager7.exe.
Decision
- Opt-in, off by default. Settings' "Default terminal" drop-down on
Windows 7/8.1/older Windows 10 (where ADR 0014's delegation is absent) offers
"Windows Console Host" and "Voyager7 (hook)". There is no configuration key
for it: loading a config must never change a Windows setting (ADR 0014).
--diag-default-terminal=show|conhost|voyager7does the same for tests. - Per user, no administrator. Only
HKCU: theRunvalue and the cache directory. No services, noAppInit_DLLs, no system-wide or HKLM change. - Off leaves no trace. Choosing "Windows Console Host" (or uninstalling
the directory whose watcher it is) deletes the
Runvalue, stops the watcher, unloads the DLL from every process that has it (an export restores every patched entry, waits until no call is inside the hook plus 500 ms, thenFreeLibraryAndExitThread), and deletes the cache directory. If another hook has since replaced one of our entries, the DLL stays loaded and passes every call through until the process ends, rather than risk a crash. - Hosts:
explorer.exe(Windows 7's Explorer and its folder windows run in it).--v7-defterm-hosts=a.exe,b.exeon the watcher's command line names others (tests use their own host program). - Exclusions: the built-in names above, plus
v7-default-terminal-exclude(a comma-separated list of program file names that keep their console window). The watcher reads it when it starts. - New instance behaviour: like ADR 0014: a
+new-windowrequest to the running instance of the class, or a first window. - Bitness: x64 only. Voyager7 is a 64-bit program; Windows 7 x64's Explorer is 64-bit. 32-bit (WOW64) hosts are skipped: hooking them would need a second, 32-bit DLL and a 32-bit loader. 32-bit console programs started by a 64-bit host are handed over normally.
- Robustness: every hook passes through to the original call when the
decision says no, on any error before the hand-over, and when the hook is
turned off; the hook never waits for Voyager7 (the agent does), so Explorer
cannot hang on it. The DLL has no panicking code path (no indexing, no
unwrap; workspace lints) and no allocation beyond
HeapAllocfor one command line. - Antivirus: loading a DLL into Explorer with
CreateRemoteThreadand patching import tables is what malware does too, and behaviour-based antivirus products can flag or block it (the watcher, the DLL, or Explorer's hand-over). Voyager7 is unsigned for the alpha, which makes that likelier. Settings says so when the hook is chosen; if it is blocked, consoles keep opening in console windows. - Size: the DLL ships in the Setup and the ZIP (
v7-defterm.dll, core component). standalone-min carries only the code invoyager7.exe(watcher, agent mode, adoption); there the choice needsv7-defterm.dllbeside it, and Settings says so (ADR 0014's OpenConsole precedent). - Setup: an upgrade stops the directory's watcher before replacing files and starts it again afterwards (Explorer keeps its loaded copy from the cache, so files in the install directory are never locked by it); uninstall turns the hook off as above.
Not covered
- Elevated programs ("Run as administrator", or a manifest asking for it):
Explorer starts them through the AppInfo service, not
CreateProcess, and a medium-integrity Voyager7 could not host them anyway. They keep conhost. - Programs started by processes that are not hosts (Task Manager's "New
task", a console's own children, services, scheduled tasks), and starts
through
CreateProcessAsUserW/CreateProcessWithLogonW("Run as different user"). Only Explorer's ownCreateProcessW/Acalls are hooked. - Shortcut console properties (
STARTF_TITLEISLINKNAME: font, colours, buffer size) andSTARTUPINFO's title and window position: the tab uses Voyager7's settings. - Hosts that start after the watcher ended (for example after it was killed).
Consequences and risks
- Every program Explorer starts (with eligible flags) is created suspended first and resumed after a header read: a GUI program starts a fraction of a millisecond later, unchanged otherwise.
- A console program is created twice: once suspended (terminated before it ran), once by the agent. Process-creation auditing and antivirus see both.
- The watcher is a resident
voyager7.exeprocess (no window, idle except for a snapshot every 3 s). Setup stops it for upgrades. - Explorer keeps the DLL loaded while the choice is on. A crash inside it would take Explorer down (Windows restarts Explorer); see Robustness.
- The agent never closes its pipe ends: its input wake thread can still be
blocked in a synchronous
ReadFilewhen the program exits, and closing a synchronous handle waits for that read (which waits for Voyager7, which waits for the agent). Process exit closes them. - Measured with a stand-in host (not Explorer, see Testing): Windows 7 SP1
ShellExecuteExWofcmd /k→ Voyager7 window in 322–423 ms; Windows 10 22H2 514 ms. Fallback (Voyager7 failing at once) → console window, program run, in 2 s. - Evidence:
build/fixes/win7-defterm/NOTES.md.
Testing
Nothing is loaded into the owner's Explorer in tests: the watcher takes
--v7-defterm-hosts=v7dt_host.exe, a windowless test program (the
v7dt_host example) that starts one program as Explorer would
(ShellExecuteExW, CreateProcessW/A, hidden). The registration is
tested with --diag-default-terminal=voyager7|conhost and
--diag-defterm-run-key= pointing at a key of the test's own. The DLL's
trace feature (test builds) notes each decision step in a file.
Themes, per-profile colours and +list-themes
Status: proposed. Date: 2026-11-29. Owner approved: no.
Ghostty's theme key and +list-themes action, implemented with Ghostty's
meaning (ADR 0009, ADR 0010), plus two Windows Terminal schemes and
per-profile colours (ADR 0013, "Seams left for later").
Sources read: Ghostty v1.4.0 (vendor/ghostty): src/config/Config.zig
(theme, Theme.parseCLI, loadTheme, finalize), src/config/theme.zig
(open, LocationIterator), src/cli/list_themes.zig, src/cli/args.zig
(parseAutoStruct), src/os/homedir.zig (expandHome).
The theme key
Exactly Ghostty's syntax and lookup:
- A value is a theme name or an absolute path. A value containing
,,=or a:that is not a drive letter's (index 1) is a light/dark pair,light:NAME,dark:NAME: whitespace around keys and values is trimmed, order does not matter, a quoted value is unquoted, both must be present and nothing else may be. Anything else is an invalid value. An empty value resets to the default, no theme, as for every Ghostty key. - An absolute path (
C:\…,\\server\…) loads that file; nothing else is searched. Voyager7 also expands~\and~/from%USERPROFILE%as itsconfig-filealready does (Ghostty does not expand~on Windows; this only accepts more). - A name with
\or/that is not absolute is an error: "theme "X" cannot include path separators unless it is an absolute path". - A name is looked up first in the user's themes folder, then in the
built-in collection. The themes folder is Ghostty's
$XDG_CONFIG_HOME/ghostty/themeson Windows:%APPDATA%\Voyager7\themes, orthemesbeside the file--confignames (the ruleprofilesalready follows, ADR 0013). A file there wins over a built-in theme of the same name. Names compare as the Windows file system does (without regard to case); the built-in collection matches exactly first, then without regard to case, so it behaves the same as a folder of files would. - Not found: one diagnostic per place tried, as Ghostty words them
(
theme "X" not found, tried path "…\themes\X", then… not in the built-in collection). Like every Ghostty diagnostic it is reported, not fatal: the rest of the configuration applies.
What a theme file may set, and the override rule
A theme file is a Ghostty configuration file. As in Ghostty it may set any
key except theme and config-file, which are silently ignored in a theme.
The bundled themes set only colours. Ghostty loads the theme first and then
replays the whole configuration over it, so every key the configuration
sets wins over the theme wherever it appears in the file: background =
before or after theme = both override the theme's background. Voyager7
does the same by placing the theme file's entries before all of the main
configuration's entries.
Light and dark
The pair follows Windows' app mode ("Choose your default app mode",
AppsUseLightTheme, Windows 10 1809 and later). Windows 7 and older
Windows 10 builds have no app mode, so they are light, the same rule
window-theme = system uses. When the mode changes
(WM_SETTINGCHANGE "ImmersiveColorSet"), Voyager7 reloads the
configuration with the other side of the pair, as Ghostty replays its
configuration on a colour-scheme change, and every open terminal takes its
new colours without a "configuration reloaded" notice. As in Ghostty, a
pair with two different names turns window-theme = auto into system.
The built-in collection
- Ghostty's set, pinned to v1.4.0: Ghostty v1.4.0's
build.zig.zonpinsiterm2_themestoghostty-themes-release-20261019-151001-86a776d.tgz(zig hashN-V-__8AAJ3vBQAq1fLMh5J8uWLkeDLS6WAdR2x5KcrmEyz6, verified withzig fetch; SHA-256ab2513e316372c45c9f86e3e511aebdbfa6c39fa03c210096b19152fe288505b), therelease-20261019-151001-86a776drelease of mbadolato/iTerm2-Color-Schemes in Ghostty's theme-file format: 819 themes. (Ghostty's main branch has since moved to a later release; we follow the tagged v1.4.0.) - Three Windows Terminal schemes: "Campbell", "Campbell Powershell" and
"Vintage" (Vintage added 2026-11-30 at the owner's request; no other WT
schemes),
values copied from Windows Terminal v1.25.3131.0
src/cascadia/TerminalSettingsModel/defaults.json(SHA-2565abe4fef…c5c41), written in Ghostty's format with only the keys WT sets:palette0–15,background,foreground,cursor-color. Ghostty's set has no theme with these names. 822 themes in all. - Licences: the iTerm2-Color-Schemes collection is MIT (Copyright 2011
to present Mark Badolato); its licence adds that "the copyright/license for
each individual theme belongs to the author of that theme". Ghostty
redistributes the same files on that basis and so do we; the notice
(verbatim, including that sentence) is in
licenses/Third-party.txt. Windows Terminal is MIT, Copyright (c) Microsoft Corporation; its notice is there too. Theme data is data, not code: no other program's code is used. - Storage:
cargo xtask themesdownloads the pinned archive and defaults.json (SHA-256 checked) and packs every theme intocrates/v7-core/data/themes.v7t.z: a name list, then per theme a bit mask of the 22 colour slots it sets and their RGB bytes, zlib-compressed. Every bundled file sets exactlypalette0–15,background,foreground,cursor-color,cursor-text,selection-backgroundandselection-foregroundas#rrggbb; the packer refuses anything else, so the packing is lossless.--checkproves the checked-in table matches the sources. A theme is unpacked back into Ghostty's theme-file text when it is used, so it goes through the same parser as a user's file. - Embedded everywhere: the packed table is 46,845 bytes (the text files
are 400,610 bytes; the Ghostty
.tgzis 109,286). Under the ~60 KB the owner set for embedding, so it is compiled intovoyager7.exein every package (Setup, ZIP, standalone-full, standalone-min): no Setup component, no sidecar file, and+list-themesandtheme =behave the same in every package. Measured numbers are in the report.
+list-themes
Ghostty's action, flags and output:
--plain,--path,--color=all|dark|light,--help. Plain output isNAME (user|resources), with--pathfollowed by the path, sorted without regard to case;--colorkeeps themes whose background's luminance (0.2126 R + 0.7152 G + 0.0722 B) is below (dark) or at least (light) one half. A built-in theme has no file, so its path is printed as(built in).- Interactive preview when standard output is a console and
--plainis not given: the searchable list (32 columns) with Ghostty's live preview of the selected theme (name, palette swatches, thebatsample and prompt, styled lorem ipsum), its help window (F1, ?), search (/), filter cycle (f), hex/decimal palette numbers (h, x, d), navigation (arrows, j/k, +/-, PgUp/PgDn, ^U/^D, Home/End, g/G, mouse wheel and click), copy name (c) or path (C) to the clipboard, and the save window (Enter) whosewwritesauto\theme.ghosttybeside the main configuration withtheme = NAME, as Ghostty's does. Texts say "Voyager7 configuration" where Ghostty says "Ghostty configuration". - Consoles: the preview draws a cell grid. With virtual terminal output
(Windows 10 conhost, Windows Terminal, inside Voyager7) it writes 24-bit
colour SGR in the alternate screen. Without it (Windows 7 conhost) it uses
the console API: a private screen buffer,
WriteConsoleOutputW, and a 16-entry colour table chosen per frame from the colours on screen (the theme's background, foreground and 16 palette colours first, then the rest mapped to the nearest), set withSetConsoleScreenBufferInfoEx; the original table, mode, title and screen are restored on exit, Ctrl+C included. Keys and the mouse come fromReadConsoleInputWin both modes. Clipboard copies use the Windows clipboard, not OSC 52. - UI colours (2026-11-29): Ghostty paints its list, help, search and
save windows black on white, or white on black once the terminal reports
a dark scheme (mode 2031). Voyager7 draws them in the terminal's own
default colours (SGR 39 and 49; in a 16-colour console, the console's own
attribute and table entries, kept out of the per-frame table), so the
list always matches the console it runs in. The selected row is Ghostty's
(
❯ name ❮, #00aa00 on #333333 dark or #aaaaaa light, hover #222222 or #bbbbbb), and dark or light comes from the console's default background in its colour table, else Windows' app mode. In 16 colours the selected row's background keeps its own slot. A colour that would sit unchanged in its own slot is nudged one step, because the Windows 7 scraper reads a slot equal to the console's startup table as "the terminal's palette". - Title: "🛰️ Voyager7 Theme Preview 🛰️" (Ghostty's is "👻 Ghostty
Theme Preview 👻"; the satellite is for the Voyager probe), and the
console's own title back on exit. Windows 7 and 8 draw a box for an
emoji outside the Basic Multilingual Plane in text Windows draws itself
(the caption, conhost's title bar, the taskbar), so there the native
title drops such emoji, as it drops the bell mark, and
+list-themesin a plain Windows 7 console sets "Voyager7 Theme Preview"; Voyager7's tab strip keeps the satellites. - Resizing (Windows 7 console): the private buffer is as large as the shell's, so the window shrinks and grows back within it as the shell's did; the grid is drawn where the window is.
Per-profile colours (ADR 0013)
theme and the colour keys become profile-scoped: background,
foreground, palette, cursor-color, cursor-text,
selection-foreground, selection-background, the four search-*
colours, and Ghostty's bold-color, minimum-contrast,
palette-generate, palette-harmonious and faint-opacity (the last five
are accepted in a profile and, as in the main file, reported "not supported
yet" until Voyager7 implements them). Font keys and every other appearance
key stay application-wide and are still reported in a profile file.
A Surface started from a profile uses, in order:
- Ghostty's defaults;
- the main configuration's theme, then its colour keys (Ghostty's rule above);
- the profile's built-in default theme, when it has one (below);
- the profile file's theme, then its colour keys. An empty
theme =in the profile file drops the main configuration's theme (step 2 keeps only its colour keys) and the built-in default.
So a profile's theme replaces the main configuration's colours for that
profile's tabs and splits, and the profile file's own colour keys tweak its
theme. This is the one place where a profile file is not exactly "one more
config-file loaded last" (ADR 0013): in Ghostty, an earlier explicit
background in the main file would win over a theme set later, which would
make a profile's theme useless whenever the main file sets a colour. Within
each file Ghostty's rule holds.
Other tabs keep theirs. The window around the terminals (tab strip,
window-theme = auto, split dividers, the window background before the first
frame) follows the main configuration, as Ghostty's window chrome follows the
window's configuration. On a reload and on a light/dark change every Surface
re-reads its profile's colours.
The built-in default: PowerShell before 7 in Campbell Powershell
Like Windows Terminal's Windows PowerShell profile, a detected profile that
runs PowerShell older than 7 has theme = Campbell Powershell by
default (owner decision 2026-11-29). That is:
- Windows PowerShell,
powershell.exe, of any version (2.0 on a stock Windows 7, 3.0, 4.0, 5.0, 5.1): every Windows PowerShell is older than 7; - PowerShell Core 6.x,
pwsh.exe. Its version comes from what detection already knows, without starting it: thePowerShell\<version>folder of an MSI install (6,6.2.7,6-preview), else the major version in the exe's file version resource. Apwsh.exewhose version cannot be read (a Store app alias, the .NET global tool or Scoop shim, which in practice install 7 or later) counts as 7 or later.
PowerShell 7 and later keep Ghostty's colours. The decision follows the
profile's command as it is after its profile file is applied, and only
detected profiles get it: a profile file that is not a detected profile
(or Ghostty's command) never gets a built-in theme.
The default applies only when all of these hold:
- that profile is not the default profile (
v7-default-profile, or the fallback, which is Command Prompt orcommand's profile). The default profile always keeps Ghostty's default colours, like every other profile; - the main configuration (files, includes, CLI) sets neither
themenor any profile-scoped colour key: then the user's choice applies everywhere; - the profile's own file (
profiles\Windows PowerShell.ghostty, …) sets neitherthemenor any colour key: then the file's choice applies.
Every other profile (Command Prompt, PowerShell 7 and later, Git Bash, Nushell, MSYS2, Cygwin, WSL, profile files) uses Ghostty's default colours. So on Windows 7, where Command Prompt is the default, a cmd tab is in Ghostty's colours and a Windows PowerShell tab in Campbell Powershell. Without user configuration the default profile is Command Prompt on every Windows version (the fallback above), Windows 10 included.
Alternatives considered
- A Setup component and sidecar file, only Campbell embedded in
standalone-min: smaller standalone-min by about 46 KB, but
theme = Draculawould work in one package and not another, and both+list-themesand the theme error would need a "not installed" branch. Rejected because the measured cost is under the owner's threshold. - Shipping the 821 text files: 400 KB on disk and 821 files to install; no gain over unpacking on use.
- Literal Ghostty layering for profiles (main explicit colours beat a profile's theme): rejected above.
- Profile appearance only through
palette/backgroundkeys, notheme: rejected; the owner asked for themes per profile.
Consequences
- Any Ghostty
theme =line works unchanged, with the same 819 names and the same precedence;+list-themesexists. voyager7.exegrows by the packed table and the preview code (numbers in the report).- Tabs of PowerShell before 7 change colour for users without colour
settings; setting
themeor any colour key, a colour in that profile's file, or making that profile the default turns it off. - A theme picker in the Settings window is later work; the Settings editor
shows
themeas a text value until then.
Kitty graphics protocol
Status: proposed. Date: 2026-11-29. Owner approved: no.
Voyager7 draws images that programs send with the
kitty graphics protocol,
as Ghostty does. libghostty-vt parses the protocol, keeps the images and
places them. Voyager7 decodes PNG and zlib, and draws the placements in the
D3D11 Renderer. Before this ADR the feature was compiled out for size
(patches/ghostty/0004), and the README listed it as deferred.
libghostty-vt
- Kitty graphics are a build option of our lib-vt build (
-Dvoyager7-kitty-graphics, patch 0004).scripts/build-vt.shnow turns it on;KITTY_GRAPHICS=falsestill builds a library without image parsing or storage. - Upstream lib-vt links Wuffs whenever kitty graphics are on, for zlib, for
RGB and gray to RGBA conversion, and for one src-over blend used by
animation frames. That is 107,223 bytes of x64 code, and the binary already
links an inflater (miniz_oxide). Patch 0010 removes Wuffs from lib-vt:
- Conversion and blending are plain Zig loops with Wuffs' 16-bit arithmetic (the upstream blend test still passes).
- zlib goes through a new sys callback,
GHOSTTY_SYS_OPT_DECODE_ZLIB = 64, numbered clear of upstream options. PNG already goes throughGHOSTTY_SYS_OPT_DECODE_PNG, which upstream leaves unset for lib builds.
- Voyager7 installs both callbacks once per process (
v7_vt::graphics):- zlib is
miniz_oxide, bounded by the limit libghostty passes. - PNG is our own decoder on the same
miniz_oxide: all colour types and bit depths,PLTE/tRNS, all five filters and Adam7. Ancillary chunks other thantRNSare ignored, as Wuffs ignores them by default. Dimensions are capped at 10,000 (Kitty's and libghostty's limit).
- zlib is
- The render state lists every image placement on screen: fixed placements, relative placements and Unicode placeholder cells (U+10EEEE), with layer, z-index, destination size and source rectangle worked out. Voyager7 reads only that list (as the header asks), and reads pixels from the storage when an image's generation changes.
Transmission media
t= | Medium | Voyager7 |
|---|---|---|
d | direct, base64 chunks | always |
f | file | on: upstream's Windows path checks refuse UNC, device, NT object and reserved device names before the open, and anything but X:\... after it |
t | temporary file | on: the canonical path must be under the user's GetTempPathW directory (or /tmp, /dev/shm) and contain tty-graphics-protocol; the file is deleted after reading |
s | shared memory | on: a named file mapping (below) |
Windows has no POSIX shared memory. WezTerm, the Windows terminal with kitty
graphics, treats the name as a file mapping: OpenFileMappingW,
MapViewOfFile, and VirtualQuery for the size. Voyager7 does the same
(patch 0010, readFileMapping), with two differences:
- It opens the mapping read-only (
FILE_MAP_READ); WezTerm asks forFILE_MAP_ALL_ACCESS. - It bounds the read by the committed region and the
S/Okeys.
Windows has no shm_unlink. The mapping lives until its last handle closes,
so a client keeps its handle until it no longer needs the data. A client that
closes it immediately loses the race and gets EINVAL.
Budget: image-storage-limit
Ghostty's key image-storage-limit (bytes per screen, default 320,000,000,
maximum 4,294,967,295) sets libghostty's storage limit. 0 turns the protocol
off: commands are ignored and a query gets no reply, which is how kitty says
"unsupported". Over the limit, libghostty evicts images that have no
placement before placed ones, oldest first within each group.
Drawing
- The Frame adds one quad per placement, in Ghostty's order:
- images with z below
INT32_MIN / 2before the cell backgrounds; - other negative z (and every placeholder image) between backgrounds and text;
- z >= 0 after text and the cursor, below the unfocused-split dim.
- images with z below
- Within a layer, quads are sorted by z, then by list order. Each quad is
clipped to the grid rows on the CPU, with its source rectangle cut to
match. Scaling to
c/rcells comes from libghostty's destination size. - An image quad is an ordinary
Instancewith alpha-2. Its colour carries the image generation, which libghostty never reuses. The pixel shader's existing colour-texture branch samples it. The D3D11 layer binds that image's texture and a linear sampler for that one quad, so the shaders are unchanged. - Textures are premultiplied RGBA8, keyed by generation, and shared by all layers. A texture no layer draws is released. Images larger than the device's texture limit are reduced by an integer factor before upload.
- A layer with images is drawn in full on WARP (no damage bands), because damage tracks instances, not texture contents.
- After a lost device the textures are gone. The next present recreates the device and uploads the missing ones from terminal storage before it paints, so no CPU copy of any image is kept in the Renderer.
- libghostty sizes images in cells from the cell size in pixels that
ghostty_terminal_resizereceives. Voyager7 passes its real cell size (it passed 8x16 before) and updates it when the font size or DPI changes. The same size answersCSI 14 t/CSI 16 t/CSI 18 tthrough libghostty's size callback, which Voyager7 did not install before. Programs askCSI 16 tfor the cell size. The replies are withheld on inbox conhost, which types late replies into the shell (as for DCS replies). - Animation: libghostty keeps the frames and Voyager7 drives
ghostty_kitty_graphics_animation_tickfrom the frame loop, with a timer for the next frame.
Where the sequences arrive
Kitty graphics are APC strings (ESC _ G ... ESC \). Only a backend that
passes them to us unchanged can show images. Measured on 2026-11-29:
| Backend | APC | a=q | Images |
|---|---|---|---|
| Win10 22H2, bundled OpenConsole 1.25 (default) | passed through | OK for t=d, f, t, s | drawn |
Win10 22H2, inbox conhost (v7-conpty = system) | painted as text | none (conhost answers DA1 itself) | none |
| Win7 SP1, hook (x64 programs writing VT) | streamed | OK for t=d, f, t, s | drawn |
Win7 SP1, Scraper only (WOW64, MSYS, v7-win7-vt = false) | lost | none | none |
Evidence: build/fixes/kitty-graphics/ (backends/, demo/, reflow/,
programs/yazi-win10/, gpu-loss/). On both drawing backends, images survive
a window resize (they move with their text, as the console host reflows or
repaints), scroll into scrollback and back, and Yazi's preview appears,
disappears and returns as one browses (Win10).
The console host does not know that an image moved the cursor. On Win7 the
next text can start where the console's cursor is, as many rows higher as the
image moved the cursor down. C=1 avoids it, and programs that position
their own text, such as Yazi, are not affected.
Where APC does not reach us, the query (a=q) doesn't either, so the program
sees no reply and treats the protocol as unsupported. Where it does reach us,
Voyager7 answers and draws.
Size
cargo xtask size, x64 release exe, 5,000,000-byte budget:
| Build | Bytes | Change |
|---|---|---|
main eb7b6a6, graphics compiled out | 4,737,536 | |
lib-vt graphics on, upstream (with Wuffs), no Rust side (measured on main cebcfce) | +220,160 | |
| this ADR, everything | 4,884,992 | +147,456 |
Where the +147,456 bytes go (cargo xtask size attribution):
| Part | Bytes |
|---|---|
| libghostty-vt graphics without Wuffs (terminal/core +89,969, anonymous +20,106, Zig std +5,736, PE padding +1,608) | about 117,400 |
v7_vt: PNG decoder, decoders' glue, placement list, size reports | about 11,800 |
v7_gpu_d3d11: image textures and split draws | about 1,900 |
voyager7 and runtime: quads, texture sync, animation, settings | about 16,300 |
Patch 0010 saves 107,223 bytes of Wuffs. Upstream lib-vt alone would have
cost more than this whole ADR does. The PNG decoder reuses miniz_oxide and is
part of v7_vt's 11.8 KB.
Consequences
- One more patch to rebase (0010). It touches the kitty graphics files and
src/terminal/sys.zig,src/terminal/c/sys.zigandinclude/ghostty/vt/sys.h, and removes the Wuffs wiring fromsrc/build/GhosttyZig.zig. - A PNG decoder of our own (about 300 lines, tested against the
pngcrate as a dev-dependency). - No new third-party code in the shipped binary.
"Open in Voyager7" in Explorer's context menu
Status: proposed. Date: 2026-11-29. Owner approved: no.
Windows Terminal adds "Open in Terminal" to Explorer's menu for folders. Setup offers the same for Voyager7: an Integration checkbox, "Add 'Open in Voyager7' to the Explorer context menu", checked by default.
Decision
Setup writes classic static verbs, one key per Explorer class, in the
install scope's hive: HKCU\Software\Classes for "Just me",
HKLM\Software\Classes for "All users".
| Class | Shows on |
|---|---|
Directory\shell\Voyager7 | a folder, including folders inside libraries and in the navigation pane |
Directory\Background\shell\Voyager7 | a folder's empty background, and the desktop's |
Drive\shell\Voyager7 | a drive |
LibraryFolder\background\shell\Voyager7 | a library's empty background |
Each key holds the text Open in Voyager7, Icon =
<install>\voyager7.exe,0 and command =
"<install>\voyager7.exe" "--working-directory=%V\."
%Vis the item clicked, or on a background the folder Explorer's view passes (CMINVOKECOMMANDINFOEX.lpDirectory; checked on both VMs with a marker folder). In a library that should be the library's default save folder, as Git for Windows' "Git Bash Here" relies on; it was checked with that folder supplied, not from a real right-click in a library window. Explorer starts the exe itself (no cmd), so&,^and spaces in a folder name are plain characters. The value isREG_SZ, so%in a folder name is not expanded.- A drive root is
C:\. Quoted as"…C:\", its last backslash would escape the closing quote (CommandLineToArgvW). The command adds\.after%V, and--working-directoryresolves the path withGetFullPathNameW(C:\\.becomesC:\,C:\a b\.becomesC:\a b). This also covers a UNC share root. - It is a plain launch of
voyager7.exe, so it does what any other start does: it joins the running instance (sameclass) as a new window, or starts one. Voyager7 has no "new instance behavior" setting yet. If one is added, it belongs in that plain-launch path (main.rssends+new-window), and the menu follows it without a registry change. - A test setup (
VOYAGER7_SETUP_TEST_ID) names its verbsVoyager7-Acceptanceand adds--class=voyager7-acceptance. It never touches the real keys, and its windows never join the owner's Voyager7.
The choice is slot 7 of the Choices value; /nocontextmenu leaves it out.
Every install, upgrade or re-run deletes the four keys and then writes them
again if the box is checked. Unchecking the box therefore removes them, and
a moved install folder gets fresh paths. Uninstall deletes them. An install
from before this choice existed has no slot 7, so the choice is checked on
upgrade, as the optional fonts were. +version --full reports
Explorer menu : on | off | on, keys missing | off, keys present, comparing
the saved choice with the command each key actually holds.
Why checked by default: the owner asked for it the way Windows Terminal has it, and Windows Terminal always adds its entry. It installs no code into Explorer (static keys only), it is limited to the install scope, setup removes it completely, and on Windows 11 it sits under "Show more options".
Windows 11's top-level menu: not possible without a package
On Windows 11, classic static verbs and IContextMenu handlers appear only
under "Show more options" (or Shift+F10). The new top-level menu lists only
commands that:
- are
IExplorerCommandCOM servers (in-process DLLs that Explorer loads), and - are declared in an app package manifest
(
desktop4:FileExplorerContextMenus/desktop5:ItemType).
That means the app needs package identity. An unpackaged app can get it from a sparse package ("package with external location", Windows 10 2004 and later). The sparse package must be signed with a certificate the machine trusts. A self-signed certificate would have to be installed into the machine's Trusted People or Root store, which takes administrator rights and is a security change no terminal installer should make. Voyager7's alpha packages are unsigned.
The only other route is the well-known per-user registry switch that brings back the classic menu for every app. It changes the whole of Explorer for that user and is not ours to flip.
So the top-level entry waits for a signed package. At that point it needs
an IExplorerCommand DLL (x64, plus ARM64 if that is ever shipped) and the
manifest entries. The static verbs stay for Windows 7 to 10. On 11, the
package's command would replace them (PowerToys registers both and shows two
entries).
Sources: Microsoft, "Extending the context menu and share dialog in Windows 11" (Windows blog, 2021-07-19); "Integrate a packaged desktop app with File Explorer" (learn.microsoft.com); "Grant package identity by packaging with external location" (learn.microsoft.com).
Not done: a Shift-only "Open Voyager7 profile here ▸" submenu
Profiles are per-user files (ADR 0013) that change at any time: in Settings, in a text editor, or when new shells are detected.
- A static submenu (
ExtendedSubCommandsKeyorSubCommands) is a list of registry keys, written once. It goes stale as soon as a profile changes. An all-users install's HKLM keys cannot list one user's profiles. Refreshing HKCU on every profile change would needvoyager7.exeto rewrite the registry, and it would still miss edits made while Voyager7 is not running. - A menu built at click time needs a COM shell extension (
IContextMenuorIExplorerCommand) loaded intoexplorer.exe. A crash there takes down Explorer. It also adds a DLL to Setup.
Neither is simple and robust, so the submenu is left out. A cheaper later option is one Shift-only verb that opens Voyager7 in the folder with its profile drop-down open. That needs a CLI option Voyager7 does not have yet.
Windows Terminal JSON fragments
Status: proposed. Date: 2026-11-30. Owner approved: no.
Windows Terminal opens the Ubuntu distribution in Ubuntu's purple scheme. That scheme is not Windows Terminal's: the Ubuntu Store package ships it in a JSON fragment extension, which also hides WSL's generated Ubuntu profile and adds its own. Other apps ship fragments too: Git for Windows (optionally), other WSL distributions and tools. Voyager7 reads them, read only, so that a profile looks the way the app that installed it asked (owner request 2026-11-30: "can we have Ubuntu apply theme automatically like PowerShell Campbell?").
Sources read: Windows Terminal src/cascadia/TerminalSettingsModel
(CascadiaSettingsSerialization.cpp: FindFragmentsAndMergeIntoUserSettings,
_parseFragment; DynamicProfileUtils.cpp: CreateDynamicProfile;
src/types/utils.cpp: CreateV5Uuid), MIT, for reference only; and what is on
the owner's Windows 10 VM (Ubuntu 2604.1.75.0 from the Store, Windows Terminal
1.25.3131.0).
What is on Windows 10 with Ubuntu
HKCU\Software\Microsoft\Windows\CurrentVersion\Lxss\{guid}names the distribution (DistributionName = Ubuntu) and its package (PackageFamilyName = CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc).- The package's
AppxManifest.xmldeclares<uap3:AppExtension Name="com.microsoft.windows.terminal.settings" PublicFolder="Terminal"/>, andTerminal\Fragments\terminal.jsonin the package folder holds:- a profile entry
"updates": "{2c4de342-38b7-51cf-b940-2309a097f518}"with"hidden": true. That GUID is Windows Terminal's generated GUID for the WSL distribution "Ubuntu": a version 5 UUID of the UTF-16 name inTERMINAL_PROFILE_NAMESPACE_GUID({2bde4a90-d05f-401c-9492-e40884ead1d8}); - a new profile "Ubuntu" running
ubuntu.exewith"colorScheme": "Ubuntu-ColorScheme"and"icon": "ms-appx:///Assets/Square44x44Logo.targetsize-32.png"; - the schemes "Ubuntu-ColorScheme" (background
#300A24) and "Ubuntu-Light-ColorScheme". The file has//comments, which Windows Terminal's JSON parser accepts.
- a profile entry
- Later the same day the owner finished Ubuntu's setup, and WSL (2.4 or
later) re-registered it as a "Modern" distribution: the Lxss key no longer
names a package but has
Modern = 1,ShortcutPath(a Start menu.lnk),BasePath(withshortcut.icobeside the disk) andTerminalProfilePath, a fragment WSL itself wrote:%LOCALAPPDATA%\Microsoft\Windows Terminal\Fragments\Microsoft.WSL\{0116a667-…}.json. It hides the generated "Ubuntu" the same way and adds "Ubuntu" runningwsl.exe --distribution-id {…}withstartingDirectory "~", the distribution'sshortcut.icoand"colorScheme": "Ubuntu", and defines the schemes "Ubuntu" (Canonical's values, as in the Store package's) and "Ubuntu Light". So both kinds of install give Windows Terminal a fragment. - There was no machine
Fragmentsfolder on that VM. - Windows records app extensions in its state repository database, not in
the registry: no registry key or value names
com.microsoft.windows.terminal.settings. The registry does list each user package's folder:HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\<full name>\PackageRootFolder, with the full names of a family under…\Repository\Families\<family>.
Where Voyager7 looks
Windows 10 and later only; on Windows 7 nothing is read (there is no Windows Terminal there). In this order, at most 32 files of at most 256 KiB:
%LOCALAPPDATA%\Microsoft\Windows Terminal\Fragments\<app>\*.json;%ProgramData%\Microsoft\Windows Terminal\Fragments\<app>\*.json(Windows Terminal's two folders;<app>is the source);- for each WSL distribution with a
TerminalProfilePath(WSL 2.4 and later) that is a local.jsonfile not already read: that file, with the sourceMicrosoft.WSL; - for each WSL distribution with a
PackageFamilyName: that family's main package (not a_split.resource package or a_~_bundle), itsAppxManifest.xml(at most 256 KiB), thePublicFolderof itscom.microsoft.windows.terminal.settingsextension (a plain relative folder: no.., drive or root), then<package>\<PublicFolder>\Fragments\*.json.
Windows Terminal asks the WinRT AppExtensionCatalog for every package with
the extension. Voyager7 does not use WinRT, and without it the only general
way is to open every package's manifest: 74 packages, 1.4 MB of manifests on
the owner's VM, too much for the UI thread. WSL distributions, the case that
matters, name their package in the registry, so only theirs is opened. A
packaged app that is not a WSL distribution and ships a fragment is not read;
apps that install unpackaged (Git for Windows) use the folders above.
Visual Studio's developer shells are Windows Terminal's own generators, not
fragments, and are not covered here.
What is read
The JSON is other apps' input. The parser is Voyager7's own: JSON plus
// and /* */ comments and trailing commas (what Windows Terminal's
parser accepts), at most 16 levels deep and 16,384 values; a file that does
not parse is skipped whole and reported to the debug output. Unknown keys are
ignored. Nothing is started, loaded or written.
schemes[]:nameand Windows Terminal's colour keys, converted to a Ghostty theme file:black…whitearepalette0 to 7,brightBlack…brightWhite8 to 15 (purpleis magenta),background,foreground,cursorColoriscursor-color,selectionBackgroundisselection-background. Colours are#rgb,#rrggbbor#rrggbbaa(alpha dropped). A name that is not a usable theme name (empty, too long, or containing, = : " \ /or control characters) is skipped. At most 64 schemes; the first of a name wins.profiles(an array, or{"list": [...]}):guid,updates,name,commandline,startingDirectory(both with%VAR%expanded),icon,colorScheme(a name, or{"light", "dark"}) andhidden. Everything else (fonts, cursor shape,elevate, actions) is ignored.- Icons: an
.ico,.png,.exeor.dllthat exists.ms-appx:///xis in the fragment's package; a relative path is in the fragment's folder. A packaged PNG named without its resource qualifier is also looked for as.targetsize-32,.targetsize-24,.scale-100and.scale-200. URLs, glyphs and emoji are skipped. PNG icons are read withCreateIconFromResourceEx(Windows Vista and later decode PNG icon resources), which also makesv7-profile-iconaccept a.png.
How it merges with detection (ADR 0013)
Every detected profile has the GUID Windows Terminal gives it: Command
Prompt's fixed {0caa0dad-…}, else the version 5 UUID of its name (this
matches Windows PowerShell's {61c54bbd-…}, PowerShell 7's and every WSL
distribution's).
- An
updatesentry changes the detected profile with that GUID: its scheme, icon andhidden. Its command, name and starting directory stay (a WSL fragment's~is the Linux home, which Voyager7'swsl.exe --cd ~already gives). - A new profile (with
guidorname) matching a detected profile by GUID or by name (ignoring case) changes that profile in the same way, and itshidden(default false) replaces the detected one's. So Ubuntu's fragment hides the generated "Ubuntu" and shows its own "Ubuntu": one visible "Ubuntu" profile, still running Voyager7'swsl.exe -d Ubuntu --cd ~, with Ubuntu's scheme and icon. - A file that hides exactly one detected profile and adds exactly one unmatched new profile replaces it: the detected profile takes the new one's name as its shown name (so "Ubuntu-22.04" shows "Ubuntu 22.04 LTS") and keeps its key, command and profile file.
- Any other new profile with a
nameand acommandlineis added (itsstartingDirectorytoo,~ashome), after the detected ones, unless it is hidden; at most 64 profiles in all, and a name already listed is not added again. It behaves like a detected profile.
A profile file (profiles\NAME.ghostty) still wins over all of this. A
profile a fragment hid stays hidden until its file says
v7-profile-hidden = false; Settings' Hidden box writes that.
Default themes
A fragment's colorScheme becomes the profile's default theme when every
name it uses is a fragment scheme or a built-in theme. Fragment schemes are
found as themes after the themes folder and the built-in collection, so a
profile file's theme = Ubuntu-ColorScheme finds it too. A default
theme from a fragment is looked up in the fragments first: WSL's own
fragment names its scheme "Ubuntu", the name of a different built-in theme,
and in Windows Terminal a fragment's scheme wins over an inbox scheme of the
same name. A theme = the user writes keeps Ghostty's order. A light/dark pair
becomes theme = light:A,dark:B and follows the app mode (ADR 0016).
The rule is ADR 0016's for Campbell Powershell, unchanged: the default theme
applies to a detected profile that is not the default profile, while
neither the main configuration nor the profile's file sets theme or a
colour key. A fragment's scheme takes precedence over the PowerShell rule.
Unlike the PowerShell rule, which follows the command, a fragment's theme
belongs to the profile: a profile file that changes only command keeps it,
as Windows Terminal keeps a profile's scheme when you change its command.
Ubuntu without a fragment (an older WSL, a distribution imported with
wsl --import, or fragments off): a detected distribution whose name starts with
"Ubuntu" has the built-in Ubuntu theme by default, by the same rule.
Ghostty's "Ubuntu" theme (iTerm2-Color-Schemes, MIT) has the same
#300a24 background and the Tango palette that Ubuntu's terminal used;
Canonical's fragment differs in details (black #1b1b1b for #2e3436,
white foreground). Canonical's values are not copied: they are not needed
for the look, and the package states no licence for them. With the fragment
present, its own values are used, read from the user's disk.
Settings → Profiles tags each profile row that has a default theme with the
theme and its source, muted and right-aligned where "default" and "hidden"
already appear: "Ubuntu · WSL", "Campbell Powershell · Windows Terminal",
"Ubuntu · built in". The tag is cut with an ellipsis before it reaches the
name. +version --full lists the apps whose fragments were read
("WT fragments") and each profile's default theme ("profile themes"), and
--diag-profiles lists the files, schemes and timings.
Detection also gets a WSL distribution's icon right on WSL 2.4: its
ShortcutPath is a .lnk, which is not an icon, so the distribution's
shortcut.ico beside its disk (BasePath) is used, else wsl.exe's.
The key
v7-profile-fragments: "Add the profiles, icons and colour schemes that
other apps give Windows Terminal in JSON fragments, such as Ubuntu's, on
Windows 10 and later. Values: true, false. Default: true." Fragments are read
only while v7-profiles and v7-profile-detect are on. Windows Terminal has
no such switch, but it lets users disable a fragment source; a switch keeps
Voyager7's list predictable for users who do not use Windows Terminal.
Consequences
- An Ubuntu tab looks as it does in Windows Terminal, with Ubuntu's icon, unless it is the default profile or the user set colours.
- Detection reads up to 32 more small files and one manifest per packaged
WSL distribution, once per configuration load, on the UI thread
(timed in
--diag-profilesasfragments_us). - Packaged non-WSL fragment apps are not covered without WinRT.
Per-monitor DPI awareness
Status: proposed. Date: 2026-11-29. Owner approved: no.
Until now voyager7.manifest declared no DPI awareness. Older notes
(docs/history/step6-fixes-2026-11-08.txt, the packaging acceptance) kept "the
system DPI virtualization policy" on purpose. At 125-200% scaling Windows
then drew Voyager7 at 96 DPI and stretched the bitmap, so text was blurry.
Moving a window to a monitor at another scale did not lay it out again.
The owner asked for this to be fixed. Ghostty and Windows Terminal both
render at the monitor's own DPI.
Decision
-
Manifest.
voyager7.exedeclares<dpiAware>true/pm</dpiAware>and<dpiAwareness>PerMonitorV2, PerMonitor</dpiAwareness>. Windows reads it as follows:- Windows 10 1703 and later: Per-Monitor V2.
- Windows 10 1607: per-monitor (v1), plus
EnableNonClientDpiScalinginWM_NCCREATE. - Windows 8.1: per-monitor (v1).
- Windows 7: system aware. Windows 7 has one DPI for every window, and it can only change at sign-in.
voyager7.com(a console launcher with no windows) andvoyager7-setup(alreadytrue) are unchanged. The hook and default-terminal DLLs run inside other processes, which keep their own awareness. -
No new imports.
GetDpiForWindow,GetDpiForMonitor,GetSystemMetricsForDpi,AdjustWindowRectExForDpi,EnableNonClientDpiScalingand the awareness queries are resolved at run time (v7-platform-windows/src/dpi.rs).cargo xtask packagestill passes the Win7 import check. -
One DPI per terminal window. A terminal window records its DPI in the
V7Dpiwindow property:- at
WM_NCCREATE, from Windows:GetDpiForWindowon 10, the monitor's DPI on 8.1, the system DPI on 7; - on every
WM_DPICHANGED, which also moves the window to the rectangle Windows suggests.
The app sees the change from
Window::dpi. It then measures cells and padding again for every surface, and every pane fits its grid again (the PTY is resized when the grid changes). The atlas, colour emoji, the nostalgia bitmap font's whole-pixel scale, the cursor and the kitty cell size all follow from the newGeometry. The swap chains follow the new client size. - at
-
Popups follow their window. Child windows and owned popups take their DPI from their window: the tab strip, caption, menus, palette, toasts, find bar, resize labels and progress bar. Settings and the Inspector record their owner's DPI when they open. After that they keep their own DPI. On their own
WM_DPICHANGEDthey take the suggested rectangle and rebuild their look (fonts, dialog units) and controls. About is made again where it was. A new window gets the DPI of the monitor it opens on. A tab torn off onto another monitor keeps its logical size and its grab point. -
Ambient DPI for drawing helpers. Code that draws without a window at hand (
app_ui::px, the caption and strip units, card shadows) readsdpi::current(). That is the DPI of the window whose message or app-loop turn is running, set by adpi::Scopein every window procedure and in the app loop. Outside any scope it is the system DPI. All UI runs on one thread, so this is one atomic, not thread-local state. -
Windows' own sizes. Two kinds of size are adjusted:
- Fonts from
SPI_GETNONCLIENTMETRICSandSM_CXVSCROLLcome at the system DPI. They are rescaled to the window's DPI. - The frame sizes that Windows draws come from
GetSystemMetricsForDpiandAdjustWindowRectExForDpi, at the DPI Windows gives the window. This covers caption height, resize border and padded border.
- Fonts from
-
Padding.
window-padding-x/-yare points, as in Ghostty (scaledPadding). They become pixels at the window's DPI, which is carried inrender::Place, not at the system DPI. -
+version --fullreports the system DPI and the awareness. It adds each monitor's DPI when one differs from the system DPI. An unaware process still shows what Windows scales it to.
Testing without touching the owner's display settings
The test VMs have one monitor, and their scale is a per-user setting on the
owner's account, so it stays unchanged. --diag-dpi=N makes every window
open at N while the system DPI stays real, as on a second monitor at
another scale. With that flag, message 0x8060 (dpi::DIAG_CHANGE, wParam
= DPI) sends the window the WM_DPICHANGED a move to such a monitor would.
Two things are left untested this way:
- On Windows 10 the frame Windows draws stays at the real DPI, while a real Per-Monitor V2 move scales it.
- Windows 7 never changes DPI at run time. A fake there shows our client drawing at N under a native caption at 96.
Consequences
- The text is sharp at every scale. The window keeps its logical size and layout when it moves between monitors.
system_dpi()keeps its name and now means only the system DPI. New code should useWindow::dpi,dpi::ofordpi::current.- Size cost: 10,240 bytes (
cargo xtask size, 5,301,760 on main 0ce8d9f, 5,312,000 with this change). Most of it is the run-time lookups and the rescaling paths of Settings, the Inspector and About.
Quick terminal and global keybinds
Status: proposed. Date: 2026-11-29. Owner approved: no.
Ghostty's quick terminal is a drop-down terminal that slides in from a screen
edge when its key is pressed, from any program. Voyager7 implements it for
Windows 7 and later with Ghostty's names (ADR 0009, ADR 0010): the
toggle_quick_terminal action, the quick-terminal-* keys, the global:
keybind prefix and +toggle-quick-terminal.
Sources read: Ghostty v1.4.0 (vendor/ghostty): src/config/Config.zig
(quick-terminal-*, QuickTerminalSize.calculate, keybind prefixes),
src/input/Binding.zig (toggle_quick_terminal), the macOS
Features/QuickTerminal/* controller, window, position and size, and the GTK
class/window.zig and class/application.zig (toggleQuickTerminal,
isQuickTerminal, handleActiveState).
The window
The quick terminal is a Voyager7 window with tabs, splits, menus, search and the Inspector, like any other. What differs:
- It is a borderless popup (
WS_POPUP), top-most (WS_EX_TOPMOST, macOS uses the floating level) and a tool window (WS_EX_TOOLWINDOW), so it is never in the taskbar or Alt+Tab, shown or hidden. Ghostty's quick terminal is anNSPanelon macOS and a layer-shell surface on Wayland; neither is in the Dock's or the task switcher's window list. - No title bar: no Windows 10+ custom caption, no Windows 7 Aero frame or
caption overlay. The tab row follows
window-show-tab-baras it would without a caption:autoshows it from two tabs,alwaysalways,nevernever. GTK hides its header bar in the quick terminal the same way. - Programs cannot size it:
resize_windowrequests and DECCOLM leave it as it is (GTK'sresizeSurfacerefuses for the quick terminal).toggle_maximizedoes nothing.toggle_fullscreenworks; hiding leaves fullscreen first, as on macOS. - Its programs get
GHOSTTY_QUICK_TERMINAL=1in their environment, as Ghostty's do. - There is one per instance. Hiding keeps every tab and program running. Closing its last tab closes it; the next toggle opens a new one (GTK's behaviour; macOS hides it instead because its quick terminal has no tabs).
- A new window from it (
new_window, the ▾ list) is a normal window.+new-tabgoes to the focused window, which may be the quick terminal, else to the newest normal window.goto_windowskips a hidden quick terminal. - Taskbar tab thumbnails (
v7-taskbar-tabs) are off for it: they would put its tabs in the taskbar. window-save-statedoes not save it, and an instance started for it (--v7-quick-terminal, below) restores no saved windows: Ghostty does not restore its quick terminal either.
Placement
quick-terminal-size is Ghostty's: one or two sizes, each N% of the
screen or Npx, a bare number is an error. The primary axis is the height
for top and bottom, the width for left and right; center takes the
monitor's orientation. Without a size: 400 px on the primary axis and the
full secondary axis, or 800 × 400 centered (Ghostty's calculate). The
window is centered on its secondary axis, as macOS does.
The screen is a monitor's work area (the taskbar excluded), as macOS uses
visibleFrame. quick-terminal-screen:
| Value | Windows |
|---|---|
main (default) | the primary monitor ("Make this my main display") |
mouse | the monitor under the pointer |
macos-menu-bar | the primary monitor (the taskbar's), as Linux treats it like main |
Windows are per-monitor DPI aware (ADR 0020). px sizes, and Ghostty's
400 and 800 pixel defaults, are 96-DPI pixels scaled to the target monitor's
DPI: Ghostty's points (macOS) and logical pixels (GTK) mean the same. A share
of the screen is a share of the work area's physical pixels. The monitor, its
DPI and the size are worked out again at each show, and when the display or
work area changes while it is shown. The quick terminal takes that monitor's
DPI before it slides in (a hidden window moved to another monitor may get no
WM_DPICHANGED), and on a WM_DPICHANGED it keeps its own rectangle
instead of the one Windows suggests.
Animation
Showing moves the window from just outside the work area's edge to its place;
hiding moves it back and then hides it. The move takes
quick-terminal-animation-duration seconds (default 0.2, 0 turns it off,
capped at 5) with macOS's ease-in curve, stepped by a 10 ms window timer
against the clock, so a slow machine takes fewer steps. The clock starts at
the first step and pauses over a stall (more than 50 ms between steps, such
as a new quick terminal's first frame on Windows 7), so the slide plays
whole instead of jumping to its end.
Where the taskbar is on the edge it comes from, the slide passes over the taskbar (macOS moves the Dock aside instead); at rest the work area keeps it clear of the taskbar. Placing it just under the taskbar in the z-order was tried and left its Direct3D content unshown on Windows 10.
- Reduced motion: with Windows' "Show animations in Windows" off
(
SPI_GETCLIENTAREAANIMATION), it appears and disappears at once, as the tab strip's animations already do. centerappears in place. macOS fades it in; a layered window cannot fade a Direct3D swap chain on Windows 7, so there is no fade.- If the path from the edge would cross another monitor (monitors stacked on that side), it appears in place rather than slide across the neighbour.
- Windows 7 without composition (Basic, Classic): the window manager copies a moved window's pixels; only the band that comes into view needs painting. Each step presents the frame right after the move, and the window has no white class brush (its erase fills with the theme background), so the edge never flashes. With DWM nothing is exposed and steps do not present.
- The first show of a new quick terminal sizes and presents it while it is still hidden, so the first step already has a frame.
Focus
- Showing activates it, unless
quick-terminal-keyboard-interactivity = none. Aglobal:key gives Voyager7 the right to take the foreground;+toggle-quick-terminalpasses that right on to the running instance (AllowSetForegroundWindow). Windows' foreground lock otherwise leaves it shown on top but unfocused. - The window that was in front before is remembered, and gets the foreground back when the quick terminal hides while it still has it (macOS restores the previous application the same way).
- Toggling while it is shown hides it, focused or not (Ghostty on both platforms).
quick-terminal-autohide(defaultfalse, Ghostty's default outside macOS) hides it when another program's window takes the foreground. Voyager7's own dialogs owned by it (Settings, the Command Palette, the Inspector) do not hide it, as a sheet does not on macOS.
Keys Windows does not have
| Key | Voyager7 |
|---|---|
quick-terminal-keyboard-interactivity | none: never takes keyboard focus (WS_EX_NOACTIVATE); on-demand (default): normal; exclusive behaves as on-demand, since Windows lets no window keep the keyboard while another is in front |
quick-terminal-space-behavior | accepted, no effect: tool windows show on every virtual desktop, which is move |
gtk-quick-terminal-layer, gtk-quick-terminal-namespace | accepted, no effect (GTK Wayland only in Ghostty) |
Each is validated with Ghostty's values, so a typo is still reported.
Global keybinds
global: makes a binding work from any program. Voyager7 registers it with
RegisterHotKey on the UI thread (no window, so it outlives any window) with
MOD_NOREPEAT, and the message loop maps WM_HOTKEY to the action. While a
Voyager7 menu or a window move is open, its modal loop takes the thread's
messages and a global key pressed then is lost.
- The trigger is a physical key (
key_a,f12,backquote), its scan code mapped to a virtual key on the current layout, or a character, mapped withVkKeyScanW.catch_alland key sequences are errors forglobal:, as in Ghostty. Win (super) chords that Windows keeps for itself fail like any taken key. ctrl+aandglobal:ctrl+aare one binding, the later wins (Ghostty). While a global binding is registered its key never reaches a window, so the action runs once.- Actions:
toggle_quick_terminal,new_window,quit,close_all_windowsandreload_configact on the application. Any other action acts on the focused Voyager7 window when one is in front, and does nothing otherwise. Ghostty'sglobal:impliesall:(every surface), which Voyager7 does not have yet. - A key another program (or another Voyager7 instance,
--class) already holds cannot be registered. Voyager7 says so once per key in a toast on its first shown window and in the debug output; nothing else changes, and the binding still works while a Voyager7 window has focus. Reloading the configuration registers the new set, warning only about keys not warned before. - Hotkeys are unregistered when the configuration drops them and when the instance exits (Windows also releases a dead process's hotkeys).
+toggle-quick-terminal
voyager7 +toggle-quick-terminal [--class=CLASS] asks the instance with that
class (default: the configured class) to toggle its quick terminal over the
local IPC pipe (V7IPC1, which now accepts +toggle-quick-terminal), and
exits 0. Without a running instance it starts one detached, as +new-window
does, with --v7-quick-terminal: that instance's first window is the quick
terminal, shown at once. A hotkey program, a shortcut's key or a script can
toggle it this way without global:.
Consequences
- Code:
v7_core::quick_terminal(keys, sizes, geometry, easing; tested on the host),v7_platform_windows::quick(monitors, the animation, focus, hotkeys) and the application'squick.rs. The shared window, tab and loop code gets small hooks only. v7_core::bindingskeeps aglobalflag per binding;+list-keybindsprints it back.- No new third-party code.
Guides
Documents kept current with the code: how Voyager7 is written, tested and measured.
- STYLE.md: TigerStyle adapted for Voyager7, enforced by lints.
- testing.md: the seams, the golden rules and the budgets.
- test-results.md: recorded test runs.
- dependencies.md: the allowlist, with a reason per crate.
- terminal-rendering.md: rendering lessons and acceptance checks.
- size.md: executable size and VT throughput.
- memory.md: idle memory and visible-grid storage.
- emoji-sidecars.md: the bundled font manifest.
- filepilot.md: File Pilot as the reference for a small, fast executable.
- references.md: the local reference checkouts and what each is for.
Voyager7 style
Adapted from TigerStyle on 2026-11-05 for a Rust terminal emulator. Where a TigerBeetle rule is changed, the change and its reason are stated. Tools enforce what they can; the rest is review.
Priorities
Safety, then performance, then developer experience. A change that improves the third at the cost of the first two is rejected. Readability is a means to safety, not a goal on its own.
Simplicity and debt
- Spend design time before code. The simple design is usually the last revision; be willing to throw a draft away.
- No known showstoppers ship: no unbounded loop, no exponential algorithm, no allocation in a hot path "for now". Missing features are fine; shipped features meet the goals.
- Do the work once. A "fix later" comment is a defect.
Control flow
- Simple, explicit control flow. No recursion. No clever iterator chains where a loop with a bound reads better.
- Every loop and queue has a fixed upper bound. A loop that is meant to run forever (the message loop, the Backend read loop) says so with an assertion on each iteration's invariants, and does bounded work per iteration.
- Split compound conditions into nested branches. Consider whether every
ifneeds anelse, and state invariants positively (if index < count). - Push
ifs up and loops down: the parent holds control flow and state, helpers compute without applying. - Functions run to completion. No function suspends with preconditions half-checked.
Limits
Everything that can grow has a cap, and the cap is named. Columns, rows, scrollback bytes, fonts loaded, fallback chain length, VT bytes consumed per tick, input events per batch, atlas size, image memory, config file size, config line length. Caps come from config with a default or from a constant with a comment saying why that number.
Assertions
- Assertions catch programmer errors. On corrupt state the correct response is to stop, write a state dump next to the config file, and exit. They stay on in release builds.
- Assert arguments, return values, preconditions, postconditions, and invariants. Aim for two per function on average.
- One condition per assertion:
assert!(a); assert!(b);notassert!(a && b). Implications readif a { assert!(b) }. - Assert the same property on two paths: before a frame is uploaded and when it is read back in a test; before VT bytes are sent and when the Scraper's oracle checks the result.
- Assert the negative space too. Tests feed invalid data and data that becomes invalid.
- A true but surprising assertion may replace a comment.
Change from TigerStyle: Rust debug_assert! is not used except in a measured
hot loop where the release assertion is shown to cost, with a comment giving the
measurement.
Memory
See ADR 0005. Allocate at initialization and at explicit reconfiguration (resize, font change, config reload). Never allocate in the per-byte, per-frame, or per-event paths. Per-frame scratch comes from one arena reset each frame. Buffers are fully used and padding is zeroed.
Change from TigerStyle: "static at startup" became "at initialization and reconfiguration", because a terminal's scrollback, fonts, and images are bounded but not known at startup.
Errors
- Every error is handled.
unwrap,expect, andpanic!are denied outside tests. - An error from the OS or a child process is a normal event, not a programmer error: the Backend ending, a font failing to parse, a GPU device being lost. These are handled, logged, and surfaced; they are never asserted.
- Slice indexing without a prior bounds check is denied; use
getor assert the bound first.
Types and arithmetic
- Stored data uses explicitly sized integers (
u16,u32,i32).usizeappears only at the indexing boundary. Change from TigerStyle: Rust requiresusizefor indexing, so the rule is narrowed rather than dropped. - Index, count, and size are different things. Add one to turn an index into a
count; multiply by the unit to turn a count into a size. Name them so the reader
can tell (
row_index,row_count,size_bytes). - Make rounding explicit:
div_ceil,div_floor, or a named helper. Pixel rounding follows terminal-rendering.md: round both edges, then subtract.
Functions
- At most 70 lines. Few parameters, a simple return type. Prefer
()overbooloveru32overOptionoverResultwhen the simpler one is honest. - Hot loops are standalone functions that take primitives, not
&self, so the compiler and the reader see exactly what is touched. - Declare variables in the smallest scope. Compute a value where it is used.
- No duplicate state. One owner per fact; derive, do not copy.
External events
Run at your own pace. Backend bytes, input events, and timers are collected and processed in batches on the program's schedule: one tick consumes at most N VT bytes and M input events, then one frame is built. The UI thread blocks when there is nothing to do; idle CPU is zero.
Naming
snake_casefor functions, variables, modules, and files. TypesCamelCase. Acronyms keep their capitalization in types (ConPtyis the one exception, for readability against Microsoft's spelling).- No abbreviations except conventional loop indices.
- Units and qualifiers last, most significant first:
latency_ms_max,scrollback_bytes_limit. - Related names have equal length where possible:
source/target. - Helpers are prefixed with their caller's name.
- Nouns over adjectives. Long flags in scripts (
--force). - Use the vocabulary in GLOSSARY.md; the words under Avoid do not appear in code.
Comments and commits
- Comments say why, in full sentences with a period. End-of-line comments may be phrases.
- Commit messages are for readers and stand alone; one logical change per commit.
- Every
unsafeblock has a// SAFETY:comment stating the invariant that makes it sound.
Formatting and lints
Enforced by tools, failing the build:
rustfmtwithmax_width = 100, four-space indentation.clippy::pedanticwith warnings denied, plusclippy::unwrap_used,clippy::expect_used,clippy::panic,clippy::indexing_slicing,clippy::too_many_linesat a 70-line threshold.#![forbid(unsafe_code)]in every portable crate.unsafeis allowed only inv7-platform-windows,v7-gpu-d3d11,v7-vt,v7-backend-conpty,v7-backend-scraper,v7-hook,voyager7-console, andvoyager7-setup(the crates that call Win32 or C directly).#![no_std]in every crate that ships on Windows (ADR 0004).- The Windows import checker runs on every Windows artifact and fails on any import newer than Windows 7 SP1 and on any Universal CRT import.
Dependencies and scripts
- Dependencies are an allowlist with a reason per entry: dependencies.md. Change from TigerStyle: zero dependencies is not practical with cosmic-text and the OS bindings; the allowlist keeps the intent.
- New tooling is a Rust
cargo xtask, not shell. Existing Python and Zig scripts stay until they need changing.
Testing
See testing.md. Tests are written before the code they test. Every golden image is approved by a person. The Windows 7 VM is the release gate.
Testing doctrine
Agreed 2026-11-05. The goal is Ghostty-level test depth for the parts Voyager7 owns. libghostty-vt brings about 3,500 terminal tests of its own, and those already run on the Windows 7 VM (test-results.md). Everything between the byte source and the screen is ours and starts untested. This document says how that changes.
Rules
- Tests first. A seam gets its failing test before its implementation. A pull of work that arrives without the test is not merged.
- The oracle comes from outside our code. Where possible the expected value is produced by something we did not write: libghostty-vt, conhost, a font file, a person looking at a PNG. A test that compares the code with itself is not a test.
- Every golden image is approved by a person. Accepting whatever the code first produced is a tautology. Approval is recorded in the commit that adds the golden.
- Goldens carry their provenance. Each golden stores, beside the image, the input bytes, the font file hash and version, the size in points and pixels, the display scale, the backend (CPU reference or WARP), and the OS it was produced on. A failure must be reproducible from that record alone.
- Linux first, Windows 7 as the gate. Anything that can run as
cargo teston Linux does. The Windows 7 VM run is the release gate; the Windows 10 VM covers ConPTY. A change is not done until both VMs are green. - Replay files are the simulator. Recorded VT byte streams and recorded input event logs, with timestamps, replay through the full pipeline deterministically. The existing VT corpus is the first set.
- Budgets are tests. The budgets below are measured by scripts on the VMs and fail the build like any other test.
Seams
| # | Seam | Input and expected value | Oracle | Runs on | Status |
|---|---|---|---|---|---|
| 1 | VT bytes to screen state | .vt file, dumped screen and scrollback | Linux goldens from upstream libghostty-vt | Linux, Win7 VM | Done, 46 cases |
| 2 | Scraper diff | Console grid before and after, emitted VT bytes | Feed the bytes to libghostty-vt; its screen must equal the after grid | Linux (pure function) | Planned |
| 3 | Hook against conhost | Scripted Console API calls in a child | ReadConsoleOutput from the hidden console must equal libghostty-vt's screen | Win7 VM | Planned |
| 4 | Key events to input | Win32 key messages with modifiers, AltGr, dead keys | Expected byte sequences per mode (legacy, kitty keyboard) from the protocol specs | Linux (encoder) and Win10 VM (messages) | Planned |
| 5 | Cell geometry | Font metrics, grid size, DPI, scale | Pixel rectangles computed by hand for the cases in terminal-rendering.md | Linux | Planned, first |
| 6 | Glyph and compositor output | Text runs, fonts, sizes, scales | Approved PNG goldens from the CPU rasterizer, Ghostty sprite-test style | Linux | Planned, first |
| 7 | Rendered frame | Replay file, config | Approved PNG goldens from the D3D11 backend on WARP, read back offscreen | Win7 VM | After the renderer settles |
Seams 5 and 6 are written before any D3D11 code. Seam 2 is written before any Console API code. Seam 7 waits because goldens churn while the renderer design moves.
What each seam misses
- Seam 2 says nothing about how conhost really behaves; seam 3 covers that.
- Seam 3 does not cover timing or races between the Hook path and the Scraper fallback; those need replay files with timestamps and a soak test.
- Seam 4 does not cover the IME.
- Seam 6 does not cover real GPU output; seam 7 does, on WARP only. Real-GPU differences are checked by eye on hardware before a release.
Font fixtures
Deterministic tests use small licensed fonts checked into the repo, as COSMIC did
with its test subsets. Tests against installed system fonts are a separate,
ignored-by-default group run on the VMs, where the installed set is known.
Budgets
Measured on the Windows 7 VM under WARP unless stated. Tightening a number needs a commit; loosening one needs an ADR.
| Budget | Limit |
|---|---|
| Executable size without sidecar fonts | 5 MB |
| Launch to first presented frame | 150 ms |
| Idle CPU with the UI thread blocked | 0% |
| Keypress to presented frame | within one display refresh |
| Heap allocations per frame and per input batch, steady state | 0 |
| Memory growth over one idle hour | none |
| Windows imports newer than Windows 7 SP1, or any Universal CRT import | none |
Where things live
tests/corpus,tests/harness,tests/win7: the libghostty-vt corpus and the Windows 7 runtime tests, built with Zig. They stay as they are.- Rust unit and golden tests live beside the code in each crate; goldens under
crates/<crate>/testdata. xtaskruns the VM suites and the budget measurements and writes results todocs/test-results/.
Test results
2026-11-05: Zero mode keeps memory committed
patches/ghostty/0001-* Win7 zero mode is now memset of the dirty prefix then
VirtualAlloc(MEM_RESET), replacing decommit/recommit (no recommit, no panic path).
- OOM test (now asserts the new contract). 64 MiB Job Object quota plus a competing allocator thread: 256 rounds of fill, zero decommit, full zero check and recommit. The helper committed 0 bytes throughout and the quota stayed exhausted. Child exit 0 in 1,094 ms, no panic, no VM effect.
- Full Win7 x64 rerun. Ghostty suites: 3,316 + 3,803 passed, 35 + 35 skipped, 0 failed. The 60 s wait/wake stress test made 5,252,055 handshakes and passed. The memory reset test passed on 1,600 ranges in both modes.
- Native corpus: 40 cases, 0 failures.
2026-11-05: Zig patch without the x86 branch, and the out-of-memory recommit test
- Zig patch
7b9439f. The 8-byte compare is now a single atomic u64 load. The Ghostty suite ran against a freshly rebuilt view of the Zig lib, which contains the new code (27694edfixed the stale-view bug). Win7 x64 results: 3,316 + 3,803 passed, 35 + 35 skipped, 0 failed. The 60 s wait/wake stress test made 5,108,600 handshakes and passed. The memory reset test passed on 1,600 ranges. - Out-of-memory recommit test (
53df1cf). The test runs in a child process capped at 64 MiB by a Job Object. A real recommit failure happened on attempt 4. The child exited with code 3 in 31 ms, printingterminal memory recommit failed. There was no hang, no access violation, no error dialog, and no effect on the VM. See tests/win7/REPORT.md.
2026-11-05: x64-only rerun
Voyager7 is now x64-only. This rerun is against the build with all x86 targets, helpers and 32-bit goldens removed, and with the 32-bit test patch dropped.
- Import check: OK for
ghostty-vt.dll,vt_harness.exe, and every test exe. - Corpus: Linux 40/40. Win7 x64 40/40.
- Ghostty lib-vt suite, Win7 x64: 3,316 + 3,803 passed, 35 + 35 skipped, 0 failed (7,119 passed in total).
- Wait/wake stress: 60 s with 64 threads, 512 addresses and 1/2/4/8-byte widths: 4,237,592 handshakes, all passing.
- Memory reset: 1,600 ranges in both modes, with 3,307 MiB of background pressure, all passing.
2026-11-05: wait/wake stress and memory reset on Windows 7
Runtime probes pass on x64 and x86; full-suite x86 failures are documented. Both architectures completed 60.063 seconds of mixed 1/2/4/8-byte waits across 512 address words with 64 threads, 32,000 mutex/condition turns with 16 threads, and 1,600 memory ranges in both reset modes. The pressure thread obtained 3,273 MiB on x64 and 1,200 MiB on x86. No replacement-patch defect was found.
The complete Ghostty test step gives x64 7,119 passed, 70 skipped, 0 failed, and x86 7,091 passed, 74 skipped, 24 failed, with zero tests left unrun and zero leaks. The x86 failures are 22 native-layout expectations plus two instances of an upstream malformed-snapshot capacity-validation overflow. This decoder bug remains unfixed. The production Win7 patches are unchanged; the import checker now rejects two additional missing APIs discovered by a safe export probe.
See the full report, actual runner output, and reproduction instructions. Recommit failure under forced commit exhaustion was not tested. The final suites use ReleaseSafe with slow safety enabled; the earlier Linux baseline used Debug.
2026-11-05: harness scrollback coverage (VT-HARNESS 2)
Result: pass. All 40 cases pass on Linux (64-bit and 32-bit) and on Win7 (x64 and x86).
Full VM output is in docs/test-results/2026-11-05-scrollback-win7.txt.
- New in the dump: full scrollback rows with styles, widths and wraps, compared in both the one-shot and the chunked feed.
- 13 new cases: styled history, a partial DECSTBM region, line and byte limits, disabled history, alternate screens, DECSC/DECRC, 1048 and 1049, ED 3, and resize with reflow.
- API gap: the pinned public C API can't read the inactive screen or the saved cursor. The
dump prints
unavailable public-apifor them, and the restore cases cover them indirectly. - 32-bit results differ, and that's correct. Scrollback limits are byte budgets, and 32-bit
pages hold more rows.
27-stresskeeps 2,091 rows on 32-bit and 1,122 on 64-bit, and30-scrollback-limitkeeps 314 and 329.tests/corpus/expected-32/holds the 32-bit Linux results for those two cases, and the Win7 x86 output is byte-identical to them. The first VM run compared x86 against the 64-bit results, so it reported these two cases as failures (38 of 40). That run is kept in the log file above.
2026-11-04: libghostty-vt on Windows 7 (roadmap step 1)
Result: pass. All 27 corpus cases pass on Windows 7 for both x64 and x86. Each dump matches the Linux golden byte for byte.
| Voyager7 commit | 60c5058 |
| Ghostty | vendor/ghostty at c7f68a7 (upstream main, 2026-11-03) |
| Zig | 0.17.0 from flake.nix, with patches/zig/0000-* (Ghostty upstream) and 0001-win7-memory-and-futex.patch |
| Ghostty patches | patches/ghostty/0001-win7-memory-and-futex.patch |
| Test machine | Windows 7 Ultimate SP1 (6.1.7601) x64, fully updated with the Universal CRT, running as a QEMU/KVM guest |
| Binaries | vt_harness.exe with libghostty-vt linked in statically, built for x86_64-windows.win7-gnu and x86-windows.win7-gnu (ReleaseFast) |
What we did
- The unpatched build fails. An unpatched build imports 4 functions that Windows 7 lacks:
ntdll!RtlWaitOnAddress,RtlWakeAddressAllandRtlWakeAddressSingle(Windows 8+), andkernel32!DiscardVirtualMemory(Windows 8.1 Update+). Any missing import stops Windows from loading the DLL, so it can't load on Windows 7. - Patched. The wait/wake calls are replaced with SRW locks plus a condition variable per
waiter, in both Ghostty and Zig's standard library.
DiscardVirtualMemoryis replaced withVirtualAlloc(MEM_RESET), and with decommit then recommit where the memory must read back as zero. - Import check.
scripts/check-win7-imports.pyreports OK for both DLLs and both harness exes. - Linux regression check. With the patches applied, Ghostty's
zig build test-lib-vt(Debug) gives 7,111 passed and 74 skipped. This doesn't exercise the Windows code paths. - Windows 7 run.
tests/run-win7.batgivesx64: 27 passed, 0 failedandx86: 27 passed, 0 failed. Each case runs a one-shot feed and a seeded chunked feed, and both must match. - The test catches failures. Replacing one expected result with garbage made that case fail on both architectures, and the script exited nonzero.
Not verified
- Unpatched exe on Windows 7. We ran it on the VM to confirm it fails to load. It returned no exit code, and the guest agent then stopped responding, so the result is inconclusive.
- Wait/wake under contention, and memory reset under pressure. These are queued in the README roadmap under step 1, "Next up".
How to reproduce
nix develop -c bash tests/harness/build.sh # builds the harness for native and Win7; runs the import check
nix develop -c bash tests/run-corpus.sh # Linux goldens
nix develop -c bash scripts/package-win7-test.sh # build/voyager7-win7-test.zip
# Then on the Windows 7 machine: unzip it and run run-win7.bat.
2026-11-05: public-API scrollback corpus coverage
Ghostty remains pinned at c7f68a7. The C11 harness now emits VT-HARNESS 2,
appending oldest-first scrollback rows with graphemes, widths, wraps and styles.
One-shot and seeded chunked feeds must match the entire dump, including history.
All 27 existing active-screen/metadata dumps are byte-identical to their prior
goldens after removing the format bump and appended sections. Every golden was
regenerated with the native ReleaseFast build; all are ASCII with LF endings.
Thirteen new cases (28–40) exercise styled history, partial scroll margins, page-granular pruning and disabled history, alternate-screen transitions, DECSC/DECRC and 1048/1049 with SGR and origin mode, ED 3, and resize/reflow. The styled-history and partial-region cases both retain the same 19 rows; partial-region scrolling adds no history. ED 3 and disabled history retain zero. The 6,000-line pruning case with a three-line limit retains 329 history rows (the public limit is explicitly page-granular). Resize from 40x12 to 23x8 leaves 73 history rows, including soft wraps. Restore cases recover origin mode, position and SGR before printing their marker.
API limits: inactive-screen and saved-cursor getters do not exist at this
revision. Their dump records say unavailable public-api. Tracked references
can retain individual inactive cells, but cannot enumerate arbitrary inactive
screens. Snapshot APIs preserve state without structured getters for these
fields. No internal pointers or private snapshot payloads are interpreted.
Inactive-only/saved-only cases therefore remain coverage gaps; restore/return
cases test observable effects. See the dump specification.
Linux output:
Wine used: no (native harness)
40 cases, 0 failures
Real Windows 7 Ultimate SP1 (6.1.7601), through the QEMU guest agent, output:
OK: no known post-Win7 imports
OK: no known post-Win7 imports
x64: 40 passed, 0 failed
x86: 38 passed, 2 failed
Details in results.txt
The import lines are from the build's checks of each executable before upload.
The remaining lines are the VM batch runner's output (exit code 1).
Full results.txt pulled from the VM
records both x86 failures with exit=0: their harness runs succeeded, including
chunked/one-shot equality, but history differs from the Linux x64 goldens:
| Case | Linux x64 / Win7 x64 history rows | Win7 x86 history rows |
|---|---|---|
| 27-stress | 1,122 | 2,091 |
| 30-scrollback-limit | 329 | 314 |
In both cases the entire active-screen and metadata prefix is byte-identical.
After accounting for history-local row numbering, every row, wrap, grapheme,
width and style in the common retained suffix also matches. The pruning case's
first retained line is limit-5660 on x64 and limit-5675 on x86. These retention
extent differences are consistent with the API's page-granular estimates; the
public API does not expose page geometry to determine the underlying cause.
The strict comparison deliberately keeps these failures visible rather than
truncating history or accepting architecture-specific goldens. All other cases
match the native goldens byte for byte on both Windows architectures.
Reproduction used tests/harness/build.sh, tests/run-corpus.sh, and
scripts/package-win7-test.sh inside nix develop, then
scripts/win7vm.py push-dir build/voyager7-win7-test C:\v7work\harness,
exec C:\v7work\harness\run-win7.bat, and pull for the results and mismatches.
The helper's quoted directory creation did not create missing directories;
explicit exec mkdir commands created only the harness tree before retrying
push-dir (86 files). No reboot or VM configuration changes were needed.
Dependency allowlist
Every crate Voyager7 depends on, with the reason it earned its place. Adding a crate
means adding a row. "Windows" says whether the crate may be used in crates that ship
on Windows, which must be no_std (ADR 0004).
Runtime
| Crate | Pulled in by | Why | Windows |
|---|---|---|---|
cosmic-text =0.19.0, crates.io, unpatched (no_std, swash features) | v7-text | Text Engine: shaping (harfrust), rasterization (swash), font database (fontdb). ADR 0001. If a fix is needed later it is carried as a local patch, like Ghostty. | Yes |
| windows-sys | v7-platform-windows, v7-gpu-d3d11, v7-backend-*, v7-hook | Raw Win32 and D3D11 bindings with no runtime of its own. | Yes |
| hashbrown | v7-core, v7-text | Hash maps without the standard library. | Yes |
ttf-parser =0.25.1 (already a cosmic-text dependency) | v7-text | Reads name, OS/2 and style tables for the font discovery index without a full cmap scan. | Yes |
unicode-bidi =0.3.18 (already a cosmic-text dependency) | v7-text | UAX #9 row levels at a fixed LTR base, with whole-cell reordering. no_std, hardcoded Unicode data. | Yes |
| unicode-segmentation (already a cosmic-text dependency) | v7-text | Splits text into extended grapheme clusters for per-cluster fallback. | Yes |
libm 0.2 (already a text-stack dependency) | v7-core, v7-tab-strip | no_std exponential animation, pixel rounding and rounded-corner geometry. | Yes |
| wgpu | v7-gpu-wgpu (Linux and macOS only) | GPU backend selecting Vulkan, Metal or OpenGL. ADR 0003. | No |
Transitive crates of cosmic-text (harfrust, swash, skrifa, fontdb, ttf-parser, unicode-* tables) are accepted with it and reviewed on each cosmic-text bump.
Build and test only
| Crate | Pulled in by | Why |
|---|---|---|
| png | golden tests | Decode and encode golden images; reference decoder for v7-vt's own PNG decoder (ADR 0017). |
| A snapshot helper (to be chosen when seam 5 lands) | golden tests | Diff and review golden text output. |
Not Rust
| Component | Why |
|---|---|
libghostty-vt (Zig, vendor/ghostty, patched in patches/) | VT engine, linked as a static library through its C API. |
| Zig 0.17 | Builds libghostty-vt and links the Windows executables. |
miniz_oxide =0.8.9 (no_std, with-alloc) is used by CLI actions to
inflate the bounded MIT documentation and temporary animation data, and by
v7-backend-conpty to inflate the packaged exe's own copy of the hook DLL
(hook_overlay.rs), and by v7-vt to inflate kitty graphics images (o=z)
and PNG data for its own PNG decoder (ADR 0017). No runtime compression or extra system DLL is involved.
The CLI also uses the already-allowlisted ttf-parser =0.25.1 to distinguish
color-capable font containers for show-face --presentation.
Terminal rendering: lessons from the COSMIC fixes
Recorded 2026-11-05, after fixing disconnected borders, Powerline seams, and emoji fallback in local COSMIC Terminal and cosmic-text checkouts. This is guidance for Voyager7's planned D3D11/DirectWrite renderer, not a claim that Voyager7 already implements or passes these checks.
Voyager7 draws box drawing, block elements, shades and Powerline arrows itself
(U+2500 to U+259F, U+E0B0 to U+E0B3) as cell-sized sprites by default, like Ghostty,
Windows Terminal, Alacritty and kitty, so they join at every font, size and scale.
A config switch turns this off to use the font's own shapes (owner decision,
2026-11-06). Every other character keeps the selected font's glyph shape: fix
metrics, shaping, placement, and compositing at the shared rendering layer rather
than hiding a problem there with hand-drawn substitutes. The COSMIC fix removed its
custom box-drawing replacement because it masked a placement bug; with the uniform
integer cell grid in v7-core, sprites no longer hide such bugs. Rectangles for cell
backgrounds, selections, cursors, and text decorations are a separate concern.
Keep the layers separate
VT bytes -> libghostty-vt cells and attributes
-> grapheme shaping and font fallback
-> physical-pixel placement and glyph rasterization
-> background/glyph compositing -> display
Using libghostty-vt does not give Voyager7 Ghostty's font resolver or renderer. The existing VT corpus checks terminal state; it cannot prove that glyphs connect, emoji have the right presentation, or GPU pixels are correct. The renderer needs its own tests.
What failed and what fixed it
| Symptom | Cause in the COSMIC investigation | Lesson for Voyager7 |
|---|---|---|
| Vertical borders looked dashed | Row spacing used an arbitrary font-size multiplier instead of the selected font's line metrics. Hinting also affected cell-spanning outlines. | Derive the grid and baseline from actual font metrics; test hinting with the chosen rasterizer. |
| Repeated horizontal borders had visible bands | Overlapping outlines were antialiased independently, then their partial coverage accumulated. | Correct geometry/coverage before final blending; moving glyphs alone does not fix double-covered edges. |
| Powerline arrows retained a thin vertical seam | Fractional glyph advances met backgrounds whose origins and widths were rounded separately in logical pixels. | Use a shared physical-pixel grid for font geometry, glyph placement, and background edges. |
| Emoji appeared monochrome or used the wrong fallback | Unrelated symbol/monospace fonts won fallback before the appropriate emoji font. | Resolve presentation and fallback deliberately, not by the first font containing the code point. |
| Emoji spacing drifted | A pixel advance was rounded using an em-based width. | Keep units explicit and preserve terminal cell allocation through shaping. |
| COSMIC used Noto while other apps used Apple emoji | Its built-in fallback order overrode the desktop's emoji preference. | Separate system/user font preference from the renderer's built-in last resorts. |
Metrics and physical pixels
-
Use one grid for glyphs, backgrounds, cursor, selection, decorations, and input coordinates. Snap the viewport origin as well as cell boundaries.
-
Round both absolute edges of a rectangle, then subtract. Do not round its origin and width independently. With display scale
s:left_px = round((origin + start) * s) right_px = round((origin + end) * s) width_px = right_px - left_px -
Voyager7's policy (
v7-core, 2026-11-06): the cell size is rounded to whole physical pixels once,cell_w = round(advance * s)andcell_h = round((ascent + descent + line_gap) * s); the viewport origin snaps once,origin_px = round(origin * s); every edge isorigin_px + index * cell_size. All cells are identical, so instanced quads, the glyph atlas and box-drawing sprites share one cell size, and the rule above holds because both edges are integers. The font is scaled uniformly byglyph_scale = cell_w / (advance * s)to fit. -
The COSMIC fix rounded the physical cell width, then scaled the whole font uniformly to fit that width. Merely changing the advance left native outlines crossing fractional cell edges. This is one tested policy, not a requirement to copy that exact rasterizer setup into DirectWrite.
-
Measure an unconstrained font when changing size. COSMIC's measurement needed a fresh buffer so the previous forced monospace width did not feed back into the next zoom measurement.
-
Recompute metrics and invalidate affected caches when font, size, weight, stretch, or display scale changes. Do not mix logical units, physical pixels, em fractions, and UTF-16 offsets in unnamed values.
-
Do not disable DirectWrite hinting blindly because disabling Swash hinting helped COSMIC. Prove the behavior with DirectWrite and the actual Windows font. A font whose artwork intentionally leaves space will not necessarily connect under every grid policy.
Coverage, colors, and caching
The COSMIC fix combined compatible overlapping font outlines before antialiasing. It used geometric tessellation to resolve the overlap; simply concatenating paths did not remove the artifact. Counter holes, winding, and glyph overhangs must survive this operation.
Do not merge unrelated colors, fonts, or layers as though they were one outline. Preserve draw order. Test partially transparent text as well as opaque text.
Monochrome glyph masks take the foreground color. Color emoji retain their own colors; do not tint them as monochrome masks. Define whether texture pixels are straight or premultiplied alpha and keep upload, shader, and blend state consistent. Likewise, decide the blend color space explicitly. Ghostty's linear-corrected blending is useful prior art, but changing gamma does not repair a geometric gap.
Cache keys must distinguish everything that changes the raster: font face and variation, size at the physical scale, weight/style or synthesis, hinting/rendering mode, and subpixel position. Include colors/palette when caching colored output. An integer translation can often reuse an image; a changed subpixel origin cannot automatically do so. Keep GPU allocations alive through submission and bound cache growth when users zoom or switch fonts.
Emoji presentation is separate from emoji artwork
Resolve each extended grapheme cluster as a unit. Keep variation selectors, skin tones, regional-indicator pairs, and ZWJ sequences attached to their characters. Splitting a shaping run must not let one cluster's selector affect its neighbor. Use the VT engine's cell allocation; glyph count, UTF-8 byte count, UTF-16 code-unit count, and terminal column count are different quantities.
| Input | Meaning / tested COSMIC policy |
|---|---|
U+26A1 (⚡), no selector | Unicode defaults to emoji presentation. The fixed COSMIC policy nevertheless preserves the explicitly selected primary font's glyph when it has one; this kept Caskaydia's plain lightning. |
U+26A1 U+FE0E | Request text presentation. |
U+26A1 U+FE0F | Request emoji presentation, then choose an appropriate emoji font. |
😀, 👍🏽, 👩💻, 🇯🇵 | Resolve and shape whole emoji clusters, with consistent cell allocation. |
No FE0F does not mean “must be monochrome.” Bare lightning is emoji-default
in Unicode's data.
Rexnux's colored bare lightning was not by itself a Unicode bug. Keep this
distinction explicit when defining Voyager7's policy. See
Unicode presentation rules.
Font selection then chooses the artwork:
- Rexnux used Pango/Fontconfig and picked the installed Apple Color Emoji.
- Ghostty's Linux renderer included a bundled Noto emoji fallback. Sharing its VT engine did not make Rexnux share that font choice.
- COSMIC originally preferred its built-in Noto entry. The fix queried Fontconfig's
emojipreference once per font system, ahead of built-in fallbacks, while retaining explicit font choices and selector behavior. A temporary Noto override was tested too: the fix followed the preference, not a hard-coded Apple name.
For Voyager7, use a Windows-appropriate resolver or explicit configurable fallback list. Do not add Fontconfig just to imitate the Linux fix. Query/cache preferences outside the per-frame path, distinguish missing glyphs from unsupported color-font formats, and retain a usable fallback. A family name containing “Emoji” is not a substitute for checking glyph and format support.
Windows 7 needs a deliberate color-font plan
The presence of dwrite.dll on Windows 7 does not establish color-emoji support.
Microsoft lists Windows 8.1 as the minimum client for
IDWriteFactory2::TranslateColorGlyphRun.
Do not assume newer DirectWrite interfaces or a particular emoji font are present
on a stock Windows 7 installation. Capability-check newer paths and define the
Windows 7 color-glyph implementation or fallback before promising color emoji.
Test the selected font formats, not just whether the font can be enumerated.
Renderer acceptance checks
Turn these into pixel/shape tests when implementing roadmap step 2. Keep the input bytes, font identity, font file/version, size, scale, and renderer backend with each result so a failure can be reproduced.
- Light, heavy, and double borders; corners, intersections, and long repeated horizontal/vertical runs. Assert coverage does not oscillate at cell boundaries.
- Left/right Powerline arrows joining contrasting backgrounds, at different columns and fractional viewport origins. Check both sides of the stem and verify the arrow was actually drawn; a blank image must not pass.
- Several sizes (COSMIC checked 10, 12, 16, 20, 24) and scales (100%, 125%, 150%, 200%), regular and bold. Test zooming back and forth and supported DPI changes.
- The selector cases above, alternating text/emoji hearts, skin tones, flags, and joined emoji. Assert selected font, monochrome versus color raster, glyph/cell allocation, and visible pixels—not just “shaping succeeded.”
- Preferred emoji font installed, absent, and overridden; a font missing a
requested glyph; regular emoji in bold text. Deterministic tests need small
licensed fixtures; separately test real installed fonts. COSMIC's
CosmicTestEmoji.ttfwas a test-only subset, not a runtime font substitution. - Overlapping outlines with counters (such as repeated
A), different colors, alpha, clipping, scrolling, cache reuse, and cache invalidation. - Actual GPU output, plus any software/reference renderer. Validate both dark and light backgrounds. For Voyager7, run the final rendering checks on real Windows 7 as well as newer Windows; Linux COSMIC results are not Win7 validation.
Local implementation references
These are local commits, not published upstream. The checkouts used here are
~/repo/pop-os/cosmic-term and ~/repo/pop-os/cosmic-text.
Ghostty and Rexnux comparisons used ~/repo/ghostty-org/ghostty and
~/repo/m-i-z-u-k-i/rexnux, respectively. Their renderer details are not a promise
about Voyager7's pinned libghostty-vt version or its future renderer.
| Repository / commit | What to inspect |
|---|---|
cosmic-term a029386 | Native line metrics and preservation of rasterizer flags; the custom box-drawing replacement was removed. |
cosmic-term a3434db | src/glyph_compositor.rs: outline overlap, color preservation, cache behavior, and GPU/software pixel tests. |
cosmic-term ec2b28b | src/font_grid.rs, src/terminal_box.rs: physical grid, shared background edges, font/DPI changes, and installed-font regressions. |
cosmic-term e9ca042 | Lockfile integration of the system emoji preference fix. |
cosmic-text 790c900d | src/shape.rs, src/font/fallback/mod.rs, tests/emoji_fallback.rs: presentation runs, fallback order, and pixel/em advance correction. |
cosmic-text 2c9d3bad | src/font/fallback/unix.rs: system emoji preference; additional selection and installed-font tests. |
Voyager7's reusable visual input is
tests/visual/unicode.ans, a generated UTF-8
fixture covering scripts, styles and glyphs. Run it with demo unicode through
the cmd, PowerShell or Bash runner in tests/visual/; see the
demo instructions for usage and capture.
Fixtures preserve raw escape bytes and CRLF. The cmd runner is ASCII-only with
CRLF to avoid Windows 7 batch parsing problems under code page 65001.
Focused commands in the COSMIC checkouts are:
# In the cosmic-term checkout:
cargo test --bin cosmic-term
COSMIC_TERM_TEST_FONT=/path/to/a/Powerline-font.ttf \
cargo test --bin cosmic-term installed_font -- --ignored
# In the cosmic-text checkout:
cargo test --lib --test emoji_fallback
COSMIC_TEXT_TEST_EMOJI_FAMILY='Installed Emoji Family' \
COSMIC_TEXT_TEST_MONO_FAMILY='Installed Monospace Family' \
cargo test --test emoji_fallback installed_system -- --ignored
Those commands validate the COSMIC implementations. They are references for Voyager7 tests, not a replacement for testing its eventual DirectWrite renderer.
Shipping emoji policy (2026-11-07)
Voyager7 ships Noto Color Emoji (CBDT) and Noto Emoji (TrueType outlines) in
fonts/, alongside Cascadia Mono and their OFL licenses. Explicit families stay
first. Emoji presentation then follows the Windows system color preference,
Segoe UI Emoji, followed by platform/installed fonts and finally Noto Color.
On Win7, where no system color emoji face exists, Noto Color precedes monochrome
platform symbol fonts. VS15/default-text keep the existing platform and installed
order, with monochrome Noto last. Missing newer emoji fall through. With the
Noto color sidecar present, emoji
coverage also requires one non-missing shaped glyph for the whole cluster, using
the pinned HarfRust shaper without font fallback. Segoe split flags/tag sequences
and split ZWJ pieces therefore fall through to Noto without font-name rules.
Without sidecars the historical fallback behavior is unchanged. This mirrors the
ordering principle in cosmic-text 2c9d3bad, read as prior art only.
Resolution reassembles complete graphemes across VT cell payloads while preserving terminal cell allocation. Text fallback checks the shaped glyph artwork so VS15 remains monochrome. Sidecar OS/2 Unicode range bits are advisory: Noto's are incomplete, so its cmap is checked directly before accepting a face. New live emoji trigger resolution and frame-cache replacement while retaining selection; ordinary ASCII digits do not. Color artwork retains its RGB and text masks retain foreground tint. No approved fixture or golden is replaced. The manifest records upstream pins, hashes, Ghostty provenance, actual Swash support and candidate reproduction commands.
Executable size and VT throughput
Measurements on 2026-11-06, x86_64, Rust 1.96, patched Zig 0.17. The gate is
5,000,000 bytes, interpreting the testing budget's MB as decimal. Sidecar fonts
are excluded. cargo xtask size builds the release executable, prints attribution,
and fails above that limit. cargo xtask size EXE MAP inspects a saved pair.
Reproduce
nix develop -c cargo xtask build-vt
nix develop -c cargo xtask size
nix develop -c cargo run --release -p v7-vt --example throughput
nix develop -c cargo build --release --target x86_64-pc-windows-gnu -p v7-vt --example throughput
python3 scripts/check-win7-imports.py target/x86_64-pc-windows-gnu/release/examples/throughput.exe
python3 scripts/win7vm.py exec 'if not exist C:\v7\w10 mkdir C:\v7\w10'
python3 scripts/win7vm.py push target/x86_64-pc-windows-gnu/release/examples/throughput.exe C:\v7\w10\throughput.exe
python3 scripts/win7vm.py exec C:\v7\w10\throughput.exe
python3 scripts/win7vm.py pull C:\v7\w10\throughput.txt build/w10/throughput.txt
The benchmark creates four synthetic streams of at least 32 MiB each: ASCII lines,
SGR color changes, CJK/emoji including a ZWJ sequence, and absolute/relative cursor
movement plus erase. It feeds 64 KiB chunks to a 120 × 40 v7_vt::Terminal, warms
1 MiB before timing, and reports the median of three independently created terminals.
Stream generation, terminal creation/destruction, and diagnostic formatting are outside
the timed region. Windows uses QueryPerformanceCounter and the application's heap;
Linux uses Instant and the host allocator. MB/s is decimal bytes per second.
This measures VT parsing/state updates, including scrollback, not rendering.
It does not establish a Renderer performance baseline. The Windows executable is
no_std and has its own process entry through v7-platform-windows.
Attribution method and limitations
The linker wrapper emits *.exe.map alongside Cargo's hashed artifact in release/deps.
Zig's cc frontend rejects both GNU -Map and MSVC /map switches; the wrapper captures
Zig's verbose LLD invocation and replays that exact command with its bundled
zig lld-link -lldmap:PATH before Rust deletes temporary objects. The second link
writes the shipped executable too, so the map corresponds to that artifact.
The report charges address intervals between symbols, bounded by each input section, intersected with PE bytes present on disk. Aliases at one address count once. PE headers, section padding, and linker-generated data are the remainder. Zero-filled virtual memory is excluded. Fat LTO folds and inlines code across crates; generic functions can mention multiple crates. Accordingly these are estimates of linked ownership, not precise independent crate costs or a claim that each table can be removed. A merged Rust data section stays in the shared data bucket because the map does not show where each named static ends and unnamed constants begin. PE unwind tables and resources are reported by section. Zig std uses module prefixes such as Io, heap, mem, array_list, and fmt. Wuffs has its own input objects and is directly identifiable.
The original executable was 3,844,096 bytes. Font discovery was being implemented in
the same checkout during this task. The mapped baseline below includes that concurrent
work and must not be presented as a byte-for-byte rebuild of the original executable.
Saved experimental artifacts and raw reports are in ignored build/w10/.
Candidates
- ReleaseSmall: rejected. With kitty graphics disabled it produces a much smaller executable, but both platforms lose throughput well beyond the 5% threshold.
- Kitty graphics/Wuffs: patch 0004 defaults lib-vt's existing upstream feature gate
off. No decoder implementation is copied or stubbed. This removes its parsing,
image storage, pixel operations, and Wuffs together. Re-enable with
KITTY_GRAPHICS=true nix develop -c scripts/build-vt.sh; raw Zig builds support-Dvoyager7-kitty-graphics=true, or an explicit-Dvt-featureslist, which takes precedence. Kitty image rendering was deferred at the time (implemented later; see kitty-graphics.md). Other VT features remain enabled. - Panic/debug machinery: upstream already uses its tiny panic handler in both
release modes and rejects accidental use of the full debug Io machinery at compile
time (
src/lib_vt.zig). No extra panic patch is justified. Assertions in Voyager7 remain enabled. - LTO/codegen/panic: fat LTO, one codegen unit, stripped symbols, and panic=abort were already configured. Retained; reducing correctness or losing diagnostics is not a size optimization here.
- Unicode duplication: Rust core, harfrust, unicode-bidi/linebreak/segmentation, and Ghostty have overlapping Unicode knowledge but different generated layouts, property sets and interfaces. Symbol identity does not prove byte equality or compatible Unicode versions. No unsafe table coalescing was attempted.
- PE: retain 4096-byte virtual section alignment, 512-byte file alignment, ASLR relocations, NX and high-entropy ASLR. Padding is small; removing relocations would sacrifice ASLR. No alignment change is justified.
cargo tree -d found actual parallel runtime versions: font-types 0.11.3/0.12.7,
read-fonts 0.37.0/0.41.0, and skrifa 0.40.0/0.44.0. Harfrust and cosmic-text use
the older family; swash uses the newer one. These are incompatible minor versions
for pre-1.0 crates; changing Cargo.lock cannot safely unify their APIs. Updating or
patching cosmic-text/swash is outside this task's profile-only Cargo ownership.
The size report combines versions under each crate's name because LTO symbols do
not reliably identify the version. miniz_oxide 0.8.9/0.9.1 is test-only through png.
Measured sizes
| Configuration | Bytes | Decision |
|---|---|---|
| Original task artifact, before concurrent font work | 3,844,096 | Reference only; no corresponding map |
| Mapped baseline, ReleaseFast, kitty enabled, Rust 3 | 3,968,000 | Before |
| ReleaseSmall, kitty disabled, Rust 3 | 3,013,120 | Reject throughput loss |
| ReleaseSmall, kitty disabled, external Rust dependencies s | 2,657,280 | Reject throughput loss |
| ReleaseFast, kitty disabled, Rust 3 | 3,429,888 | Keep feature removal |
| ReleaseFast, kitty disabled, external Rust dependencies s | 3,074,048 | Proposed final |
Disabling kitty graphics saves 538,112 bytes; Rust dependency optimization saves 355,840 more. Together they save 893,952 bytes (22.5%) against the mapped baseline, leaving 1,925,952 bytes below the decimal 5 MB gate. Workspace crates, including the VT wrapper and allocator, retain opt-level 3. The wildcard package override applies only to external dependencies. No new third-party crate was added. The example uses the existing platform crate as a Windows-only dev dependency.
| Attribution (estimated disk bytes) | Before | After |
|---|---|---|
| Ghostty Unicode | 86,752 | 83,376 |
| Ghostty Wuffs | 279,518 | 0 |
| Ghostty Zig std | 76,294 | 55,878 |
| Ghostty anonymous/shared | 306,786 | 282,612 |
| Ghostty terminal/core | 1,236,550 | 1,044,468 |
| PE headers/padding/linker | 20,247 | 20,201 |
| Rust anonymous/shared | 49,964 | 46,704 |
| cosmic_text | 156,226 | 94,823 |
| font_types | 0 | 123 |
| fontdb | 4,928 | 6,793 |
| harfrust | 452,024 | 370,288 |
| read_fonts | 243,812 | 224,965 |
| rest/runtime | 456,236 | 347,680 |
| skrifa | 320,080 | 238,285 |
| swash | 43,416 | 32,064 |
| ttf_parser | 32,960 | 12,951 |
| unicode_bidi | 16,760 | 16,738 |
| unicode_linebreak | 76,540 | 76,572 |
| unicode_properties | 0 | 0 |
| unicode_script | 0 | 0 |
| unicode_segmentation | 4,256 | 4,050 |
| v7_core | 1,696 | 1,696 |
| v7_gpu_d3d11 | 4,496 | 4,496 |
| v7_platform_windows | 18,355 | 18,531 |
| v7_text | 38,256 | 48,544 |
| v7_vt | 10,120 | 10,098 |
| voyager7 | 31,728 | 32,112 |
Zero means no separately identifiable symbol interval, not proof that a dependency has no linked code. Generic/runtime and anonymous buckets contain additional shared code and tables. Ghostty Unicode is a lower bound on named tables; anonymous table bytes cannot be reliably divided between std, Unicode, and terminal code.
Throughput results
Each cell is decimal MB/s, median of three samples, in stream order. Initial baseline and candidate runs overlapped other work on this shared host. Repeat baselines demonstrate substantial scheduling noise; they cannot support a precise 5% acceptance claim. All raw per-sample nanoseconds are retained in build/w10.
| Platform/configuration | Plain | SGR | CJK/emoji | Cursor |
|---|---|---|---|---|
| Linux initial baseline | 248.07 | 54.09 | 90.27 | 57.89 |
| Linux ReleaseSmall, kitty off | 200.50 | 41.75 | 55.87 | 47.78 |
| Linux ReleaseFast, kitty off, first run | 190.73 | 41.56 | 76.06 | 46.89 |
| Linux ReleaseFast, kitty off, repeat | 240.85 | 48.91 | 124.25 | 71.21 |
| Linux unchanged baseline, repeat | 192.97 | 29.58 | 52.03 | 33.62 |
| Linux final, repeat | 300.99 | 47.88 | 77.77 | 51.78 |
| Win7 initial baseline | 530.13 | 101.19 | 111.72 | 59.66 |
| Win7 ReleaseSmall, kitty off | 358.84 | 38.43 | 59.39 | 41.80 |
| Win7 final | 213.68 | 45.78 | 69.96 | 46.08 |
| Win7 unchanged baseline, repeat | 265.31 | 49.75 | 86.06 | 59.68 |
ReleaseSmall loses 32–62% against the initial Win7 baseline, and substantially regresses Linux too; the smaller binary does not justify it. It is not retained. The retained feature removal plus Rust optimization is worthwhile for its roughly 894 KB saving, but the throughput gate remains unresolved, requiring the parent's decision. The final Win7 run is more than 5% slower than the initial baseline on all streams. Even the unchanged Win7 baseline fell from 530.13 to 265.31 MB/s on plain text and 101.19 to 49.75 on SGR. Linux baseline repeats also vary severely. This supports host/VM contention as a confounder, not a conclusion that the retained change is free of regression. A paired baseline/final run on an otherwise idle host is needed. Rust dependency s has not separately been benchmarked for shaping or rendering; the VT benchmark does not exercise those libraries.
Validation and remaining gate
nix develop -c cargo xtask size: passes, 3,074,048 / 5,000,000 bytes.- A saved baseline extended to 5,000,001 bytes fails with
executable exceeds 5 MB. nix develop -c cargo test -p xtask: 3 passed, including PE/map interval accounting, alias deduplication, zero-filled virtual bytes, attribution, and gate boundaries.nix develop -c cargo test -p v7-vt --test corpus: 3 tests passed, including 46 fixtures.nix develop -c cargo xtask lint: passes formatting and both Clippy target passes.nix develop -c cargo xtask check-imports: passes. Final DLLs: kernel32, user32, gdi32, advapi32, d3d11, ntdll. No CRT and no forbidden known post-Win7 imports. Every benchmark exe executed on Win7 was also checked first.cargo xtask vm-smokereached Win7: 46 replays plus --smoke passed with the final 3,074,048-byte executable. I stopped that invocation after recognizing it uses the shared w7 guest directory; subsequent commands used the assigned C:\v7\w10 directory.- An equivalent smoke/replay runner in C:\v7\w10 passed Win10: 46 replays plus smoke.
- The existing four-case
xtask/src/render.rsWARP harness, compiled as a temporary host runner with only its guest directory changed to w10 and its domain restricted to Win10, passed 4/4 (dimensions, background, foreground, blank cells). It reports one draw call, zero paint allocations, and no missing clusters for these fixtures. - The full standard
cargo xtask vm-renderwas not verified on both VMs. Win7's guest agent disconnected before the final render run and throughput repeat:Guest agent is not responding: QEMU guest agent is not connected. No VM restart was attempted; the brief reserves that to the owner.
The owner must restore the Win7 guest agent, rerun final WARP checks, and settle the 5% throughput gate with controlled paired measurements before treating this as a release-ready reduction. The no-kitty build should also have a future feature-gate contract test when kitty graphics becomes part of the product's test corpus.
Ownership handoff: the benchmark dev dependency causes Cargo to add
v7-platform-windows to v7-vt's Cargo.lock dependency list. Cargo.lock was not an
owned file, so that generated entry was removed after verification; the parent must
regenerate/retain it when integrating. Other agents' lockfile changes remain intact.
Paired rerun and decision (parent, 2026-11-06)
The only change that touches VT parsing is patch 0004 (kitty graphics off); the
opt-level = "s" override applies to external Rust crates (fonts and shaping), not
libghostty-vt. Linux builds with kitty on and off ran in eight interleaved rounds,
pinned to one core, on a host loaded by unrelated work (load average about 15 on 12
cores). Per round the best of three samples was kept; the table is the median over
the rounds, decimal MB/s.
| Stream | Kitty on | Kitty off | Change |
|---|---|---|---|
| Plain | 304.3 | 304.7 | +0.1% |
| SGR | 58.5 | 56.4 | -3.6% |
| CJK/emoji | 113.6 | 102.5 | -9.8% |
| Cursor | 73.1 | 79.3 | +8.4% |
Differences go both ways and sit inside the run-to-run spread (the fastest single
samples favor kitty off on three of four streams). Decision: no measurable VT
regression; the 538 KB saving is kept. The s override is kept too, but shaping and
rasterization speed are not measured yet; re-check it with the Renderer benchmark
once one exists, and revert it if shaping regresses beyond 5%. A quiet-host rerun on
Windows 7 is still worth doing when the VM is free.
Size hunt (2026-11-27)
Splits, search and the small actions brought standalone-min (voyager7.exe plus its
appended hook DLL) to 4,946,476 of 5,000,000 bytes. These changes cut it without
removing features. Each saving was measured on its own; the exe is what
cargo xtask size reports.
| Change | voyager7.exe | standalone-min |
|---|---|---|
| Before (main 4a225fc) | 4,809,728 | 4,946,476 |
| swash resolves skrifa 0.40, as cosmic-text does (one font stack) | -99,840 | |
| Patch 0008: function/data sections in the static lib-vt | -354,816 | |
v7-platform-windows, v7-core, v7-tab-strip at opt-level s | -114,688 | |
Hook DLL appended zlib-compressed (V7HOOK02) | +512 | -72,028 |
| Patch 0009: lib-vt logs below error compiled out in release | -132,096 | |
| After | 4,108,800 | 4,173,520 |
- One font stack. swash 0.2.10 accepts skrifa
>=0.31.1, <=0.44, so Cargo can give it the skrifa 0.40 / read-fonts 0.37 that cosmic-text and harfrust already use; the earlier note that the versions could not be unified was wrong. 288,532 glyph rasters (seven fonts, hinted and unhinted, two weights, seven sizes) hash identically with both lockfiles. Keep swash's skrifa on cosmic-text's version when either is bumped. - Function sections. Zig emitted the static lib-vt as one
.text/.rdatasection, so lld kept every exported C API function and all it reaches. Code generation is unchanged; the link now drops unreferenced sections. - Logs. Voyager7 installs no
ghostty_sys_setlog callback, so warn/info/debug messages were formatted for nobody inside the stream handlers. - Cold crates at
s. Win7 first-frame time (--replay --render, 24 rounds) did not move withs; the same crates atzwere 8-14% slower, so they stay ats. - Hook overlay. The trailer hash is of the inflated DLL, so the cache directory for a given DLL keeps its name. The exe inflates and verifies before using it.
VT throughput (throughput example, best of three per run, median of runs) with
patches 0008 and 0009 against 0001-0007 alone, MB/s:
| Platform | Plain | SGR | CJK/emoji | Cursor |
|---|---|---|---|---|
| Linux, 8 rounds | 283.5 → 283.2 | 90.8 → 96.7 | 151.4 → 154.4 | 107.6 → 114.5 |
| Win7, 5 rounds | 253.0 → 263.0 | 92.2 → 92.6 | 132.0 → 131.8 | 100.1 → 106.1 |
| Win10, 5 rounds | 222.2 → 226.9 | 60.3 → 61.6 | 112.3 → 113.6 | 69.7 → 73.0 |
--render-burst row-miss cost (µs per shaped row) and --replay --render
first-frame time stayed within run-to-run noise on Win7 and Win10, and the rendered
bitmaps were byte-identical to main's.
Measured and rejected:
- External dependencies at
zinstead ofs(-76 KB): host shaping of mixed Latin/Arabic/box rows 35-45% slower, rasterization 20-40% slower, Win10 first frame about 30% slower. - v7-text at
s(-45 KB): shaping about 6% slower on the host, about 3.5% in the Win10 row-miss benchmark. It is a hot crate. - lld identical code folding: already on by default in lld-link; no change.
logcraterelease_max_level_offfor fontdb/cosmic-text: no saving.
Not done; these need a decision:
voyager7ats(-232 KB). The row-miss and first-frame benchmarks didn't move, but the binary crate's opt-level sets the fat-LTO pipeline for the whole program:-Oseverywhere and no loop vectorization in any Rust crate, including the Win7 scraper, which has no quick throughput benchmark.-glyph_protocolin the lib-vt features (-47 KB). Voyager7 doesn't render registered glyphs, yet lib-vt answers the support query and accepts registrations. Turning it off would stop that reply, which changes what TUIs see.- lib-vt error logs as well (-23.5 KB), with a no-op log function.
- v7-backend-conpty at
s(-39 KB). It holds the ConPTY pump and the Win7 scraper.
The cargo xtask size attribution charges unnamed constants to the preceding
named symbol. "unicode_linebreak" (about 157 KB) is really a 5.7 KB trie index
followed by about 137 KB of anonymous Rust .rdata; its whole crate is about 21 KB.
Size pass: application crates (2026-11-30)
The kitty graphics and 2026-11-29 feature rounds took voyager7.exe to 5,397,504 bytes (main 6d4d6b3). Three agents cut it without removing features; this section is the Rust application part. Each saving was measured on its own.
| Change | voyager7.exe |
|---|---|
| Before (main 6d4d6b3) | 5,397,504 |
Application code as the voyager7-app library at opt-level s | -320,000 |
One shared sort for the settings, menu and CLI lists (v7_core::sort) | -49,152 |
+boo frames stored by row before deflate | -26,624 |
| X11 colour table embedded deflated | -10,240 |
Own decimal parser for configuration numbers (v7_core::number) | 0 (about -17 KB once ttf-parser is gone) |
| After | 4,991,488 |
- The application is a library. The 2026-11-27 hunt left "
voyager7ats" undecided because the binary crate's opt-level is the one the whole-program LTO runs at: every Rust crate would lose loop vectorization.crates/voyager7is now only the entry point and stays at 3; the application (the same sources, still incrates/voyager7/src) builds asvoyager7-appats. Functions keep the optimization level of the crate they come from, so v7-text, v7-vt, v7-gpu-d3d11 and the backends are compiled as before.+versionreports the application crate's level, so its build mode line readsrelease (opt-level s). - Sorting.
slice::sort_bycompiles a complete sort, about 5 KB, for every element type. Twelve cold lists (themes, profiles, settings rows, fonts, toasts) now sort a list of indices with one copy of that code. v7-text's glyph sorts and v7-vt's per-frame placement sort are hot and keep the slice methods. +boo. The 235 frames are stored as 42 row streams, each holding that row's line in every frame, with a one-byte marker for a line equal to the frame before. A row changes little between frames, so the same deflate packs it to 43,173 bytes instead of 70,956. The player rebuilds the frames;+boooutput redirected to a file is byte-identical to main's on Win7 and Win10.- X11 colours.
colors.txt(15,434 bytes) is embedded deflated (4,723 bytes) and unpacked only for+list-colorsor to resolve a colour name. No name starts with#, holds:or is made of hex digits alone, so hex andrgb:values, which is every bundled theme, never unpack it. - Numbers.
str::parse::<f32/f64>links core's general decimal conversion: a 10 KB table and about 7 KB of code.v7_core::numbertakes the same grammar and is exact for up to 15 significant digits within 10^±22; tests compare it with core bit for bit, including everyf32split ratio a session file can hold. ttf-parser's CFF reader was the other caller, so the saving appears only when ttf-parser is no longer linked.
Speed, base against this branch, 10 interleaved rounds per VM (offscreen WARP):
| Win7 base | Win7 branch | Win10 base | Win10 branch | |
|---|---|---|---|---|
| First frame, 19-utf8-wide, median µs | 66,260 | 57,836 | 82,824 | 79,486 |
| First frame, 27-stress, median µs | 90,217 | 77,614 | 72,919 | 70,006 |
--render-burst row miss, median µs | 24.59 | 24.86 | 48.86 | 52.76 |
--render-burst row miss, best µs | 20.81 | 23.50 | 43.49 | 43.41 |
The differences are inside the run-to-run spread of the shared host, and the rendered bitmaps are SHA-256-identical on both systems.
Measured and rejected:
voyager7-appatz(-91 KB more, 4,900,352): bitmaps identical and first frame unchanged, but the row-miss cost rose (Win7 median 24.59 → 29.62 µs, Win10 best 43.49 → 51.20 µs).- The binary crate itself at
s(5,027,840 from the baseline, about 50 KB more than the library split): it changes code generation in every hot crate.
The diagnostic drivers the VM tests run were left for a decision here; see the next section.
VM test drivers out of packages (2026-12-01)
The --conpty-smoke driver (with its TUI stress, resilience, replay and
selection stress loops) and the --scraper-* probes run only in the VM tests.
They now build only with the vm-diagnostics feature of voyager7, which
cargo xtask vm-smoke and cargo xtask vm-tui turn on (conpty-experiment
implies it), and cargo xtask lint checks. Packages leave it off. Without it,
either flag exits with code 87 at once instead of opening a window.
--smoke, --replay, --render-burst, --list-fonts and --diag-profiles
stay in every build: the render, font and package tests run them on the
packaged exe.
| voyager7.exe | standalone-min | |
|---|---|---|
| Before (main 891ced4) | 4,935,168 | 4,999,903 |
| After | 4,870,144 | 4,934,879 |
The cost of this is the one named in the decision: the VM smoke and TUI tests run a build with these drivers added, not the byte-identical package. Everything else in that build is the same code.
Idle memory and visible-grid storage
Measured 2026-11-06 with release x64, WARP, Cascadia Mono v2407.24 sidecar, 80×24, three seconds after startup, interactive user Sal. Win10 runs cmd.exe; Win7 displays the ConPTY-unavailable message. MiB means 1,048,576 bytes.
Reproduce
export PATH=/nix/store/2g8sjq53xas3fplx76hvm2nrk2sslbrz-zig-0.17.0/bin:$PATH
cargo xtask vm-memory
The suite runs both guests via schtasks /it, deploys sidecar fonts, collects idle
and tall snapshots, and restores the original display mode after the child exits.
It temporarily selects an advertised mode at least 1440 lines high because the
normal 1600×900 desktop restricts a resizable window to about 46 rows. It never
reboots a guest. Reports are build/vm-desktop/{win7,win10}-memory-{idle,tall}.txt;
private bytes and desktop dimensions are in the command output. Save that output
separately when comparing runs: the shared desktop harness overwrites its log.
--diag-file PATH enables diagnostic snapshots. Each snapshot also writes
PATH.memory.txt. Rust's global allocator counts live requested bytes, including
successful reallocations; Ghostty's custom allocator independently counts its
live requests (a subset of Rust's total). HeapWalk, under HeapLock, counts process
heap busy/free bytes and block overhead. VirtualQuery sums committed private,
mapped and image regions. None of these paths runs on the normal idle timer.
The external probe obtains PrivateUsage with GetProcessMemoryInfo.
PrivateUsage, committed MEM_PRIVATE and working set are different measures. Image copy-on-write pages can contribute to PrivateUsage; entire read-only mappings and images must not be added to it. Heap busy includes libraries using the process heap directly. Counters are sequential snapshots, not an atomic process freeze.
Before and after
| Measurement | Win7 | Win10 |
|---|---|---|
| Owner's initial idle private bytes, approximate MiB | 36 | 42 |
| Measured final idle private bytes | 28,213,248 (26.91 MiB) | 39,292,928 (37.47 MiB) |
| Final live Rust requests | 14,149,928 | 14,219,705 |
| Final committed private regions | 27,189,248 | 37,564,416 |
| Final process heap busy | 23,584,110 | 16,840,979 |
| Final process heap free | 510,240 | 557,728 |
| Final heap block overhead | 65,442 | 64,717 |
The initial figures were supplied with the task, not obtained by this census. There is no controlled same-harness pre-change process snapshot: the initial attempt was stopped because an outer lock and the harness's individual-call lock blocked each other. Subsequent builds already included the cache reduction and concurrent latency changes. The 9.09/4.53 MiB differences are descriptive, not an isolated causal benchmark. Win7 repeat final-style runs ranged 26.8–27.2 MiB; a final repeat measured 28,147,712 bytes (26.84 MiB) on Win7 and 39,346,176 bytes (37.52 MiB) on Win10. Both guests explicitly passed the original-display-mode restoration assertion.
The exact row-cache reservation reduction is independently reproducible from its capacity counters/tests: 7,040,928 → 871,296 bytes, saving 6,169,632 bytes (88%).
Attribution and budgets
These are idle targets for 80×24, not runtime failure thresholds. Scrollback, new fonts, new glyphs and resizing legitimately increase live storage.
| Owned allocation / source | Win7 bytes | Win10 bytes | Idle budget |
|---|---|---|---|
| Ghostty terminal, screen pages and scrollback combined | 137,015 | 137,185 | 0.25 MiB; grow with actual history |
| Row cache | 871,296 | 871,296 | 1 MiB |
| Visible per-row instances | 2,949,120 | 2,949,120 | 3 MiB |
| Frame instance scratch | 2,973,696 | 2,973,696 | 3 MiB |
| CPU R8 atlas | 4,194,304 | 4,194,304 | 4 MiB |
| CPU RGBA atlas | 262,144 | 262,144 | 0.25 MiB |
| Screen cells and reserved grapheme strings | 583,680 | 583,680 | 0.6 MiB |
| Font-system configuration retained allocation delta | 39,327 | 39,327 | 0.1 MiB |
| Frame-building retained allocation growth | 12,861 | 16,868 | 0.1 MiB at startup |
| Other live Rust requests, by subtraction | 2,126,485 | 2,192,085 | 2.2 MiB |
| Total live Rust requests | 14,149,928 | 14,219,705 | 14 MiB |
The configuration delta brackets the entire font configuration call, after its locals have dropped; it includes cosmic-text/fontdb metadata and mapping owners. The build delta brackets frame building after Frame scratch allocation. It is a phase measurement, not allocation stack tracing: it includes cosmic-text shaping, font and Swash cache growth, and any other allocation during that phase. Swash image payload capacities are 2,079 / 2,982 bytes, already within these deltas, not additional storage. The other-Rust bucket includes GlyphRun, bidi and bitmap scratch, glyph lookup storage, render-state iterators, application/backend state, and vector metadata. Those individual capacities are not all separately logged. Ghostty's public allocator does not distinguish pages from terminal metadata or scrollback; that internal split remains unmeasured. No claim of a precise split between cosmic-text's private internal caches is made either.
Font data is mapped, not copied onto the Rust heap: platform fonts::map uses
read-only CreateFileMapping/MapViewOfFile, Engine::from_shared hands its Arc to
fontdb Source::Binary, and cosmic-text clones that Arc. The idle source-byte
counter is 714,804 on both guests, exactly the variable Cascadia sidecar's size.
Noto Emoji is not loaded in these idle runs (zero additional source bytes).
Those historical runs shipped Cascadia only; the sidecar task now also ships
Noto color and monochrome fonts. No font is embedded by Voyager7. A discovered
Noto fallback uses the same mapped path. These observations do not measure private allocations caused by shaping or
rasterizing an emoji; those appear in the text/cache deltas when exercised.
D3D requests an R8 2048² texture and RGBA 256² texture (4.25 MiB of texel payload), in addition to the CPU copies above. The instance buffer now follows submitted frame demand; the old renderer reserved 69,632 × 48 = 3,342,336 bytes regardless of grid size. Swap chains, render targets, WARP code/data and driver resources are owned by D3D/DXGI. Their committed allocation sizes are not exposed by our counter. The process-heap busy excess over Rust requests is 9,434,182 / 2,621,274 bytes; it is foreign process-heap allocation, not allocator overhead. The remaining PrivateUsage beyond all live Rust requests is 14,063,320 / 25,073,223 bytes and includes that foreign heap storage, heap slack, stacks, graphics allocations and private image pages. It is incorrect to label this entire residual “driver”. HeapWalk's measured 65 KB block overhead and 0.5 MiB free storage are lower bounds on allocator cost; heap segment/page slack is not separately attributed.
Provisional overall private-byte budgets are 30 MiB Win7 / 40 MiB Win10 WARP. Allow up to 1 MiB for block overhead plus retained free process-heap space at startup. Foreign graphics/OS cost gets the remaining approximately 16/26 MiB; that is a budgeting allowance, not a measurement of independent D3D ownership. An allocation-stack/heap-segment capture is still needed to divide the residual between D3D, WARP, driver and allocator slack. This census deliberately leaves that uncertainty visible rather than guessing attribution.
Changes and stopping point
RowCache now uses two circular payload arenas instead of reserving a maximum-size key and instance vector in every entry. The arenas reserve 32 key bytes and four instances per column per historical entry, with room for at least one maximum-size row. Full keys, maps and float instances are retained without quantization. Ring wrap invalidates overlapping entries before reuse. There is no miss-path Rust allocation. Ordinary rows retain two generations (at most 64 historical entries). Dense pathological rows evict history sooner; this is an explicit cache hit-rate tradeoff, not pixel loss. Currently visible rows remain in their own frame buffers. Wraparound/overlap, relocation, footprint, and zero-allocation cached-frame checks cover this behavior. No universal frame-time equivalence is claimed for dense rows.
Further shrinking the CPU mask atlas would reduce glyph capacity and force atlas rebuild/eviction; removing its CPU copy would change dirty upload and test paths. Shrinking visible/frame instance bounds or grapheme storage would introduce allocation during updates or reject existing supported content. These remain at current bounds. The GPU instance buffer can grow when a larger frame is first submitted; it then retains capacity, so growth may incur a transient driver cost. No driver allocation or heap-compaction policy was imposed.
Tall windows and validation
Surface dirty bits, bidi classes/bases and paragraph scratch now follow row count; resize no longer clamps to 64. Visible instance reservations scale with columns × rows, and GPU instance storage has no independent 69,632-quad ceiling. History cache entry count remains capped independently of Surface height.
Tests capture the last-row marker at 240×67 and 240×128. Both real desktops passed at 212×74, with client areas 1916×1414 (Win7) and 1924×1421 (Win10), after Windows constrained the requested 1928×1800 client area to the temporary display. The check verifies the reported grid exceeds 64 and that rendering/presentation completed; it does not compare a screenshot of the last row. Tall private bytes: 105,914,368 / 133,332,992. Live Rust requests: 63,752,673 / 63,822,450. The largest part is the two worst-case instance reservations, about 24.1 MB each; storage remains proportional to the visible grid, not a global maximum grid.
Workspace lint and tests pass, including the approved text goldens without edits. Release executable: 3,261,440 bytes, below 5,000,000. WARP validation results are recorded in the status document.
Noto sidecar census (2026-11-07)
Release x64 WARP, 80×24, three seconds settled, interactive Sal, both Noto
sidecars present. The final system-preference policy keeps explicit fonts first,
uses Segoe UI Emoji on Win10, and uses Noto Color ahead of monochrome symbols on
Win7. The isolated helper uses the same GetProcessMemoryInfo PrivateUsage and
app diagnostics as vm-memory, with its own guest folder/task to avoid concurrent
acceptance probes overwriting w18 files. Reproduce after cargo xtask sidecar
and the Windows release build:
export PATH=/nix/store/2g8sjq53xas3fplx76hvm2nrk2sslbrz-zig-0.17.0/bin:$PATH
python3 scripts/emoji-memory.py
The helper takes the shared VM lock around direct guest-agent calls. Do not wrap
cargo xtask vm-* in an outer flock. It leaves the display mode unchanged and
measures only idle and emoji; the regular vm-memory retains its tall-grid gate.
| Measurement | Win7 | Win10 |
|---|---|---|
| Idle private bytes | 28,372,992 (27.06 MiB) | 39,473,152 (37.64 MiB) |
| Idle budget | 30 MiB: pass | 40 MiB: pass |
| After emoji screen | 30,846,976 (29.42 MiB) | 40,480,768 (38.61 MiB) |
| Increase after emoji | 2,473,984 (2.36 MiB) | 1,007,616 (0.96 MiB) |
| Fresh-cache Noto CBDT raster at 16 px | 913 µs | 1,004 µs |
| Subsequent cached raster | 2 µs | 0 µs (timer resolution) |
The 30/40 MiB limits are idle budgets. These runs also remain below those allowances after the emoji-filled screen. Font sources are mapped, not copied to the Rust heap; read-only mappings must not be added to PrivateUsage.
The latency probe constructs an independent Noto-only Engine, shapes the first
visible emoji cluster (🇵, a regional indicator at the scrolled screen edge),
and times only its fresh Swash bitmap raster and copy into caller scratch, then
a cache hit. Both return nonempty 19×18 RGBA output from the 109-ppem CBDT strike.
The nominal 16 px diagnostic size is separate from the candidate renderer's
15.36 px shape size in its normal 9×19 cell. These are single observations,
not percentiles; discovery, mapping, shaping and presentation latency are excluded.
Win10 normally uses Segoe for the screen; the diagnostic deliberately measures
the Noto fallback's first-raster cost on both guests.
Artifacts: build/emoji-memory/{win7,win10}-desktop.log, matching
*-memory-{idle,emoji}.txt, *-stats.bin.emoji.txt, and *-stats.bin.bmp.
Both isolated reports end in RESULT PASS. The helper grants Sal access only to
its own test directory. It freezes the input executable before acquiring the VM
lock; VOYAGER7_MEASURE_EXE can select a previously built ordinary release
artifact while another agent builds an experimental feature variant.
Noto and its two OFL files add 12,664,707 bytes (12.08 MiB) unpacked, or
11,139,006 bytes as a standalone level-9 ZIP. The complete fonts directory totals 13,384,000 bytes
(12.76 MiB), or 11,438,016 ZIP bytes. These do not enter the executable.
cargo xtask size reports 3,615,232 bytes, below 5,000,000;
cargo xtask check-imports passes the Win7 gate. Font pins, differences from
Ghostty, and render candidates are in emoji-sidecars.md.
Sequence coverage uses actual shaping, not a flag/font-name special case. The
fresh HarfRust data, buffer and shape cost per attempted candidate is included;
font mapping is excluded. For Lebanon/England, Win7 tried two faces and spent
332/239 µs total; Win10 tried 41 faces and spent 10,206/11,076 µs total. Segoe UI
Emoji was rejected in 187/184 µs; Noto accepted the clusters in 170/173 µs on
Win10. This is font-resolution work per unique screen grapheme, not a per-frame
cost. build/emoji-memory/*-stats.bin.sequence.txt records every attempted face.
The diagnostic probes use temporary allocations, so the measured post-emoji
heap slack includes their effect as well as the renderer's retained storage.
The frozen ordinary release measured above is 3,616,256 bytes, SHA-256
5572c1f675faa7bbb762253f1428f2b976244965074f9ca45986e7f895c3c11d.
It is retained at build/emoji-memory/voyager7.exe. This avoids mixing a
concurrently built experimental feature variant into the two-guest census.
Emoji font sidecars
cargo xtask sidecar downloads and verifies these OFL font data files. Nothing
is embedded in the executable. Ship the complete fonts/ directory beside it.
Cascadia Mono and its existing LICENSE remain unchanged.
| Shipping file | Upstream pin | SHA-256 |
|---|---|---|
| NotoColorEmoji.ttf | pinned source | 72a635cb3d2f3524c51620cdde406b217204e8a6a06c6a096ff8ed4b5fd6e27b |
| NotoEmoji-Regular.ttf | pinned source | de6c18832938afc99caf132b39d6a30a19bac7f2e812e28db2535b4608d27551 |
| NotoEmoji-OFL.txt | pinned source | 6a73f9541c2de74158c0e7cf6b0a58ef774f5a780bf191f2d7ec9cc53efe2bf2 |
| NotoEmoji-Mono-OFL.txt | pinned source | 500bb1ccf43df7bbb522112f9133a52b16e1c35e809632f5d8609b179152de5b |
Color: Noto Color Emoji 2.051, tag v2.051, CBDT/CBLC PNG bitmap
strike (109 ppem). It is byte-identical to
vendor/ghostty/src/font/res/NotoColorEmoji.ttf (same hash above).
Monochrome: Noto Emoji 3.002, Google Fonts commit
8b0a1d0f5983c89bc2b93f1b5fb55f9e252744b5, variable TrueType outlines
(weight 300–700). The upstream filename is NotoEmoji[wght].ttf; it ships as
NotoEmoji-Regular.ttf without changing its bytes, and regular weight selects
400. Google Fonts uses a commit pin rather than a release tag. Ghostty ships
static 3.005, 880,860 bytes, SHA-256
cd07743a4c93d8da929afdd28c1d368f11da478a1093146a13610081c2a58440.
The chosen upstream downloadable variable differs in version, format and bytes;
we do not copy Ghostty's font data into the package. The historical static file
in noto-emoji is only 1.05 and was removed upstream as outdated.
Pinned cosmic-text 0.19.0 uses Swash 0.2.10. Its src/swash.rs requests
Source::ColorBitmap(StrikeWith::BestFit) before outlines. Swash's
src/scale/mod.rs handles Source::ColorBitmap through bitmap strikes and PNG
decoding. We select CBDT, matching Ghostty, rather than assume COLRv1 support.
The VM candidates exercise this actual path through WARP on both Windows versions.
The configured family, Consolas and explicit user fallbacks remain first.
For emoji presentation (Unicode 17 Emoji_Presentation, VS16 or keycap), an
installed Segoe UI Emoji is the Windows system color preference. Voyager7 uses
this cheap platform-family lookup rather than introducing newer DirectWrite
imports on Win7. Remaining platform and installed faces follow, then Noto Color
Emoji as a last resort. Every face must cover the whole cluster; an older system
face that lacks a new emoji falls through to Noto. When Noto Color is available,
emoji coverage shapes the entire grapheme against that exact face using
HarfRust 0.5.2, already pinned through cosmic-text. Exactly one nonzero glyph at
cluster zero is required. There is no shaper fallback to other fonts. Segoe's
separate regional-indicator letters and unconsumed England tags therefore fail,
as do split future ZWJ sequences. This uses no font-name exception. Without the
color sidecar, the old cmap-only coverage rule is retained. +show-face uses the
same rule. Resolution performs the check once per distinct screen cluster at
reconfiguration, not every frame; diagnostics measure construction plus shaping
for each attempted face, excluding file mapping. On Win7, with no installed
system color face, Noto Color precedes monochrome platform fonts such as Segoe
UI Symbol. Explicit primary glyphs remain authoritative, including bare symbols.
VS15 overrides emoji defaults. Text presentation retains the historical platform
and installed order, with monochrome Noto as the last resort. Without Noto
sidecars the historical ordering is unchanged, including selector handling.
Sidecar OS/2 range bits are advisory: Noto's are incomplete, so its actual cmap
is checked before acceptance. The sidecar provenance flag controls priority,
without depending on a path spelling; an embedded face could later use the same
provenance classification. No embedded packaging is implemented here.
New emoji arriving on a live Surface trigger bounded font reconfiguration once
per unresolved screen grapheme; this resets the frame caches so a primary glyph
cannot keep an outdated presentation. The existing primary --font is retained.
Approved CosmicTestEmoji fixtures and approved goldens are unchanged.
cargo xtask vm-render writes unapproved candidates to
build/vm-fonts/{win7,win10}/noto-candidate.bmp and matching .bmp.txt reports.
They cover a family ZWJ, Lebanon/Japan/US and England tag flags, three skin tones, keycaps, text/emoji hearts and
lightning, default-text smiley, and emoji inside Arabic. They use Cascadia Mono
with the normal 9×19 physical cell, shape size 15.36 px.
cargo xtask vm-memory measures idle then a diagnostic emoji-filled screen,
then the existing tall grid. The diagnostic independently constructs a fresh
Noto-only Engine and measures its first raster call and subsequent cache hit at
16 px; font mapping and shaping are outside the timed region. This measures CPU
CBDT decoding/scaling, not discovery, first-frame latency or physical visibility.
The diagnostic engine drops before memory snapshots and does not warm the main
renderer cache. Reports: build/vm-desktop/*-stats.bin.emoji.txt. Sequence probes also write
*.sequence.txt, recording rejected faces, per-face shape time and the selected
face for Lebanon and England. The VM candidate task asserts Noto selection for
both flags on both guests.
Package additions (sum of file lengths, excluding filesystem block overhead):
Noto fonts and their two OFL files add 12,664,707 bytes (12.08 MiB).
A standalone level-9 ZIP of these four fonts/ members is 11,139,006 bytes.
The complete fonts directory, including Cascadia and LICENSE, is
13,384,000 bytes; the corresponding ZIP is 11,438,016 bytes.
These are sidecar payload measurements, not a new release archive format.
When concurrent desktop acceptance uses the shared w18 directory, run
python3 scripts/emoji-memory.py with Zig on PATH after building the release
application and fetching sidecars. It compiles the same census probe into an
isolated C:\v7\emoji directory with its own scheduled task, and holds
build/vm.lock around direct guest-agent calls. It never wraps an xtask in an
outer flock. This isolated helper measures only the requested idle and emoji screen, without
changing display mode or running the unrelated tall-grid gate. Results are
retained under build/emoji-memory/.
Actual two-VM sequence diagnostics select Noto Color for both Lebanon and England. Win7's total coverage checks cost 332/239 µs (two faces); Win10's cost 10,206/11,076 µs (41 faces), excluding mapping. Segoe's rejection costs 187/184 µs on Win10. This bounded resolution cost is retained to handle arbitrary future sequences, rather than encode regional-indicator or tag exceptions.
The final inspected, unapproved PNGs are /home/sal/dev/Voyager7/build/emoji-candidates/win7.png
and /home/sal/dev/Voyager7/build/emoji-candidates/win10.png. Corresponding VT
inputs, BMP reports and *-sequences.txt files sit beside them. An isolated
copy of the candidate run is in build/emoji-candidates-final/{win7,win10}/,
using the frozen executable from the memory census, so concurrent builds cannot
replace the image inputs. The full vm-render command retains its normal
build/vm-fonts/ outputs.
The VT can store one Unicode emoji grapheme in several cell payloads. Resolution reassembles logical row text with bounded stack scratch before segmenting it, matching the shaping input while preserving terminal cell allocation and selection maps. Text-symbol coverage also inspects the shaped glyph artwork: color layers, color bitmaps and SVG are declined for text presentation so VS15 cannot select a colored heart. This check, like strict sequence coverage, is only enabled when Noto Color is available; absent-sidecar behavior is retained.
File Pilot as a reference for a small, fast native executable
File Pilot is a closed-source Windows file manager by Vjekoslav Krajačić (Voidstar). Its v0.8.5 executable is 2,585,680 bytes, it targets 64-bit Windows 7 and later, and it draws its whole UI with its own GPU renderer. Those constraints match Voyager7's closely, so this document records how File Pilot gets there and what we should copy.
Sources: static inspection of FPilot.exe v0.8.5 (Ghidra through REA, PE parsing, disassembly)
and the developer's published notes, checked 2026-11-05. The original investigation did not run the executable. The Tabs section below
adds a separate runtime study; startup, idle CPU, RAM and GPU remain unmeasured.
The original sections use these labels:
- Observed: seen in the binary.
- Published: stated by the developer.
- Inference: our engineering reading of the above.
Summary
The small size comes from native code plus a purpose-built UI that leans on DLLs Windows already ships. It does not come from compression or an asset bundle. The speed has specific causes: sleeping when idle, batching draw calls, bulk directory queries, background work, change notifications, caching, and arena-style allocation. "Written in C" is not the explanation on its own; the explanation is how much work it avoids.
Architecture
Published. The program is C with an in-house platform layer, UI framework, containers, memory
primitives, UTF-8 strings, and math. It has two renderers, D3D11 and OpenGL, and D3D11 has been
the Windows default since v0.7.1. The UI is immediate-mode: each update describes the interface
from current state, with no retained widget tree. The only external library it names is
stb_sprintf.h.
(architecture,
IMGUI reply,
v0.7.1)
Observed. The binary names Program.c, WinMain.c, Voidstar.h, and
WinFontRasterizer.cpp. That points to mostly C, with C++ only where Windows text APIs need it.
Windows events ──▶ application state ──▶ renderer (D3D11 / OpenGL) ──▶ display
▲
file APIs, directory jobs, change notifications, cached icons/thumbnails/previews
Where the bytes go
Observed. Raw file ranges, including section padding:
| Part | Bytes | Share |
|---|---|---|
.text (machine code) | 2,191,872 | 84.8% |
.rdata (constants, strings, imports) | 186,880 | 7.2% |
.rsrc (5 icons, manifest, version, 1 data blob) | 147,968 | 5.7% |
.pdata (unwind metadata) | 37,376 | 1.4% |
| Certificate table | 12,368 | 0.5% |
.data | 8,192 | 0.3% |
| PE headers | 1,024 | <0.1% |
| Total | 2,585,680 | 100% |
- There are 269 static imports across 16 DLLs (windowing, filesystem, shell, fonts, graphics) and no delay-import table. Some APIs are also resolved at runtime.
- There is no image atlas for widgets. The embedded shaders draw rectangles with corner radii, borders, gradients, dashed outlines, and texture sampling, so a rounded button costs a few floats per instance instead of a bitmap per size and state.
- Inference. Almost all of the file is the application's own code. The rest of the work is done by system DLLs that every process shares. The download size tells you nothing about the working set.
Why it is responsive
1. Sleep when idle
Observed (0x140203790, diagnostic name Win_WaitForMessages): calls
MsgWaitForMultipleObjectsEx with zero handles and INFINITE timeout on one path. The UI thread
blocks until input or a posted message arrives. Immediate mode does not imply redrawing at 60 Hz.
2. Many shapes per draw call
Observed (0x140079800, OpenGL path): uploads count × 72 bytes of per-shape records, then
calls glDrawArraysInstanced(…, 4, count). The vertex shader derives quad corners from
gl_VertexID, so there is no vertex buffer for geometry, only instance data. Whether the D3D11
backend does the same was not checked, though it is likely.
3. Bulk directory queries
Observed (0x1401e81c0): recursive enumeration uses FindFirstFileExW with
FindExInfoBasic (skips 8.3 short names) and FIND_FIRST_EX_LARGE_FETCH (bigger kernel buffer),
then FindNextFileW. Discovered subdirectories go to a job queue in batches of 16.
Published. Indexing uses ordinary Windows APIs. Direct NTFS MFT reading is still listed as future work on the roadmap, so the speed is not an Everything-style MFT scan.
4. Keep slow work off the interaction path
Observed (0x14020a4b0): creates a Windows thread pool and queues callbacks into internal job
queues. Published (v0.8.1): metadata runs
as background tasks. Fixes in that release stopped thumbnails from delaying view changes. This
reduces latency; it does not make disks faster.
5. React to changes, reuse expensive results
Observed (0x1401ec6c0, Win_DirWatcherProc): overlapped ReadDirectoryChangesW with a
32 KiB buffer, waits on events, and posts a message to wake the UI thread. The UI updates
incrementally instead of rescanning.
Published (v0.7.1): icons, thumbnails,
and previews go into a configurable cache, and previews are decoded at window size rather than
full resolution.
6. Control allocation in hot code
Observed (0x140112280): the job queue reuses freed records. Otherwise it allocates by
bumping an aligned offset in a region and calls VirtualAlloc to commit more when needed.
Inference: this is an arena or free-list pattern that avoids general-heap bookkeeping for
small, short-lived records.
Lessons for Voyager7
These map the observations onto the architecture. They are design guidance, not decisions.
| File Pilot does | Voyager7 equivalent |
|---|---|
UI thread blocks in MsgWaitForMultipleObjectsEx(INFINITE) | Block on window messages plus the PTY/scraper pipe handles. Draw only when VT state is dirty or input arrives. A blinking cursor is a timer, not a render loop. |
| One instanced draw per batch, geometry derived from vertex ID | One instanced D3D11 draw per frame for cells: a per-cell record (glyph atlas index, fg, bg, flags) and the corners from SV_VertexID. Backgrounds, cursor, and selection go in the same pass. |
| Shapes drawn by shader, not bitmaps | Use shader geometry for backgrounds, selections, cursors, and decorations. Preserve the selected font's glyphs, including borders and Powerline symbols; see terminal rendering gotchas. |
| Cached, display-sized assets | Glyph atlas filled on demand at the current font size and DPI and kept between frames. Rasterize each glyph once. |
| Background jobs for slow work | Child I/O, scraping, and VT parsing never run on the UI thread. The renderer takes a snapshot under a short lock. |
| Change notifications instead of polling | The hook DLL pushes bytes. The scraper falls back to polling only when it has to, and backs off when the console is idle. |
| Arena and free-list allocation | Per-frame scratch arena for draw records. Reserve large regions and commit on demand, which is already relevant to the Win7 commit/OOM work in tests/win7/. |
| Few static deps, all in-box DLLs | Only Win7 in-box DLLs (d3d11, dxgi, dwrite, user32, kernel32). Use GetProcAddress for anything newer (ConPTY). No CRT-heavy or framework dependencies. |
| Small resources section | One icon, a manifest (DPI awareness, Win7 supportedOS GUID), and a version block. Shaders compiled ahead of time into .rdata, with no runtime d3dcompiler dependency. |
Checklist when evaluating a change:
- Does the idle path still block? Idle CPU should be about 0%.
- Is the frame still one draw call (or a small constant number) regardless of grid size?
- Did a new static import appear? Is it in-box on Win7 SP1?
- Did
.textor.rsrcgrow by more than the feature justifies? Check with a section dump. - Does any slow operation (I/O, font fallback, scraping) now run on the UI thread?
Limits of this evidence
- No benchmark was run. Speed claims here are mechanisms, not measurements.
- On-disk size is not RAM. Heaps, stacks, GPU textures, and loaded DLLs all add to it. The developer also documents fixing COM-library and directory-watcher memory leaks (v0.8.4).
- Decompiled logic is approximate. Indirect calls and recovered types are incomplete, and only one traversal path and the OpenGL draw path were verified at the instruction level.
- Custom UI has costs: input handling, accessibility, text shaping, and IME all have to be written by hand. For a terminal, text and IME are the expensive parts.
- File Pilot is closed source (FAQ). Nothing here comes from its source, and nothing should be copied from its binary. Use it as prior art only, in the same way as winpty and ConEmu.
Further reading
- File Pilot: Inside the Engine, BSC 2025 (not yet reviewed)
- Why File Pilot compiles in 3 seconds, Wookash Podcast (architecture and memory from 23:08)
- Hanselminutes #1030: File Pilot and a return to fast UIs
Inspected binary SHA-256: ab5e7bbfa50872225f24856697ef7341a58e51a5e521435ba0dfeeb8ab3b2676.
The full HTML explanation and the raw research notes are kept locally in .scratch/ (gitignored).
Tabs
Partial study on 2026-11-08, using the same v0.8.5 SHA-256 above. Copies in
C:\v7\tabs-w45 were launched on the interactive Win7 and Win10 desktops.
Screenshots and the exploratory probe are in build/tabs-w45/. This is an
initial observation ledger, not a completed behavioral specification.
- Observed-runtime: On both guests the tabs occupy a custom caption row. On Win7 File Pilot replaces the Aero caption appearance. Voyager7 must not adopt that Win7 treatment: the owner requires the native caption untouched.
- Observed-runtime: In the first clean launch the tab strip remained visible with one tab; the plus button immediately followed the tab. That first capture was overwritten by the repeat study and is not retained as a golden.
- Observed-runtime: The retained 1000-pixel-wide window captures have a caption row ending at approximately y=32. Visible repeated tab boundaries are approximately 125 physical pixels apart; the hovered shape starts at y=5. These are screenshot measurements, not logical-DPI constants or proven min/max width rules. DPI was not independently recorded.
- Observed-runtime: A hovered tab shows a close cross at its right edge and
a contrasting filled background. Other visible inactive tabs have separators
and no close cross. See
win7-fp-hover.pngandwin10-fp-hover.png. - Observed-runtime: Middle-clicking the hovered tab removed it in the recorded
sequence and the remaining visible tabs shifted left. The plus button became
visible after the remaining tabs. See
*-fp-middle-close.png. - Observed-runtime: The tab tooltip reports Ctrl+W, Ctrl+F4 and MouseMiddle for closing, and Ctrl+Shift+Down / MouseRight for the tab menu.
- Observed-runtime: Crowded-strip captures show left/right chevrons before the tabs and a clipped rightmost tab before the caption's reserved area.
- Inference: The chevrons appear to be overflow navigation controls. Their
actual scroll behavior and whether the plus button scrolls with tab content
still need interaction testing. (Second pass: the binary names them
ScrollLeft/ScrollRightand the plus button is laid out inside the same scrolled row after the last tab. See "Tab strip specification" below.) - Observed-binary: Ghidra string inventory contains separate new, duplicate,
shift-left/right, close-other/left/right, reopen, next/previous, numbered-tab,
last-tab and search-tab command descriptions. It also contains tab drop-marker
names. Evidence
ev_58af37a285d1e7b649e5baab762f64623c6e8e39277b32778fc2cd8c8a03a767. These strings establish vocabulary, not implementation or bindings. - Observed-binary: An animations setting description mentions popups, view
scrolling and text cursors, without establishing tab animation timing.
Evidence
ev_ac8fbfbc235d024fb0735908a9a5a417d04d66ec040ca4746255552cc2182c66.
Measurement limitations: File Pilot restores prior session state. The exploratory
probe named captures 1-tab, 5-tabs and 15-tabs from the number of shortcuts
it attempted, without verifying restored tab counts. Those filenames are not
count assertions. The attempted empty-strip double-click hit an existing tab
and opened a folder Properties dialog; it does not establish empty-strip behavior.
Exact min/max widths, shrinking thresholds, overflow scrolling, drag hit-testing,
drag animation, open/close animation curves/durations and keyboard wrap behavior
remain unknown. No decompiled code was copied into Voyager7.
The follow-up function-analysis request produced no usable function evidence;
the Ghidra session was closed. The exported string ledger remains in
build/tabs-w45/filepilot-evidence.json. (Superseded by the second static
pass below, which recovered the tab, strip, caption and animation functions.)
Tab strip specification (second static pass, 2026-11-08)
The same v0.8.5 binary (SHA-256 ab5e7bbf…2676, 2,585,680 bytes; copies in
~/Downloads/FPilot.exe and build/tabs-w45/FPilot.exe are identical) was
decompiled with REA 6.8.0 / Ghidra 12.1.4, plus objdump for a few call
sites. File Pilot was not run for this pass. Pixel measurements come from the
existing build/tabs-w45/*-hover.png captures. Labels:
- Observed-binary: read from decompiled or disassembled code. The address is the durable reference.
- Observed-runtime: measured from the existing screenshots.
- Inference: our reading.
REA Evidence IDs are listed for traceability. The session was closed without a snapshot, so re-derive from the address and SHA-256. The functions have no symbols; the names below are ours.
| Our name | Address | Evidence ID |
|---|---|---|
window procedure (Win_WindowProc in its own diagnostic string) | 0x14020c570 | ev_0db75afc…7801 |
| strip row: width rule, scroll buttons, reveal-active | 0x140148410 | ev_46cbe647…0707 |
| per-tab widget, plus button, drag/drop targets | 0x14014acc0 | ev_3166b707…6865 |
| drop placeholder | 0x140147fc0 | ev_2ca1935b…c17b (batch) |
| caption buttons (min / max / close) | 0x14018b490 | same batch |
| drag tooltip ("Move/Copy tab") | 0x14017b3a0 | same batch |
| per-frame layout metrics and caption height | 0x1401a1210 | ev_63a275ce…309d |
| "this rect is not caption" registration | 0x14018ad80 | ev_3514e8da…bc7a |
| animation step | 0x1401cb360 | ev_3324b96d…ecef |
| animation rate setup | 0x1401cb970 | objdump |
| caption height and top band copied into the window | 0x140203aab | objdump |
Units and DPI
- Observed-binary (
0x1401a1210): every tab-strip size is a multiple of one UI unit u, rounded half away from zero to whole pixels. The unit comes from the UI font size scaled by DPI:pt × (dpi / 96) × 4/3.WM_DPICHANGEDstores the new DPI and applies the suggested rectangle. Frame metrics useGetSystemMetricsForDpiwhen it is available andGetSystemMetricsotherwise. - Observed-runtime + Inference: the caption buttons measure 41 px apart at the captured scale, and 41 = round(3.4 × 12). So u = 12 px, which is a 9 pt UI font at 96 DPI. Pixel values below are for u = 12.
- A few metrics are rounded to an even number (
0x1401a1210, lines ~1026–1097 of the pseudocode) so that icons stay centred on whole pixels.
Geometry (Observed-binary unless marked; px at u = 12)
| Element | Rule | px |
|---|---|---|
| Caption/strip row height | round(2.7u) (window field +0xa20 → +0x898) | 32 |
| Top resize band inside the client area | round(0.3u) (+0xa24 → +0x89c) | 4 |
| Strip padding when restored | round(0.2u) left and round(0.3u) top (field order inferred); 0 when maximized | 2 / 4 |
| Tab height | strip height + 1 px (+0x1898, the border width = round(0.1u)) so the active tab covers the divider line | 27 + 1 (runtime: y=5…31, active also covers y=32) |
| Tab width | clamp(floor((avail − n·(1 + 2·round(0.2u) + round(0.3u)) − round(2.4u)) / n), round(10u), round(16u)) | min 120, max 192 |
| Observed tab pitch | Observed-runtime | 125 (120 + ≈5 spacing) |
| Hover highlight width | Observed-runtime | 118 |
| Tab top corner radius | (round(0.9u) + round(0.6u)) / 2, bottom corners square | 9 |
| Active-tab bottom flare (concave "ears") | radius round(0.6u), ear width round(0.6u) − round(0.2u); only when the rounded-style flag (+0x187c) is on | 7 / 5 |
| Content order inside a tab | icon box 1.8u × 1.8u → gap 0.2u → title (text size, may shrink to 10 %) → flexible spacer → gap 0.5u → close button → trailing gap 0.2u | 22 / 2 / … / 6 / 29 / 2 |
| Close button | width round(2.4u), height 0.9 × tab height, corner radius max(0, 9 − round(0.2u)) | 29 × 24, r 7 |
| Close glyph | icon-font codepoint U+E038; Observed-runtime 8 × 8 px, vertically centred | 8 |
| Inactive separator | Observed-runtime 1 px, y 11…27 (17 px, centred), hidden next to the hovered or active tab | 1 × 17 |
| New-tab "+" button | U+E02B, width = its content plus round(0.2u) padding (round(0.1u) in one maximized case; side not decoded), height = tab height, all four corners radius round(0.6u). It is the last child of the scrolled row, so it scrolls with the tabs | ≈ 29 |
| Scroll buttons ‹ › | ScrollLeft/ScrollRight, width round(1.8u), full height, gap round(0.1u) (made even), then round(0.5u) (made even) before the tabs | 22, gap 2, then 6 |
| Caption buttons | width round(3.4u), height = row height; glyphs U+E034 minimize, U+E035/U+E036 maximize/restore, U+E037 close | 41 × 32 |
| Leading reserve (left-most panel) | spacer max(0, round(3u)·2 + round(0.2u) − sidebar width) keeps room for ☰ and the sidebar toggle | ≤ 74 |
| Tooltip | delay 750 ms (0x2ee), maximum width 10u | 750 ms / 120 |
Width, overflow and keeping the active tab visible
- Observed-binary (
0x140148410): all tabs get equal widths, recomputed every frame from the tab count and the row width. Titles are not measured. The share is clamped to [10u, 16u]. While a tab drag hovers over this strip, the count is n + 1 so that a slot opens for the drop. - Observed-binary: tabs never go narrower than 10u. Past that point the row scrolls horizontally. The ‹ and › buttons step the scroll offset, and each is disabled at its end (offset 0 / offset max). The step size comes from an input-state field whose meaning we did not resolve. Observed-runtime: with many tabs the left chevron is dimmed at offset 0, and the last visible tab is clipped at the row's right edge.
- Observed-binary (end of
0x140148410): when a tab index is flagged for reveal (selection change), the target offset is clamped so that the tab becomes fully visible. The clamp bounds use the previous tab's left edge and the next tab's right edge, so the minimal scroll also tends to show the neighbours. Inference: the scroll target goes through the framework's scroll API, so it eases with the animation below. - Observed-binary, bounded negative: the width rule has no Chrome-style freeze that keeps widths fixed while the pointer stays on the strip after a close. Widths are recomputed every frame.
Interaction
- Hover / active (Observed-runtime): the hovered tab gets a filled
rounded highlight (light theme: accent-tinted
#99DEF8). The active tab uses the content background, merges with the content through the bottom flares, and covers the 1 px divider. Inactive tabs are bare and separated by 1 px lines. - Close button visibility (Observed-binary,
0x14014acc0≈ lines 1478–1516): the × glyph is always emitted. The hovered tab and the active tab (the focused panel's current tab) colour it visibly. Other tabs use a different colour id, and the runtime capture shows nothing there. Inference: that colour is transparent. Result: × on hover plus × on the active tab. Tabs with an unidentified per-tab state (+0x500) show × only while the button itself is hot. - Mouse, Observed-binary (widget event byte: 0 left, 1 right, 2 middle):
- Left press: select the tab (command
0x22). - Left double-click on a tab: command
0x60. The runtime study saw this open the folder Properties dialog. - Right button: select, then open the tab menu (
0x61) anchored at the tab's left edge and round(0.2u) below its bottom edge. - Middle click: close (
0x55). A left or middle click on × also closes. - Left or middle click on "+": new tab after the current one, honouring the New Tab Show setting.
- A setting at
+0x840switches some actions between press and release. We did not identify that setting by name.
- Left press: select the tab (command
- Empty strip (Observed-binary,
0x140148410end →0x14018ad80): only the rectangle actually covered by tabs is registered as "client" inside the caption row. Space to the right of the last tab is left asHTCAPTION, so dragging there moves the window and a double-click maximizes throughDefWindowProc. Inference: this is the stock Windows behaviour, not File Pilot code. - Drag to reorder (Observed-binary,
0x14014acc0≈ lines 1744–1767):- Start: a held left press on a tab starts a tab drag (
0x56) once |x − press x| > round(u) (12 px). The check is horizontal only. - Drop position: tabs are scanned left to right, and the drop slot goes
before the first tab whose midpoint is right of the pointer
(
x < left + width/2). Otherwise it goes at the end. Hovering over the dragged tab's own span shows no slot. - Placeholder (
0x140147fc0): a full tab-sized rounded slot (colour id0x3c) with round(0.2u) spacers on each side. The strip lays out n + 1 slots, so the neighbours part to make room. - Feedback: a tooltip says Move tab or Copy tab. Copy is chosen by a modifier bit in the input state. Inference: Ctrl.
- Other panels' strips are also drop targets.
- Inference: the dragged tab stays drawn in place (its box gets an alternate style flag) rather than following the pointer.
- Start: a held left press on a tab starts a tab drag (
- Keyboard:
- Observed-runtime (tooltips): close = Ctrl+W, Ctrl+F4, MouseMiddle; tab menu = Ctrl+Shift+Down, MouseRight.
- Observed-binary, mapping inferred from string order next to the command list: Ctrl+T new; Ctrl+N (likely duplicate); Ctrl+Shift+PageUp/PageDown shift tab; Ctrl+Shift+W; Ctrl+Shift+T reopen; Ctrl+Tab and Ctrl+PageDown next; Ctrl+Shift+Tab and Ctrl+PageUp previous; Ctrl+1…8 and Ctrl+keypad1… select N. The hover tooltip lists the Select-N binding for the first eight tabs.
Animation
- Observed-binary (
0x1401cb360,0x1401cb970): UI animation is an exponential approach evaluated once per frame:x += (target − x) · (1 − 2^(k·dt)), withdt = max(0.001 s, frame time). There are four speed classes:k = −50(default),−70,−30and−20s⁻¹. The default has a 20 ms half-life and gets within 1 % in about 133 ms. Normalized values snap to the target at |Δ| < 0.01; animated rectangles snap at 0.25 px. While anything is still moving, the step requests another frame. When nothing moves the loop goes back to sleeping. - Tab open (Observed-binary): the tab's width is
W · t, wheretis the box's appear value animating 0 → 1. A new tab grows in from zero width. The panel's only tab, and tabs stamped with the current frame, snap tot = 1. Inference: the stamp is for restore and programmatic opens. - Tab close: no close animation was found. The tab leaves the list
immediately and the equal-share widths are recomputed. Inference: box
rectangles have their own animated copy (
+0x280…, 0.25 px snap), so the neighbours probably slide into place, but whether tab boxes enable that flag is not established. - Hover/active fades (Observed-binary,
0x1401d51d0…): each box's hot, active and focus values animate at the default speed. - Tab icon fade-in (Observed-binary): the icon fades in linearly over 1/6 s from a per-tab timestamp.
- Reduce motion (Observed-binary): when File Pilot's own Animations
setting is off, every animation step returns the target value immediately.
The binary queries
SystemParametersInfoWonly for actions0x66(SPI_GETMOUSEHOVERTIME) and0x68(SPI_GETWHEELSCROLLLINES). It never asks forSPI_GETCLIENTAREAANIMATION, so the Windows reduce-motion setting is ignored. - Font-size changes go through the same animator, so UI zoom eases too.
Title bar per OS (Observed-binary, 0x14020c570)
-
WM_NCCALCSIZE: File Pilot shrinks the client rectangle on the left and right bySM_CXPADDEDBORDER + SM_CXFRAME, and at the bottom bySM_CXPADDEDBORDER + SM_CYFRAME, using the DPI-aware variants. The top is not shrunk, so the client area starts at the top of the window. When maximized, the top is inset by the same frame amount. When maximized with an auto-hide taskbar on the bottom edge, one extra pixel is left free. -
No DWM frame extension: the binary does not use
DwmExtendFrameIntoClientArea. Its only static dwmapi import isDwmSetWindowAttribute. Two platform hooks set attribute 2 (DWMWA_NCRENDERING_POLICY) to 1 (disabled) and back to 0 (use window style). When they run is not established. -
WM_NCHITTEST: inside the caption row (y < 2.7u) the default isHTCAPTION. Rectangles registered by the strip and caption buttons returnHTCLIENT. When not maximized:HTLEFT/HTRIGHTare returned within the frame width of the sides.HTTOP,HTTOPLEFTandHTTOPRIGHTare returned fory < round(0.3u).- In a borderless mode,
HTBOTTOM*is returned along the bottom edge.
The caption buttons are therefore client-drawn
HTCLIENTwidgets. File Pilot never returnsHTMAXBUTTON, so the Windows 11 Snap Layouts flyout cannot appear over its maximize button. -
Win7: there is no OS-specific branch, so the same code runs. The top native caption is removed and File Pilot paints its own caption row there. Observed-runtime (
win7-fp-hover.png): the left, right and bottom edges keep a solid 1 px black / 6 px#BAD2EA/ 1 px white system frame (a Basic-style frame in that VM), and there is no Aero caption. Voyager7 will not copy this on Win7. -
Win10 (Observed-runtime): the side frames are invisible resize borders with a 1 px DWM edge. Row y = 0 is a 1 px line (
#D8D8D9), and the caption row fills y = 0…31.
Rendering
- Observed-binary: the strip, tabs, chevrons, "+" and caption buttons are
ordinary boxes in the same immediate-mode UI as the rest of the app, built
from style stacks (width, height, colour id, corner radii, padding) and
drawn by the instanced D3D11/OpenGL shape renderer described above.
- Glyphs come from an icon font in the private-use area (U+E010…U+E038).
- Text goes through DirectWrite (
WinFontRasterizer.cpp) into the glyph atlas.
- Title overflow: the title box may shrink to 10 % of its natural width. No U+2026 or "…" use connected to tab titles was found (bounded byte and xref search), so ellipsis, clipping or a fade-out is not established.
Recommended Voyager7 values
These are our choices, derived from the findings above, not File Pilot's
code. Voyager7 should express them in DIPs from one UI unit
u = 12 DIP × (dpi / 96) (9 pt Segoe UI), rounded half away from zero.
| Item | Voyager7 value | Note |
|---|---|---|
| Strip row height | 2.7u = 32 DIP | Win10+ is also the caption row. On Win7 it is a client row under the untouched native caption. |
| Tab inset when restored | 4 DIP top, 0 when maximized | Fitts's law at the screen edge when maximized |
| Tab height | row − top inset; active tab +1 px over the divider | |
| Tab width | equal share, clamp [10u, 16u] = [120, 192] DIP | Titles are not measured |
| Gap between tabs | 4 DIP + 1 px separator | Matches the 125 px pitch |
| Overflow | horizontal scroll with ‹ › buttons (22 DIP, disabled at the ends) left of the tabs; mouse wheel scrolls too | Never shrink below the minimum |
| Reveal on activate | minimal scroll that makes the active tab fully visible, preferring neighbour edges | |
| Corner radii | tab top 9 DIP; active flare 7 DIP; close button 7 DIP | |
| Close button | 29 × 0.9·tab height DIP, 8 DIP glyph; shown on hover and on the active tab | Middle-click also closes |
| "+" button | 29 DIP wide, directly after the last tab, scrolls with the tabs | |
| Drag start | |dx| > 12 DIP or |dy| > 12 DIP; the tab tears off into its own window once the pointer is 12 DIP beyond the row or outside the window (Windows Terminal / Ghostty GTK; File Pilot has none) | |
| Drop slot | midpoint rule; tab-sized placeholder; neighbours slide | |
| Animation | 1 − 2^(−50·dt) per frame; snap at 0.01 (normalized) or 0.25 px; tab open grows width from 0 | ≈ 130 ms settle |
| Reduce motion | honour SPI_GETCLIENTAREAANIMATION and a config switch; when off, every animation snaps | File Pilot only has its own switch |
| Tooltip | 750 ms delay, max width 10u | |
| Caption buttons (Win10+) | 41 × 32 DIP; maximize returns HTMAXBUTTON on Win11 for Snap Layouts | Deliberate deviation from File Pilot |
| Empty strip area | HTCAPTION (drag moves, double-click maximizes) | |
| Top resize band (Win10+) | 4 DIP inside the client area | |
| Keyboard | Ghostty defaults, since config is a Ghostty superset: Ctrl+Shift+T new, Ctrl+Tab / Ctrl+Shift+Tab and Ctrl+PageDown/PageUp next/previous, Ctrl+Shift+PageUp/PageDown move, Alt+1…8 go to tab, Alt+9 last | Not File Pilot's Ctrl+T / Ctrl+W |
Reconciliation notes:
- The earlier runtime figure of "≈125 px boundaries" is the 120 px minimum width plus about 5 px of spacing.
- The earlier "chevrons before the tabs" are the scroll buttons.
- In the vendored
Config.zig, Ghostty registers ctrl+shift+w twice (close_surface, thenclose_tab:this). Which binding wins depends onBinding.Set.putreplacement semantics. Check that before relying on the W45 note.
Unknowns
- How title overflow is drawn: ellipsis, hard clip or fade.
- Whether tab boxes animate position (neighbours sliding after a close or reorder) or jump. The framework supports rectangle animation, but the flag on tab boxes was not decoded.
- The scroll step per ‹ › activation, and whether the chevrons are hidden when nothing overflows.
- Mouse-wheel behaviour over the strip.
- What the drag source does outside every strip, and whether a tear-off to a new window exists. Only the Duplicate Tab To New Window command was found.
- Whether the dragged tab is drawn dimmed in place.
- The meaning of the per-tab state at
+0x500, which changes × visibility and width. - The press/release setting at
+0x840. - When the
DWMWA_NCRENDERING_POLICYhooks run, and how the Win7 frame looks under Aero glass. The VM capture shows a Basic-style frame. - Exact colour ids → theme colours, and the hover highlight inset (118 of 125 px).
- Which of the inferred default shortcut mappings are actually correct.
No decompiled code was copied into Voyager7. The temporary pseudocode stayed in the session scratchpad.
Reference checkouts
Local clones used while designing Voyager7. Recorded 2026-11-05. Paths are on the development machine; the remote is given so anyone can re-clone.
Two kinds of reference:
- Dependency: code Voyager7 links against.
- Prior art: code we read for design lessons only. Voyager7 does not fork these or copy code from them. The scraper and hook DLL are written from Microsoft's Console API documentation.
| Project | Local path | Remote | Kind | What we use it for |
|---|---|---|---|---|
| Ghostty | ~/repo/ghostty-org/ghostty | https://github.com/ghostty-org/ghostty | Dependency (libghostty-vt, pinned as vendor/ghostty at c7f68a7) | VT engine. Also the model for test depth: about 3,500 terminal tests, sprite and glyph PNG comparisons, the esctest run, and the Terminal Inspector (Dear ImGui, available on GTK and macOS). |
| COSMIC Terminal | ~/repo/pop-os/cosmic-term | https://github.com/pop-os/cosmic-term | Prior art, with local fixes | Carries 5 local commits (750c1de..e9ca042) that fix border, Powerline, and emoji rendering, with pixel tests. See terminal-rendering.md. |
| cosmic-text | ~/repo/pop-os/cosmic-text | https://github.com/pop-os/cosmic-text | Candidate dependency, with local fixes | Shaping (rustybuzz), rasterization (swash), font discovery (fontdb). Handles Arabic in a terminal grid. Carries 2 local commits (790c900d, 2c9d3bad) for emoji presentation, fallback order, and system emoji preference. |
| Windows Terminal | ~/repo/microsoft/terminal | https://github.com/microsoft/terminal | Prior art | src/winconpty and src/host for ConPTY and conhost behaviour. src/renderer/atlas (AtlasEngine) for the D3D11 feature-level fallback chain and WARP use. TAEF test layout. |
| ConEmu | ~/repo/ConEmu/ConEmu | https://github.com/ConEmu/ConEmu | Prior art | ConEmuHk hook-DLL design and the pre-ConPTY console interception problems it ran into. |
| winpty | ~/repo/rprichard/winpty | https://github.com/rprichard/winpty | Prior art | src/agent for a scraper's console-diff loop and its known failure modes. |
| rexnux | ~/repo/m-i-z-u-k-i/rexnux | https://trylle.com/m-i-z-u-k-i/rexnux | Prior art | Used in renderer comparisons during the COSMIC fixes. |
| File Pilot | (closed-source binary, not checked out) | https://filepilot.tech | Prior art | Size and performance model for a native Windows 7 app. See filepilot.md. |
Guidance when reading prior art
- Take the design lesson, write our own implementation, and cite the Microsoft documentation page that defines the behaviour.
- Note which upstream commit you read; these clones move.
- The COSMIC and cosmic-text local commits are not upstream. Treat them as worked examples of fixes and tests, not as code to vendor.
References and prior art
Primary source for the Windows 7 Backends (the Scraper and the Hook):
- Microsoft Docs: Console reference
covers the console functions, structures, and the
CONSOLE_SCREEN_BUFFER_INFOEXandINPUT_RECORDsemantics. - Microsoft Docs: Pseudoconsoles for the ConPTY backend.
Prior art. We read these for design lessons only. Voyager7 does not fork them or copy code from them.
- microsoft/terminal:
src/winconpty,src/host, anddep/Console - winpty:
src/agent - ConEmuHk
- Ghostty on Windows discussion
- Paneflow's libghostty-vt integration on Windows
For the local checkouts used on the development machine, see Reference checkouts. For configuration, Voyager7 options and CLI actions, see configuration.md.
Documentation
The user-facing pages are published as a site at https://voyager7.stackflip.dev, built
with mdBook from this folder (SUMMARY.md is its table of contents).
Overview and architecture
- architecture.md: the Windows console problem, Backend/VT/Renderer pipeline, layer choices, and engineering notes.
- design-decisions.md: why x64-only,
no_std, cosmic-text, D3D11, sidecar fonts, and Hook + Scraper. - roadmap.md: completed roadmap steps, subsequent features, and open questions.
- performance.md: output speed and memory against conhost, Windows Terminal, ConEmu, Alacritty and WezTerm.
- known-limits.md: known limits, Windows 7 caveats, unverified areas, and FAQ.
- references.md: primary Microsoft Console API sources and prior art.
Using Voyager7
- download.md: quick download button, step-by-step Windows install, updating, uninstalling, and other release files.
- install.md: Windows packages (Setup, portable ZIP,
standalone-min), silent switches, sidecar fonts,+version --full, and forcing the Windows 7 Backend.
- install.md: Windows packages (Setup, portable ZIP,
- ghostty-compatibility.md: exact Ghostty compatibility status on Windows (config keys, keybind actions and CLI actions).
- configuration.md: config files,
window-theme, themes, Settings editor,v7-*options, and CLI actions.- reference/config.md: every configuration key with its default and description, generated by
cargo xtask docs-reference. - reference/actions.md: every keybind action, generated the same way.
- reference/config.md: every configuration key with its default and description, generated by
- tabs-and-titles.md: tab, window, and split titles and title key bindings.
- shell-profiles.md: shell detection, profile files, Windows Terminal fragments, jump list, and file/text drag-and-drop.
- splits.md: splits, focus, resize overlay, zoom, and actions.
- quick-terminal.md: drop-down quick terminal and
global:key bindings. - keyboard-selection-and-urls.md:
adjust_selection, block selection, Mark mode, clipboard formats, URLs/OSC 8 links, and moving/copying tabs. - kitty-graphics.md: kitty graphics protocol support and Backend matrix.
- notifications.md: tooltip toasts, OSC 9;4 progress, OSC 133 command-finish notifications, and the bell.
- column-modes.md: 80- and 132-column mode (DECCOLM).
- default-terminal.md: default terminal registration on Windows 10/11 and the Explorer hook on older Windows.
Engineering records and guides
- adr/: architecture decision records, 0001 to 0021. Start here for why things are the way they are.
- guides/: documents kept current.
- STYLE.md: TigerStyle adapted for Voyager7, enforced by lints.
- testing.md: the seams, the golden rules and the budgets.
- test-results.md: recorded test runs.
- dependencies.md: the allowlist, with a reason per crate.
- terminal-rendering.md: rendering lessons and acceptance checks.
- size.md: executable size and VT throughput.
- memory.md: idle memory and visible-grid storage.
- emoji-sidecars.md: the bundled font manifest.
- filepilot.md: File Pilot as the reference for a small, fast executable.
- references.md: the local reference checkouts and what each is for.
- plans/: dated plans and status snapshots.
- research/: dated investigations and spikes (Windows 7 backend, hook, ConPTY parity, latency, AltGr, TUI compatibility).
- history/: dated work logs from the build-up (window chrome, tabs, Step 6, design passes). Kept as a record; code comments cite some of them.
- test-results/: raw results referenced from
guides/test-results.md.