Text Editor
A text editor that runs in the terminal, written in C. It uses nothing beyond the C standard library and POSIX.
- Puts the terminal into raw mode with
termiosand draws with VT100 escape codes - Stores text in a gap buffer, so inserting and deleting is cheap
- Cursor movement, scrolling, open and save, and incremental search
- Syntax highlighting for C
C · POSIX · termios · VT100/ANSI escape codes · Make
Text Editor on GitHub: baffourz/text-editorgap buffer
click, then type
Typing fills the gap. Moving the cursor moves the gap.