NLS (oN-Line System)¶
The nls pack imitates the oN-Line System built by Douglas Engelbart's Augmentation Research Center (ARC) at SRI, as the audience saw it on 9 December 1968 at the Fall Joint Computer Conference in San Francisco — the session later called "the Mother of All Demos". The system ran on an SDS 940 timesharing computer at SRI in Menlo Park. Each workstation's text and lines were drawn on a small CRT, picked up by a television camera, and sent as video to the monitor in front of the user; in San Francisco that video was projected onto a large screen. What people saw was therefore a monochrome television picture: light, slightly blooming characters on a dark grey field, with scan lines and a dim rim.
What was on that screen, and what this pack draws:
- Structured statements. A file is a hierarchy of statements numbered
1,1a,1a1,1a1a(digits and letters alternate by level).StatementFilenumbers nestedStatements automatically. - View specifications change how the same file is shown, never its contents: how many levels
are visible, whether each statement is truncated to its first line, and whether statement
numbers are shown. Here:
StatementFile(levels: 2, lines: 1, numbers: false). - The command feedback line at the top shows the command being composed —
INSERT STATEMENT,JUMP LINK,DELETE WORD— and echoes what is typed on the five-key chord keyset (FeedbackLine,Echo,CommandWord,ViewSpec,Register,SystemMessage,Chord). - The bug, the tracking spot moved by the three-button mouse, drawn as a short upward arrow (
Bug); a second user on a shared screen gets a hollow one (PartnerBug). - Display areas side by side or stacked (
SplitScreen,DisplayArea), each with its file address. - Links between statements, in the same file or another, shown as text in parentheses
(
StatementLink,FileLink). - Line drawings: a route map for errands and diagrams (
RouteMap,Drawing,Stroke,Node). - Video superimposition: the camera picture of a person mixed into the display (
VideoInset,.variant(.overlay)). - There were no on-screen buttons;
CommandButton(and the coreButton) render a command word in brackets,[JUMP].
Select it with import NLS (also OnLineSystem, ARC) or pack="nls". The whole screen is a
Display (alias Screen) whose header: slot holds the FeedbackLine; file: and viewspec: show
under it (the view-spec letters in these mockups are illustrative, not a reference). There was no colour and no dark mode: the light appearance is the projected picture —
grey field, lower contrast, more bloom — and the dark appearance is a deeper, crisper direct-view
tube with near-black field and brighter characters. Use appearance="both" to compare.
NlsScreen, ShoppingFile, Keyset and ThreeButtonMouse are custom components in
mockups/nls/console.mockitdown, imported with import "nls/console". All file names, lists and
people below are invented; nothing is transcribed from the 1968 session.
A shopping list¶
A small structured file: four top-level statements with sub-statements, automatically numbered. The
bug rests on statement 2b, which is intensified 1. Statement 1c carries a link (#2, at the end of its line) to
statement 3b, shown in parentheses. The feedback line 3 is empty, waiting for a command, and
the view specifications 4 are shown at the right.
Source
import NLS
Display(file: "<ARC>ERRANDS, 1") {
StatementFile {
Statement("produce") {
Statement("apples, the tart green kind") {
Statement("six if small")
Statement("four if large")
}
Statement("carrots")
Statement("lettuce") { StatementLink("3b") }.callout(2, alignment: .trailing, inset: true)
}
Statement("bakery") {
Statement("rye loaf, sliced")
Statement("rolls for Sunday", selected: true) { Bug() }
.callout(1, alignment: .trailing, inset: true)
}
Statement("market") {
Statement("milk, two quarts")
Statement("cheese for the salad")
}
Statement("drugstore")
}
} header: {
FeedbackLine("") {
Echo("").callout(3, alignment: .trailing)
Spacer()
ViewSpec("abm").padding(.leading, 24).callout(4, alignment: .leading)
Register("ARC 940")
}
}One file, three views¶
The same file under three view specifications, in three display areas. Left: every level, all lines, numbers on. Middle: first level only. Right: two levels, truncated to one line each, numbers off. The file does not change — only the view does.
Following a link¶
JUMP LINK in mid-flight: the bug is on the link (PANTRY, 1c) in the upper area, and the lower area
already shows the target file with statement 1c intensified. Statement numbers are links too —
3b here is a statement in the same file.
Mid-command¶
The feedback line while a command is being composed: DELETE WORD has been chosen with two keyset
chords, the bug has selected the word "stale" in 2a, and the system waits for the mouse button that
confirms. A help area at the right shows the chord being held on the keyset and the mouse button that
confirms — drawn with the Keyset and ThreeButtonMouse custom components.
Source
import "nls/console"
NlsScreen(command: "DELETE WORD", echo: "at 2a", file: "<ARC>MEMO, 2a", viewspec: "bm") {
HStack(alignment: .top, spacing: 18) {
StatementFile(levels: 2) {
Statement("Meeting on Thursday") {
Statement("room by the library, two o'clock")
Statement("bring the revised list")
}
Statement("Notes from Monday") {
Statement("the") { Text("**stale**"); Bug(); Text("draft of the plan is replaced by the outline") }
Statement("each of us edits a branch, not the whole file")
}
Statement("Open questions") {
Statement("who keeps the master copy (3b)")
}
}
.frame(maxWidth: .infinity)
DisplayArea("<ARC>HELP, keyset") {
HStack(alignment: .bottom, spacing: 18) {
Keyset(down: [false, true, false, false, true], caption: "chord: w")
ThreeButtonMouse(pressed: 1, caption: "confirm")
}
Caption("d = delete · w = word")
HStack(spacing: 8) { Chord("d"); Chord("w"); CommandButton("CA", variant: .primary) }
}
.frame(width: 250)
}
}Shared screen¶
Two people working on one file over the link between sites, each display showing both bugs. The person in control has the solid bug, at the end of line 1; the partner's hollow bug 2 points at what they are talking about. The feedback line 3 names the command and who is in control. Each area keeps its own view specification 4: the right one shows one level, truncated to first lines.
Route map¶
The errands as a line drawing: the stops of the shopping list on a simple street map, the route
between them, and the list beside it with links into <ARC>ERRANDS.
Structure as a diagram¶
A file's hierarchy drawn as a tree of nodes and vector lines — a Drawing of Nodes and rotated
Strokes placed with .position(x:y:). The bug sits on one node.
Video session¶
A session with a remote colleague: the television picture of the partner is mixed into the display, once as a framed inset at the right and once superimposed, translucent, over the text — the way the camera picture and the display could be combined on one monitor.