/sledit

A single-line-interface editor

Primary LanguageC

sledit: A single-line-interface editor

Screenshot of sledit editing a simple three-line file

Building and running

$ make
$ make run

sledit requires a terminal with ANSI-style control sequences.

When run, it expects the terminal to be in "raw mode" with echo off. make run sets this "raw mode" up for you.

Special keys

  • Ctrl-C exits the editor
  • Ctrl-L prints entire buffer
  • Backspace deletes backward
  • Delete deletes forward
  • Up and Down moves between lines
  • Right and Left moves forward and backward one character
  • Ctrl-Right and Ctrl-Left moves one word
  • Home and End goes to start and end of line