summaryrefslogtreecommitdiff
path: root/Userland/Utilities/watch.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-05-31 15:43:25 +0100
committerLinus Groh <mail@linusgroh.de>2021-06-01 21:30:16 +0100
commitf5c35fccca3394ae54647d89a160d599f4a74f04 (patch)
tree5daf1ac703d28877439d0de00bcd54091cd02e5e /Userland/Utilities/watch.cpp
parent4f1889c2cb5273800499550082af48df7e8c022f (diff)
downloadserenity-f5c35fccca3394ae54647d89a160d599f4a74f04.zip
Userland: Replace most printf-style APIs with AK::Format APIs :^)
Diffstat (limited to 'Userland/Utilities/watch.cpp')
-rw-r--r--Userland/Utilities/watch.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Userland/Utilities/watch.cpp b/Userland/Utilities/watch.cpp
index e10fba6453..7b6955b70e 100644
--- a/Userland/Utilities/watch.cpp
+++ b/Userland/Utilities/watch.cpp
@@ -130,17 +130,18 @@ int main(int argc, char** argv)
usecs_to_sleep = usecs_from(now, next_run_time);
}
// Clear the screen, then reset the cursor position to the top left.
- fprintf(stderr, "\033[H\033[2J");
+ warn("\033[H\033[2J");
// Print the header.
if (!flag_noheader) {
- fprintf(stderr, "%s\n\n", header.characters());
+ warnln("{}", header);
+ warnln();
} else {
fflush(stderr);
}
if (run_command(command) != 0) {
exit_code = 1;
if (flag_beep_on_fail) {
- fprintf(stderr, "\a");
+ warnln("\a");
fflush(stderr);
}
}