-
Notifications
You must be signed in to change notification settings - Fork 18
Editor
This page documents use of the text/code editor built into the Farmtronics computer.
The editor is invoked with the edit
command.
The editor has a title bar that shows the path of the file being edited and the current line number. The rest of the screen is the editing area. Move the cursor with the arrow keys (holding Control or Option to move by word), and type to insert text. To delete text, use the Backspace and Delete keys (again holding Control/Option to delete whole words).
Other functions are accessed via control-key combinations. ^X
means to hold the Control key while pressing X. Currently supported key commands are:
-
^A
: move the cursor to the start of the line. -
^E
: move the cursor to the end of the line. -
^U
orPage Up
: move the cursor up one page (19 lines). -
^D
orPage Down
: move the cursor down one page (19 lines). -
^K
: cut the current line (press multiple times to cut several lines). -
^V
: paste the previously cut line(s). -
^H
: view help. -
^Q
orEsc
: exit the editor.
(Want to change the key bindings, or otherwise customize your editor? Just copy /sys/lib/editor.ms into /usr/lib, and edit it as you like!)
Note that the editor does not automatically save your changes to disk. When you exit the editor, your changes are in memory; you must use the save
command to save them to disk.