Skip to content

Print TUI to stderr so that summary data can be captured and piped#41

Open
Craige wants to merge 1 commit intorace604:masterfrom
Craige:tui-to-stderr
Open

Print TUI to stderr so that summary data can be captured and piped#41
Craige wants to merge 1 commit intorace604:masterfrom
Craige:tui-to-stderr

Conversation

@Craige
Copy link

@Craige Craige commented Aug 22, 2025

Currently this only affects stopwatch, but could impact other clock types if summary output is expanded upon.

Caveat: Do we need to buffer output to stderr? It doesn't appear to matter at the scale of a clock app, but it was a consideration mentioned in the underlying Ratatui documentation.

Addresses #40

Currently this only affects stopwatch, but could impact other clock
types if summary output is expanded upon.
@Craige
Copy link
Author

Craige commented Aug 25, 2025

Been using this for a day, and it seems unstable. Sometimes stdout is piped to the target, but other times it doesn't appear to be. Short run times seem to work reliably, but longer durations may randomly disappear into the void. Some investigation will be necessary here.

Can also look at tty output for TUI instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant