mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:27:35 +00:00
Userland: Replace most printf-style APIs with AK::Format APIs :^)
This commit is contained in:
parent
4f1889c2cb
commit
f5c35fccca
75 changed files with 642 additions and 644 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue