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