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.