Fully fonctional editing

This commit is contained in:
Arthur Barraux
2024-10-10 02:09:48 +02:00
parent 1c22c3beca
commit a6f32d4c49
15 changed files with 249 additions and 47 deletions
+5 -5
View File
@@ -56,7 +56,7 @@ int editorReadKey() {
case '1':
return BEG_LINE;
case '3':
return DELETE;
return DEL_KEY;
case '4':
return END_LINE;
case '5':
@@ -73,13 +73,13 @@ int editorReadKey() {
switch (seq[1]) {
case 'A':
return CURSOR_UP;
return ARROW_UP;
case 'B':
return CURSOR_DOWN;
return ARROW_DOWN;
case 'C':
return CURSOR_RIGHT;
return ARROW_RIGHT;
case 'D':
return CURSOR_LEFT;
return ARROW_LEFT;
case 'H':
return BEG_LINE;
case 'F':