Adding FTXUI into app with existing logs #936
-
Hi, I have experimented with screen rendering after app logs using my crude methods. What is the best way to add app logging to Following is my goal: Logs get printed first, then I am picturing moving cursor up by the For printing batch of log lines I would like to wait 0.2sec after log to redraw screen delaying UI until log is active. In this case logs would overwrite leftover screen, this looks ok/readable. Additionally Can I use There is isatty() to check for terminal presence and if absent I would disable the UI. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Seams like Can't figure out where terminal gets erased. |
Beta Was this translation helpful? Give feedback.
-
Hello! Maybe you could try wrapping the function logging output to the console with: When calling the decorated function, the screen would "exit" before executing the inner function, and being "restored" after. |
Beta Was this translation helpful? Give feedback.
Hello!
Maybe you could try wrapping the function logging output to the console with:
Closure ScreenInteractive::WithRestoredIO(Closure)
?When calling the decorated function, the screen would "exit" before executing the inner function, and being "restored" after.