diff options
Diffstat (limited to 'timer.ha')
| -rw-r--r-- | timer.ha | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -23,10 +23,10 @@ fn print_countdown(instant: time::instant) bool = { const currentduration = time::diff(tn, instant); // man page console_codes(4) is useful - fmt::fprint(os::stderr, "\x1B[1K\r")!; + fmt::error("\x1B[1K\r")!; const count = human_readable(currentduration); defer free(count); - fmt::fprint(os::stderr, count)!; + fmt::error(count)!; return currentduration <= 0; }; @@ -160,5 +160,5 @@ export fn main() void = { ev::timer_configure(f, 1 * time::SECOND, 1 * time::SECOND); for (ev::dispatch(&loop, -1)!) void; - fmt::println()!; + fmt::errorln()!; }; |
