Hi,
Brick (and vty) both don't have particular support for this, but even
so, it's possible by redirecting stdout to a file:
$ some_brick_program > screenshot.txt
However, bear in mind that if you do this, the only reliable way to view
the file (e.g. with 'cat') is to do it in the same terminal emulator
that ran the program originally, or at least one that is compatible
enough with it. Otherwise the output might contain control sequences
that were right for the original terminal but that could confuse the
terminal being used to view the contents.
I tried this with one of my programs and I noticed that the terminal
reset done by the application at shutdown makes it appear as if the file
has no content (when emitted with 'cat') but that's because the file
contains both the original screen output as well as a screen-clear. So
for best results, it might be necessary to do something like
1. Run: some_brick_program > screenshot.txt
2. In another shell, while some_brick_program is running but once it
has emitted the desired output, cp screenshot.txt
screenshot_saved.txt
3. Quit / kill the brick program.
This way, you've captured the output before the screen reset is sent.
Hope that helps!
--
Jonathan Daugherty