Skip to content

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). StatementFile numbers nested Statements 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 core Button) 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.

<ARC>ERRANDS, 1
produce
apples, the tart green kind
six if small
four if large
carrots
lettuce3b
2
bakery
rye loaf, sliced
rolls for Sunday
1
market
milk, two quarts
cheese for the salad
drugstore
3
4
2
1
Light
<ARC>ERRANDS, 1
produce
apples, the tart green kind
six if small
four if large
carrots
lettuce3b
2
bakery
rye loaf, sliced
rolls for Sunday
1
market
milk, two quarts
cheese for the salad
drugstore
3
4
2
1
Dark
Shopping list
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.

<ARC>ERRANDS, 1
cwm
ERRANDS · all
cwm
produce — pick up on the way back from the library, the stall closes early on Saturdays
apples, the tart green kind, for the pie
six if they are small
four if they are large
carrots
lettuce3b
bakery
rye loaf, sliced
rolls for Sunday
market — the long list, kept short
milk, two quarts
cheese for the lettuce salad
coffeePANTRY, 1c
drugstore
film for the camera, 12 exposures
ERRANDS · 1 level
awm
produce — pick up on the way back from the library, the stall closes early on Saturdays
apples, the tart green kind, for the pie
six if they are small
four if they are large
carrots
lettuce3b
bakery
rye loaf, sliced
rolls for Sunday
market — the long list, kept short
milk, two quarts
cheese for the lettuce salad
coffeePANTRY, 1c
drugstore
film for the camera, 12 exposures
ERRANDS · 2 levels
btn
produce — pick up on the way back from the library, the stall closes early on Saturdays
apples, the tart green kind, for the pie
six if they are small
four if they are large
carrots
lettuce3b
bakery
rye loaf, sliced
rolls for Sunday
market — the long list, kept short
milk, two quarts
cheese for the lettuce salad
coffeePANTRY, 1c
drugstore
film for the camera, 12 exposures
View specifications

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.

<ARC>ERRANDS, 3c
bm
<ARC>ERRANDS, 3
bm
market3
milk, two quarts3a
cheese for the salad1c3b
coffeePANTRY, 1c3c
<ARC>PANTRY, 1c
bm
shelf by the window1
flour and sugar — check before the pie1a
tea1b
coffee: half a tin left, enough until Thursday1c
cold box2
butter2a
Jump to link

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.

<ARC>MEMO, 2a
bm
Meeting on Thursday
room by the library, two o'clock
bring the revised list
Notes from Monday
thestaledraft of the plan is replaced by the outline
each of us edits a branch, not the whole file
Open questions
who keeps the master copy (3b)
<ARC>HELP, keyset
chord: w
confirm
d = delete · w = word
dwCA
Mid-command
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.

<ARC>PLAN, 1
bm
<ARC>PLAN, 1
bm
Saturday: fair for the school
tables — six borrowed, two missing
1
signs to paint (2b)
people
Ada takes the cake stall
Ben takes the raffle
2
<ARC>PLAN, 2b
atm
signs: three for the gate, one for the hall, one by the road, all on card
paint: borrow from the art room
deadline Friday noon
4
3
1
2
4
3
Light
<ARC>PLAN, 1
bm
<ARC>PLAN, 1
bm
Saturday: fair for the school
tables — six borrowed, two missing
1
signs to paint (2b)
people
Ada takes the cake stall
Ben takes the raffle
2
<ARC>PLAN, 2b
atm
signs: three for the gate, one for the hall, one by the road, all on card
paint: borrow from the art room
deadline Friday noon
4
3
1
2
4
3
Dark
Shared screen

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.

<ARC>ROUTE, 1
bm
homelibrarybakerymarketdrugstore
stops
libraryERRANDS, 1
bakeryERRANDS, 2
marketERRANDS, 3
drugstoreERRANDS, 4
about 2.4 miles, on foot
Route map

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.

<ARC>PLAN, diagram
bm
PLAN
1 fair2 people3 money
1a tables1b signs2a stalls3a float3b takings
dashed: a link, not a branch
Diagram

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.

<ARC>PLAN, 3
bm
money
float for the cake stall: small change only
takings counted twice, by two people
receipts to the treasurer on Monday
after the fair
return the tables (1a)
thank-you notes
superimposed: camera 1
camera 2 — site 2
picture mixed into the display
TALKQUIT
Video session