TUT/src/main.cpp
m1ngsama 77784f7453 feat: Modularize calendar and create TUI portal
Refactored the calendar functionality into a separate Calendar class.
Created a TUI portal in main.cpp to allow for future feature expansion.
The TUI portal provides a menu to select different features, with the calendar being the first one.
Updated the build system to include the new files.
2025-11-19 16:34:25 +08:00

22 lines
385 B
C++

#include "tui_view.h"
#include "calendar.h"
int main() {
while (true) {
int choice = run_portal_tui();
switch (choice) {
case 0: { // Calendar
Calendar calendar;
calendar.run();
break;
}
case 1: { // Exit
return 0;
}
}
}
return 0;
}