Closed JustinBraben closed 1 week ago
There are two ways I think this might work:
vx.prettyPrint(tty.anyWriter);
. I believe this should also work.If neither of these work, I would love to figure out a solution for this use case with you. Let me know if there are issues you see with either of those options!
-- Tim
- You could try exiting the alt screen and calling
vx.prettyPrint(tty.anyWriter);
. I believe this should also work.
This worked quite painlessly. Thanks!
// If -p flag passed to program, print the tree to terminal after completion
if (self.args.printTree) {
try self.vx.exitAltScreen(self.tty.anyWriter());
try self.vx.prettyPrint(self.tty.anyWriter());
}
For my project zbonsai, I would like to be able to print the finished product to the screen and give back control of the terminal afterwards.
Currently my project draws to the
alt_screen
, then waits for a Ctrl + C to leave the program.Is there some way I could:
alt_screen
to a bufferUsing the library, buffers, or otherwise?