CRT
Terminal Delight can draw every pane as a small CRT tube. Its glass curves, its edges fall into shadow, scanlines run across it, and now and then a faint band rolls down it the way it did on an old monitor. Only the panes bend. The tabs, bars and menus around them stay flat, and a click lands on whatever is drawn under the pointer.
A new window opens on the tube. Press Ctrl+Shift+G on a pane to open its GAUGES tray, and open the ▸ CRT row at the foot to switch it. The design decides the texture: scanlines, glow, the rolling band, flicker. The warp slider beside the switch sets the curve, from 0 for flat glass to 1.5.
Above it, the same tray grades the pane like a monitor: brightness, contrast, colour, gamma, text size, and how brightly lit borders glow.
Letter glow and the inactive panes' dimming work with the tube off too, erased text fades where it was drawn, and the Clean design holds the tube and every light off.
Technical has the warp's formula, every effect and every gauge.
The tube
There are two layers. Scanlines, the tracking band, vignette, bloom, flicker, jiggle and the bezel are drawn over each pane, at strengths the theme's [effects] sets. The barrel warp and the glass glare run in a pass added to the renderer, which bends each pane's own rectangle after the frame is drawn; the same pass does the text crawl and the focus reader's blur.
docsite/tools/barrel-figure.mjs from the shader in the renderer patch.Warp#
For a point c on the pane, measured from its centre in the pane's own 0–1 space, the pass shows the content at c × (1 + k1·r² + k2·r⁴), where r = |c|, k1 = 0.14 × warp and k2 = 0.06 × warp. Brightness falls to 86% toward the edge, and a bent pane is drawn 35% brighter overall so it doesn't look dim beside flat chrome. A pane at warp 0 skips the pass entirely and looks exactly as it would without it.1
Warp runs from 0 to 1.5. A fresh window keeps it at 1.5, ready for the day you switch the tube on; a grade with no warp of its own starts at 1.43. Switching the CRT off leaves the number alone.3
- Clicks, selection and links are mapped through the same curve, so they land on what you see.
- The bent glass is a rounded rectangle seated behind the frame. Its corners are 5.5% of the pane's short side (10 to 72 device pixels), a shadow runs along every edge, deepest under the top lip, and a faint moulding in the pane's chrome colour catches light from above. Paper skins get none of it. A flat pane on a design with a vignette gets the same seat, drawn flat.2
- While a menu or dialog is open, every pane's glass is drawn flat for that frame, and panels and hover cards over a bent pane are drawn flat.
- Up to 32 bent rectangles per frame, enough for the agent wall's card pictures.
- A new bent pane powers on over 300 ms: the phosphor floods in, collapses to a line, then pinches to a star while the terminal appears behind it. Closing it plays the second half. Flat panes skip this.
The CRT switch#
The switch is the last row of GAUGES: ▸ CRT, folded shut each time the tray opens. Opened, it shows ▢ crt off or ▣ crt on, and while the tube is on, the dials it switches: warp, glare, roll, roll spd, roll size and ↺ roll → per-theme.3
Off is a flat screen. The warp, the rolling band, scanlines, vignette, bloom, flicker, jiggle, glare, the bezel and letter glow are all dropped, and the coloured haze under each pane header goes with them. The dials keep their values, so switching back on restores exactly the tube you had. The switch is per pane, like every gauge, and a pane follows the window's until you flip it on the pane. A fresh install starts with it off; an install upgraded from an earlier version keeps its tube.
Effects#
Set in the design's [effects] table. Every key but glow is drawn only while the CRT is on. Every key is optional and clamped to its range; one left out is off.3
| Key | Range | Default | Draws |
|---|---|---|---|
scanline_opacity | 0–0.6 | 0 | A dark line every scanline_step pixels, with a faint accent line under it. |
scanline_step | 2 and up | 4 | Pixels between scanlines. |
vignette | 0–1 | 0 | Shadow toward the edges, and a soft highlight at the top left. Off on the workbench and on documents. |
glow | 0–1 | 0 | The accent halo on the pane header, the cursor and the workbench's cards. It belongs to the chrome, so it stays with the CRT off, except the part that falls onto the glass below the header. |
bloom | 0–1 | 0 | An accent haze rising toward the middle of the pane. |
tracking | 0–1 | 0 | A 160 px band that rolls from top to bottom. |
tracking_period | 2–120 s | 14 | Seconds from one band to the next. |
tracking_sweep | 1–30 s | 7 | Seconds one band takes to cross. |
flicker | 0–1 | 0 | Every 9 to 17 seconds, a half-second stutter in brightness. |
jiggle | 0–1 | 0 | Every 6 to 9 seconds, the picture hops a pixel or two. |
screen_glare | 0–1 | 0, or 0.42 for a design named hacker | A glare spot and streak at the top left of the glass. Shows only on a bent pane. The glare gauge overrides it per pane. |
bezel | 0–1 | 0 | A raised frame around the glass. |
letter_glow | 0–1 | 0 | Phosphor bleeding off every letter: each line of text is drawn again underneath, a pixel out in four directions. |
A curvature key in older theme files is ignored: the curve is the per-pane warp. Your theme.toml starts as a copy of hacker, which turns most of these on, so switching the CRT on in a fresh window gives that tube under the Terminal Delight palette.
intrusive is the design that turns the tube all the way up: scanlines laid over the text at 0.31 every 3 pixels, full glow and bloom, flicker and jiggle, and letter_glow at 1, the only built-in design that glows its letters. It asks for no skin, so it goes with any.3
GAUGES#
Ctrl+Shift+G on a pane opens GAUGES — THIS PANE; the slider icon beside 🎨 at the bottom right of the window opens GAUGES — OUTER for the whole window. A pane follows the window on every gauge until you move that gauge on the pane; ◉ follow outer hands it back.3
Ten sliders, then reset, then two folded rows: ▸ TEXT CRAWL (see Text crawl) and ▸ CRT.
| Gauge | Range | Fresh window | After reset |
|---|---|---|---|
text size | 60–200% | 74% | 100% |
bench size | 60–200%, or follow text size | follows text size | follows text size |
brightness | −50 to +50 | −24 | +0 |
contrast | −50 to +50 | +25 | +0 |
colour | −50 to +50 | +50 | +0 |
text, background, gamma | −50 to +50 | +0 | +0 |
menu bar | 70–160% | 85% | 100% |
phosphor | 0–400% | 100% | 100% |
warp, under ▸ CRT | +0 to +150 | +150 | unchanged |
glare, under ▸ CRT | 0–100%, or follow the design | follows the design | unchanged |
The colour gauges read as a signed offset from neutral, +19 or -34. Text and background are graded separately, and brightness can only dim text, never push it past white. phosphor scales the glow of every lit border at once, from none to four times the house glow; at 0 a border is still drawn, without its halo. reset puts the ten sliders back and leaves the crawl and the whole CRT section alone.
glare opens where the design's own screen_glare has it and follows the design until you move it; it shows only where warp is above 0. roll, roll spd and roll size override the pane's rolling band, and ↺ roll → per-theme gives it back to the design. A fresh window keeps a roll of its own ready for when the tube is switched on.
Ctrl and the mouse wheel size whatever is under the pointer: the terminal's text, the workbench, or, over a header or the chrome, the menu bar. One notch is 5%.
An agent can set the same gauges through the MCP server's set_pane_config, each as a percentage of its range, with writes on.
GAUGES since 0.5.0#
The sliders sit in four groups, each folded to its heading until you click it: TYPE, PICTURE, ACTIVE TERMINALS and INACTIVE TERMINALS. The CRT row is called CRT GLASS.4
| Group | Gauges |
|---|---|
TYPE | text size, bench size, menu bar |
PICTURE | brightness, contrast, colour, background, field colour, gamma, phosphor |
ACTIVE TERMINALS | text, letter glow, opacity, cursor linger, off-cursor linger |
INACTIVE TERMINALS | brightness, opacity, blur, text level (of active text intensity), letter glow, cursor linger, off-cursor linger |
Terminal lighting follows focus in every skin, with the tube on or off. The pane you're typing in and the others each have their own letter glow, and inactive text can dim relative to the active pane's. Left alone, active letter glow is 20% and inactive text 45%; under Intrusive they are 37% and 52%; inactive letter glow is 100% in both, and Clean has no glow at all. A setting you make wins, zero included.
Erased passages fade where they were drawn, while new text appears at once. cursor linger is how long changed text fades at the cursor, 0 to 220 ms; off-cursor linger is how long an erased passage elsewhere fades, 0 to 650 ms. Both start at their maximum, and 0 turns each one off. The tray says so: New text is instant. Off-cursor = erased text; 0 = off.
Inactive brightness defaults to 78% and can go much darker; blur runs from clear to slightly softer than a popup's backdrop. field colour fades the terminal's default background from black toward the chrome around it; TERMINIMALIST matches it by default, and other skins keep their own background until you move it.
opacity makes a terminal's field see-through to the desktop while its letters stay solid, on the tube too. Both start at 100%, and a fullscreen window stays solid. An inactive pane keeps some of its brightness veil below 100% inactive brightness, so it doesn't go fully clear.
FLOATING DOCUMENT holds a toggle between the fullscreen reader, the default, and the glow pane. It decides where Alt+O opens a brief, the window remembers it, and switching keeps your place and your notes.
While the window wears the Clean design, the tube and every light are held off whatever the dials say: the curve, the roll, the glare, letter glow, the linger fades and the border halos. The dials keep their values for the next design, and each design remembers its own look dials; see Themes.
Switches for debugging#
TD_NOGLASS skips everything drawn over the pane: scanlines, the band, vignette, bloom, glare. TD_NOCANVAS skips only the scanlines and the band. Neither turns off the warp; switch the CRT off or set warp to 0 for that. TD_IGNITION_FREEZE=0.7 holds the power-on at that point for a screenshot.
What would prove this wrong#
Click a word near the corner of a bent pane. If the selection starts anywhere other than the word you clicked, the click mapping and the drawing have come apart. And switch the CRT off and on again: if any dial comes back changed, the switch has stopped keeping the tube it hides.
Sources
- The warp and glare: 0001-td-crt-pass.patch; the tube list: warp.rs.
- The rounded glass and its moulding: 0008-glass-rim.patch; the overlay effects, the flat rim and ignition: crt.rs.
- Effects, the CRT switch, gauges, their ranges and defaults: theme.rs; the GAUGES tray: main.rs; its labels: lang.rs; Intrusive: intrusive.toml.
- 0.5.0: the gauge groups, lighting by focus, linger, inactive brightness and blur, field colour and Clean's hold: theme.rs and main.rs; the inactive blur: 0012-tube-blur.patch; the field under a skin: skin.rs; all on dev/0.5.0.