Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dramforever/sledit
A single-line-interface editor
https://github.com/dramforever/sledit
Last synced: about 1 month ago
JSON representation
A single-line-interface editor
- Host: GitHub
- URL: https://github.com/dramforever/sledit
- Owner: dramforever
- Created: 2023-12-10T17:50:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-10T23:37:00.000Z (about 1 year ago)
- Last Synced: 2023-12-11T20:23:00.627Z (about 1 year ago)
- Language: C
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `sledit`: A single-line-interface editor
![Screenshot of sledit editing a simple three-line file](screenshot.png)
## Building and running
```console
$ 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