I need a text banner on a screen which is projected all the time. The screen is connected to a PC with tmux on it.
Example of text "banners":
figlet $(fortune)
or
toilet "$(cowsay $(fortune))"
You get the idea.
Initially we thought this banner would need "regeneration capabilities" in case something went wrong, so we did something like this:
watch --interval 1 --no-title echo Paranoid about crashes, but I should not be
but the thing never crashed in a year! (uptime > 1yr)
So we are simplifying and deploying somewhere else too. I just want a UNIX command that does the following:
- clear the screen (like
clear) - shows a formatted string (like
printf) - is modal (like an
ncursesapp)
I started to write something like this, pinched off of a web tutorial:
#include <ncurses.h>
int main(int argc, char** argv) {
char* greeting = "Hello, world!";
initscr();
addstr(greeting);
refresh();
getch();
endwin();
return 0;
}
but this is not "modal" (with modal being: disregard all input until CTRL+C) and I may be "rewriting an existing tool".
Which UNIX tool would you use in my case?