You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I was wondering if it is possible to include the output of a charmbracelet/log in a bubbletea TUI? I'm working on a new hobby project and it would be fun to have a TUI to interact with and below the main part of it there would be a scrollable window that displays a live log.
Currently I see two issues with that approach:
The logger would have to emit a tea.Msg to update the TUI, no? Otherwise new log lines wouldn't appear in the TUI until another refresh.
The loggers output would be set to some arbitrary writer since it can't use stderr or stdout right? Would it recognise the actual output is a tty and enable colouring?
If that is not possible an alternative approach would be to use stdout for the log and serve the TUI over ssh right? Or should that be the reccomended approach either way?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi. I was wondering if it is possible to include the output of a charmbracelet/log in a bubbletea TUI? I'm working on a new hobby project and it would be fun to have a TUI to interact with and below the main part of it there would be a scrollable window that displays a live log.
Currently I see two issues with that approach:
If that is not possible an alternative approach would be to use stdout for the log and serve the TUI over ssh right? Or should that be the reccomended approach either way?
Beta Was this translation helpful? Give feedback.
All reactions