start of network implementation
/ sync-to-origin (push) Has been cancelled

This commit is contained in:
2025-01-27 16:36:12 +01:00
parent bd01b506f0
commit 4ba8710a71
5 changed files with 51 additions and 28 deletions
+7 -5
View File
@@ -6,13 +6,18 @@
#include <curses.h>
#include <menu.h>
#include "marks.h"
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
#define CTRLD 4
char *choices[] = {
"login", "Grades", "shedule", "Komens",
"login", "Marks", "shedule", "Komens",
"Homework", "Absence", "Exit", (char *)NULL,
};
void (*choicesFuncs[])() = {
NULL, marks_page, NULL, NULL, NULL, NULL, NULL, NULL
};
void main_menu() {
ITEM **my_items;
@@ -85,10 +90,7 @@ void main_menu() {
menu_driver(my_menu, REQ_UP_ITEM);
break;
case 10: // ENTER
move(20, 0);
clrtoeol();
mvprintw(20, 0, "Item selected is : %s",
item_name(current_item(my_menu)));
choicesFuncs[item_index(current_item(my_menu))]();
pos_menu_cursor(my_menu);
break;
}