added colours for line numbers, improved toolbar

This commit is contained in:
FantasyPvP
2024-11-10 00:40:57 +00:00
parent 380f3e1ff7
commit 6573da5f43
6 changed files with 647 additions and 241 deletions
+7
View File
@@ -23,6 +23,12 @@ int open_editor(char* filename) {
int max_y, max_x;
getmaxyx(stdscr, max_y, max_x);
start_color();
use_default_colors();
init_pair(1, COLOR_CYAN, -1);
init_pair(2, COLOR_MAGENTA, -1);
move(0, 5);
Editor editor;
@@ -75,6 +81,7 @@ int open_editor(char* filename) {
switch_mode(&editor);
break;
case 'w':
editor.unsaved_changes = false;
// TODO: write function to save the data to a file
break;
default: