Phosphor terminal¶
READY. You scrolled past the last heading anyone else reads, which makes you exactly the operator this console was waiting for.
phosphor is a hidden pack: an original homage to the green-screen ship and mainframe computers
of 1970s–80s science fiction. One colour of light on a black tube, monospaced uppercase type with a
soft glow, scanlines and a dark vignette over the whole screen, boxed frames drawn with single and
double rules, numbered menus with dotted leaders, block-character bars, vector outlines for charts
and maps, and priority banners that stay perfectly steady — nothing on this screen blinks at you.
Every label, number and order below is invented. Select it with import Phosphor (also Mainframe,
CRT) or pack="phosphor" on the fence. The dark appearance is the canonical green tube; the light
appearance swaps in an amber tube, because someone in procurement got a deal.
Console (alias Screen) is the full-screen frame: a double rule with the title in inverse video,
code: in brackets at the right and the footer: slot for a StatusLine. Panel (alias Box)
is a single-rule box with its title set into the top rule. The rest: Prompt / CommandLine (a
command line with a block cursor), Cursor, MenuList with MenuOption (numbered automatically;
key: overrides the number, .selected() lights it), StatusLine, Readout, Banner (steady
priority banner; .variant(.notice) is the outlined form), Priority (the inverse-video alarm),
Wireframe (vector map), VectorPlot / Plot, LoadBar, Log, DataTable, Ledger, Header,
Caption and Rule. The core ProgressView, charts, Table, Spreadsheet and Terminal are
restyled to match.
The reusable pieces (ShipStatus, DirectoryMenu, SubsystemPanel) live in
mockups/phosphor/mainframe.mockitdown and are imported with import "phosphor/mainframe".
Main directory¶
The top-level screen: the numbered directory, four readouts and the command line waiting for input.
Source
import "phosphor/mainframe"
Console("MAIN DIRECTORY", subtitle: "INTERFACE 2037", code: "SYS 04") {
HStack(alignment: .top, spacing: 28) {
VStack(alignment: .stretch, spacing: 8) {
Caption("SELECT FUNCTION")
DirectoryMenu(lit: 3)
}
.frame(maxWidth: .infinity)
VStack(alignment: .stretch, spacing: 10) {
HStack(spacing: 10) {
Readout("HULL TEMP", value: "0412", change: "+3", unit: "KELVIN")
Readout("O2 RESERVE", value: "96.1", unit: "PERCENT")
}
HStack(spacing: 10) {
Readout("HEADING", value: "117.4", change: "-0.2")
Readout("DIST", value: "3.06", unit: "LIGHT-HR")
}
LoadBar("REACTOR", value: 0.64)
LoadBar("COOLANT", value: 0.82)
}
.frame(width: 330)
}
Spacer()
Rule("COMMAND")
Prompt("RUN DIAGNOSTIC 7")
} footer: {
ShipStatus()
}Systems diagnostic¶
A status grid of three SubsystemPanels, two vector charts and the fuel ledger as a fixed-width
spreadsheet.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | TANK | CAP | LEVEL | DRAW | HOURS |
| 2 | FORE 1 | 4800 | 3920 | 12.5 | =C2/D2 |
| 3 | FORE 2 | 4800 | 4105 | 12.5 | =C3/D3 |
| 4 | AFT 1 | 6200 | 2210 | 18 | =C4/D4 |
| 5 | AFT 2 | 6200 | 5980 | 18 | =C5/D5 |
Survey grid¶
The navigation screen: a Wireframe map of the survey area with the planned route, range readouts
and the transmission log as a Log terminal.
| WAYPOINT | KM | ALT |
|---|---|---|
| BEACON 4 | 0.00 | 220 |
| SITE K | 18.40 | 340 |
| RELAY 9 | 41.07 | 515 |
| WAYPOINT | KM | ALT |
|---|---|---|
| BEACON 4 | 0.00 | 220 |
| SITE K | 18.40 | 340 |
| RELAY 9 | 41.07 | 515 |
Priority alarm¶
The same console when something has gone wrong: the steady inverse-video Priority banner across
the top, Banners listing what tripped it and the command line asking for confirmation.
Anatomy of a screen¶
The parts of a screen, numbered. The double rule with its inverse title 1 is the Console; its
code 2 sits in brackets at the right. The numbered menu 3 is a MenuList of MenuOptions
with dotted leaders to their values; a Readout 4 is a dashed box around a big number; a
LoadBar 5 is drawn in block characters; the command line 6 ends in a steady block cursor;
and the inverse-video StatusLine 7 closes the screen.
Two more hidden consoles share this drawer: the starship console, the holographic HUD, and this one, the phosphor terminal. For the rest of computing history, see the Retro packs.