add basic menu structure
All checks were successful
build_test / build (push) Successful in 2m9s

This commit is contained in:
PoliEcho 2025-04-14 10:54:33 +02:00
parent 3cadb3d621
commit 664721d005
3 changed files with 29 additions and 3 deletions

View File

@ -3,6 +3,7 @@
#include <iostream>
#include "color.h"
#include "const.h"
#include "menu.h"
void PrintHelp() {
std::cout << RED R"( ____ ____
@ -41,8 +42,7 @@ int main(int argc, char* argv[]) {
return EINVAL;
}
}
menu();
for (int i = 0; i < 10; i++) {
std::cout << "trestní oznámení\n";
}
return 0;
}

View File

@ -0,0 +1,19 @@
#include <menu.h>
#include <ncurses.h>
#include <clocale>
void menu() {
/* Initialize curses */
setlocale(LC_ALL, "");
initscr();
start_color();
cbreak();
noecho();
keypad(stdscr, TRUE);
/* Initialize all colors */
for (uint8_t i = 0; i < 8; i++) {
init_pair(i, i, COLOR_BLACK);
}
}

View File

@ -0,0 +1,7 @@
#ifndef PARADOCS_MENU_H_
#define PARADOCS_MENU_H_
void menu();
#endif