diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
| commit | 97d5c458cfa039d857301e1ca7d5af3beb37131d (patch) | |
| tree | b460cd850d0537eb71806ba30358840377b27688 /static/inferno/man1/brutus.1 | |
| parent | b89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff) | |
build: Better Build System
Diffstat (limited to 'static/inferno/man1/brutus.1')
| -rw-r--r-- | static/inferno/man1/brutus.1 | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/static/inferno/man1/brutus.1 b/static/inferno/man1/brutus.1 new file mode 100644 index 00000000..a2221dca --- /dev/null +++ b/static/inferno/man1/brutus.1 @@ -0,0 +1,120 @@ +.TH BRUTUS 1 +.SH NAME +brutus \- screen editor with support for SGML +.SH SYNOPSIS +.B wm/brutus +[ +.I file +] +.SH DESCRIPTION +.I Brutus +is a multi-file editor for UTF format text files. +.PP +When editing multiple files, each file appears in its own window. +Button 1 can be used to make a window current. Within the current +window, button 1 selects text. +Double clicking selects text up to the boundaries of words, lines, +quoted text or bracketed text depending upon the text at the point of the +double click. Double clicking at the start of a line +selects the entire line. Double clicking just inside various forms of +brace selects text up to the matching brace, correctly handling nested braces. +Button 2 displays a menu of editing commands: +.TF snarf +.TP +.B cut +Delete the selected text and save it in the snarf buffer. +.TP +.B paste +Replace the selected text by the contents of the snarf buffer. +.TP +.B snarf +Save the selected text in the snarf buffer. +.TP +.B look +Search forwards and select the next occurrence of the selected text. +.PD +.PP +Mouse chording is implemented, as in +.IR acme (1). +Dragging a selection with button-1 held down and then also clicking +button-2 cuts the selected text into the Snarf buffer. +Clicking button-3 instead of button-2 replaces the selected text with the contents +of the Snarf buffer. +.PP +Clicking button 3 extracts the whitespace-bounded string around the point of the +click and plumbs it to the appropriate application (see +.IR plumber (8)). +.PP +A +.I brutus +console window is always displayed from which new files may be opened +or from which existing open files may be selected. +Typing +.IP +.EX +.BI / word +.EE +.PP +in the console window will search for the character sequence +.I word +in the file associated with the current window. Typing +.IP +.EX +.BI ? word +.EE +.PP +in the console window will search backwards for the character sequence +.IR word . +If text has been selected in the current window the search begins from the +end of the selection if searching forwards and the beginning of the selection if +searching backwards. +If no text has been selected the search begins from the current insertion point. +Typing +.IP +.EX +.I linenumber +.EE +.PP +in the console window selects all the text on line +.I linenumber +and moves the window to show the selected text. +.SS SGML +If the first line of a file is exactly: +.IP +.EX +<SGML> +.EE +.PP +it is assumed to be in SGML format and the contents are displayed according +to some predefined formatting rules. Tags of the form +.BI < font . size > +are recognised and used to control the visual appearance +of text. The +.I font +may be one of: +.BR Roman , +.BR Italic , +.BR Bold , +and +.B Type +giving normal, italicised, emboldened, and constant width text. +The +.I size +may be one of +.BR 6 , +.BR 8 , +.BR 10 , +.BR 12 , +or +.BR 16 , +and determines the point size of the displayed text. +.SH PLUMBING +.B wm/brutus +listens for +.B edit +messages and plumbs text selected by button 3 +.SH SOURCE +.B /appl/wm/brutus.b +.SH SEE ALSO +.IR acme (1), +.IR cook (1) |
