23 lines
358 B
C

/*
* Copyright (c) Camden Dixie O'Brien
* SPDX-License-Identifier: AGPL-3.0-only
*/
#define _POSIX_C_SOURCE 199309L
#include "mod.h"
#include <stdio.h>
#include <time.h>
int main(void)
{
const struct timespec pause = { .tv_nsec = 16666667 };
while (1) {
printf("\33[2K\r%s", getmsg());
fflush(stdout);
nanosleep(&pause, NULL);
}
return 0;
}