Sanos

HomePage | RecentChanges | EditorIndex | TextEditorFamilies | Preferences

Difference (from prior major revision) (no other diffs)

Changed: 6c6
Family: TinyEditors
Family: TinyEditors, CuaFamily

Changed: 12c12,42
It is a text-mode application that runs with any VT-100 compliant console or terminal, like xterm, telnet, PuTTY, and the Linux console.
Sanos has a simple text editor. It is a text-mode application that runs with any VT-100 compliant console or terminal, like xterm, telnet, PuTTY, and the Linux console. While most other text-mode editors (e.g. vi, emacs, and nano) have custom key bindings, the Sanos text editor tries to follow the principle of least surprise by using the same key bindings as most GUI-based text editors like gedit and notepad. These key bindings should also be familiar to anyone who has used a web browsers. You navigate around in the text using the normal cursor control keys (up, down, left, right, home, end, pgup, pgdn) and text can be selected by holding down the shift key while navigating. The text editor has a clipboard and you can cut (Ctrl+X), copy (Ctrl+C), and paste (Ctrl+V) text. Other commands also use the standard key bindings for GUI applications, like Ctrl+O to open a file, Ctrl+S to save the file, and Ctrl+Q to quit the editor.

There is only one source file (edit.c) and it does not rely only any external components except the standard libraries. It doesn't need any install program. It just consists of a single executable binary, and it doesn't require any configuration files to work.

Sanos follows the CUA standards for text editing, i.e., arrow keys and pgup/pgdown/home/end
for navigation, the same with shift for selection, Ctrl-X / Ctrl-C / Ctrl-V for cut/copy/paste etc.

Press F1 in the editor to see the (non-configurable) key bindings.

Editor Command Summary

* <up> Move one line up (*) Ctrl+N New editor
* <down> Move one line down (*) Ctrl+O Open file
* <left> Move one character left (*) Ctrl+S Save file
* <right> Move one character right (*) Ctrl+W Close file
* <pgup> Move one page up (*) Ctrl+Q Quit
* <pgdn> Move one page down (*) Ctrl+P Pipe command
* <home> Move to start of line (*) Ctrl+A Select all
* <end> Move to end of line (*) Ctrl+C Copy selection to clipboard
* Ctrl+<home> Move to start of file (*) Ctrl+X Cut selection to clipboard
* Ctrl+<end> Move to end of file (*) Ctrl+V Paste from clipboard
* <backspace> Delete previous character Ctrl+Z Undo
* <delete> Delete current character Ctrl+R Redo
* Ctrl+<tab> Next editor Ctrl+F Find text
* <tab> Indent selection Ctrl+G Find next
* Shift+<tab> Unindent selection Ctrl+L Goto line
* F1 Help
* F3 Navigate to file
* F5 Redraw screen

(*) Extends selection if combined with Shift

 Open source text editor component of SANOS, an OS kernel for embedded network devices 

 Author:      Michael Ringgaard
 Homepage:    http://www.jbox.dk/sanos/editor.htm
 Source code: http://www.jbox.dk/downloads/edit.c
 Family:      TinyEditors, CuaFamily
 Platform:    SANOS, Linux
 License:     Open Source
 Screenshot:

Sanos has a simple text editor. It is a text-mode application that runs with any VT-100 compliant console or terminal, like xterm, telnet, PuTTY, and the Linux console. While most other text-mode editors (e.g. vi, emacs, and nano) have custom key bindings, the Sanos text editor tries to follow the principle of least surprise by using the same key bindings as most GUI-based text editors like gedit and notepad. These key bindings should also be familiar to anyone who has used a web browsers. You navigate around in the text using the normal cursor control keys (up, down, left, right, home, end, pgup, pgdn) and text can be selected by holding down the shift key while navigating. The text editor has a clipboard and you can cut (Ctrl+X), copy (Ctrl+C), and paste (Ctrl+V) text. Other commands also use the standard key bindings for GUI applications, like Ctrl+O to open a file, Ctrl+S to save the file, and Ctrl+Q to quit the editor.

There is only one source file (edit.c) and it does not rely only any external components except the standard libraries. It doesn't need any install program. It just consists of a single executable binary, and it doesn't require any configuration files to work.

Sanos follows the CUA standards for text editing, i.e., arrow keys and pgup/pgdown/home/end for navigation, the same with shift for selection, Ctrl-X / Ctrl-C / Ctrl-V for cut/copy/paste etc.

Press F1 in the editor to see the (non-configurable) key bindings.

Editor Command Summary

(*) Extends selection if combined with Shift


HomePage | RecentChanges | EditorIndex | TextEditorFamilies | Preferences
Edit text of this page | View other revisions
Last edited May 6, 2024 3:17 pm (diff)
Search: