add selector to timetable. --CONTAINS BUGS--
/ sync-to-origin (push) Has been cancelled

This commit is contained in:
2025-03-09 09:07:54 +01:00
parent d9fd2d40eb
commit 43d53629ca
4 changed files with 254 additions and 9 deletions
+14 -1
View File
@@ -9,6 +9,7 @@
#include <fstream>
#include <iostream>
#include <locale>
#include <panel.h>
#include <string>
#include <termios.h>
#include <unistd.h>
@@ -217,4 +218,16 @@ std::wstring string_to_wstring(const std::string &str) {
std::string wstring_to_string(const std::wstring &wstr) {
std::wstring_convert<std::codecvt_utf8<wchar_t>> converter;
return converter.to_bytes(wstr);
}
}
void move_panel_relative(PANEL *panel, int dy, int dx) {
WINDOW *win = panel_window(panel);
int y, x;
getbegyx(win, y, x);
int new_y = y + dy;
int new_x = x + dx;
move_panel(panel, new_y, new_x);
}