Plan 9 from Bell Labs’s /usr/web/sources/contrib/anothy/lib/man/cadet.1

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.SH cadet 1
.SH NAME
cadet \- use a rio window as a trivial editor
.SH SYNOPSIS
.B cadet
[
.I file
]
.SH DESCRIPTION
.I Cadet turns a
.IR rio (1)
window into a trivial mouse-driven single-file editor. It prints
.IR file ,
if any, followed by a delimitor ⊢⊣, and then waits for commands.
It maintains an internal idea of the current file.
The commands are:
.TP
d
Print the delimitor.
.TP
p [ file ]
Print file, if specified, or the current file if none is specified,
followed by the delimitor.
Sets the current file, if specified.
Prints an error if neither file was specified.
.TP
q
Quit the editor. No check is made for unsaved changes.
.TP
w [ file ]
Write the entire contents of
.BR /dev/text ,
up to the last occurance of the marker, to
.IR file ,
or the current file if none is specified.
Sets the current file, if specified.
Prints an error if neither file was specified.
.SH SOURCE
.B /n/sources/contrib/anothy/bin/rc/cadet
.SH SEE ALSO
.IR cat (1),
.IR ed (1),
.IR acme (1),
.IR sam (1)
.SH BUGS
.I Cadet
is unlikely to be useful since being able to run it means one
could also run
.IR acme (1)
or
.IR sam (1).
It could be a useful scratchpad if
.IR rio 's
.B /dev/text
were writeable.
.PP
Arguably, it would be useful to check
.B /dev/text
for the prompt or invocation and only write from there.

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].