From 37dd76e388aca5539dd73b6e897867e120529537 Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Sat, 1 Mar 2025 16:32:07 +0100 Subject: Add useful comment for console codes --- timer.ha | 1 + 1 file changed, 1 insertion(+) diff --git a/timer.ha b/timer.ha index 016519a..d3b5c62 100644 --- a/timer.ha +++ b/timer.ha @@ -16,6 +16,7 @@ fn timer_handler(file: *ev::file) void = { const tn = time::now(time::clock::MONOTONIC); const currentduration = time::diff(tn, t); + // man page console_codes(4) is useful fmt::fprint(os::stderr, "\x1B[1K\r")!; fmt::fprint(os::stderr, math::ceilf64(currentduration: f64 / time::SECOND: f64): u64)!; if (currentduration <= 0) { -- cgit v1.2.3