I would like to, every 30 seconds or so, copy all text of a certain terminal or terminal emulator to a file, and display it in
conky. I'm not talking about simple redirection (
command > file), which doesn't work for ncurses programs or games such as NetHack.
How could I go about doing this?