+/Femto

toy text editor

git clone https://git.julia.blue/+/Femto

Joseph RyanFixup973c5b9

master
342 B19 linesraw
1#include "../inc/editor.h"
2
3int main(int argc, char* argv[]) {
4    enableRawMode();
5    initEditor();
6    initDisplay();
7
8    if (argc >= 2) { openFile(argv[1]); }
9
10    setStatusMessage(
11        "^Q : Quit | ^S : Save | ^F : Find | ^O : Open | ^N : New");
12
13    while (1) {
14        refresh();
15        processKeypress();
16    }
17
18    return 0;
19}