The quotes are generated by fortune
, a character-mode program
that prints one quote and exits. This can be run within a loop to generate
a series of quotes. These can be displayed within a text viewer
xecho.tk
which is refreshed by each quote.
fortune
every ten
seconds and show the output of each fortune cookie in an
single xecho.tk
window.
fortune
writes one quote to stdout
and then exits. xecho.tk
reads from stdin
and adds each line read to the currently showing text. When a line containing
the form feed character ctrl-L is sent, xecho.tk
clears its
display.