Articlesland
Menu

BRIEF and the programmable keyboard

Inside a DOS-era text editor whose windows and shortcuts gave programmers a desk of their own.

3 min read

A compact old keyboard and a small boxy monitor with an abstract split screen.

A programmer using BRIEF could make the keyboard fit the way they worked. That small idea explains much of the appeal of a text editor described in Articlesland in January 2008. The screen was spare, but the person at the keys could decide what happened when a particular key was pressed.

A name that described the job

BRIEF stood for Basic Reconfigurable Interactive Editing Facility. Michael Strickman and David Nanian developed the editor at UnderWare. It ran in a DOS environment, where a screen of text had to do much of the work a collection of overlapping graphic windows might do elsewhere.

A text editor works on the characters in a file. A program’s source, a note about a bug and a list of commands can all be edited as text. The compiler that translates program source has a different job. An editor can provide a convenient way to invoke a compiler while keeping the written file at the center of the work.

Make a key do a familiar job

The features listed in the directory included a configurable keyboard, mouse support, multiple windows, undo and redo, and a C-like language for extending the editor. A programmable command might collect several familiar editing actions under one key. Someone who performed those actions repeatedly could then concentrate on the text.

Multiple windows helped with a different task. A programmer could look at a definition in one part of a file while working elsewhere. Moving between two visible passages reduces the need to remember exactly how the first one read.

In a 1991 article, programmer James Rodriguez described arranging two views of one file side by side. Among the resources an editor could control, he listed “windows, buffers, keyboards, cursor position, and other state variables.” A buffer holds the text being worked on. A window determines which part of it the person sees. Rodriguez’s account of extending BRIEF

FeatureWhat a person at the keyboard could do
Key mappingPut a frequent command under a chosen key
Multiple windowsKeep two places in view
Undo and redoInspect the effect of an edit and move back or forward
Extension languageCombine editing operations into a personal command

The writing problem underneath

Even without writing programs, you may recognize the need. A long document sometimes requires a name on the first page to match one on the last. A split view makes that comparison easier. Undo lets a writer try a shorter sentence and bring the old one back to compare. The interest of BRIEF lies as much in those ordinary editing decisions as in the machine it ran on.