wide string refactor

This commit is contained in:
2025-03-06 19:41:30 +01:00
parent af5252f732
commit a407d8c16a
5 changed files with 238 additions and 125 deletions
+7 -1
View File
@@ -4,6 +4,7 @@
#include <format>
#include <fstream>
#include <iostream>
#include <locale>
#include <ncurses.h>
#include <nlohmann/json.hpp>
@@ -39,5 +40,10 @@ void timetable_page() {
noecho();
keypad(stdscr, TRUE);
printw("LINES: %d COLS: %d", LINES, COLS);
// Use wide character printing
std::wstring msg = std::format(L"LINES: {} COLS: {}", LINES, COLS);
mvaddwstr(0, 0, msg.c_str());
refresh();
getch(); // Wait for key press
endwin();
}