added colours for line numbers, improved toolbar
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user