aboutsummaryrefslogtreecommitdiff
path: root/ui/daemon
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2026-03-21 01:36:24 +0100
committerPaul Oliver <contact@pauloliver.dev>2026-04-04 05:53:37 +0200
commiteaa730d2895f57d9745ea2474e02d194ea16f48d (patch)
tree408cc661c598138dc91531713be514e7547a1a9f /ui/daemon
parent9f7e70904e6c0fa650323ac5e50ebf6003da333c (diff)
Adds data server (WIP)data_improvements
Diffstat (limited to 'ui/daemon')
-rw-r--r--ui/daemon/ui.c26
-rw-r--r--ui/daemon/ui_vars.py2
2 files changed, 26 insertions, 2 deletions
diff --git a/ui/daemon/ui.c b/ui/daemon/ui.c
index 1f6c35c..28bade9 100644
--- a/ui/daemon/ui.c
+++ b/ui/daemon/ui.c
@@ -3,7 +3,18 @@ uint64_t g_step_block;
void info_impl(const char *restrict fmt, ...) {
assert(fmt);
- printf("\033[1;34m[INFO]\033[0m ");
+
+ time_t t = time(NULL);
+ struct tm tm = *localtime(&t);
+ printf(
+ "\r%d-%02d-%02d %02d:%02d:%02d -- \033[1;34mINFO\033[0m ",
+ tm.tm_year + 1900,
+ tm.tm_mon + 1,
+ tm.tm_mday,
+ tm.tm_hour,
+ tm.tm_min,
+ tm.tm_sec
+ );
va_list args;
va_start(args, fmt);
@@ -15,7 +26,18 @@ void info_impl(const char *restrict fmt, ...) {
void warn_impl(const char *restrict fmt, ...) {
assert(fmt);
- printf("\033[1;33m[WARN]\033[0m ");
+
+ time_t t = time(NULL);
+ struct tm tm = *localtime(&t);
+ printf(
+ "\r%d-%02d-%02d %02d:%02d:%02d -- \033[1;33mWARN\033[0m ",
+ tm.tm_year + 1900,
+ tm.tm_mon + 1,
+ tm.tm_mday,
+ tm.tm_hour,
+ tm.tm_min,
+ tm.tm_sec
+ );
va_list args;
va_start(args, fmt);
diff --git a/ui/daemon/ui_vars.py b/ui/daemon/ui_vars.py
index 5b3d372..f486703 100644
--- a/ui/daemon/ui_vars.py
+++ b/ui/daemon/ui_vars.py
@@ -1,5 +1,7 @@
class UIVars:
def __init__(self, _):
+ self.flags = set()
self.includes = {"signal.h", "stdio.h", "unistd.h"}
self.defines = set()
self.links = set()
+ self.pager = False