dramforever / sledit

A single-line-interface editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A single-line-interface editor


Languages

Language:C 97.8%Language:Makefile 2.2%