Ask a question to get started
Enter to send•Shift+Enter new line
TerminalStderrGuard( self, *, enabled: bool = False, )
Whether stderr is currently suppressed.
Install suppression when stdout and stderr share a macOS terminal.
Callers rendering a Textual app must pair an active guard with App.driver_class = stdout_driver_class(); the stock driver writes to the very stderr this suppresses, so the TUI would be invisible.
App.driver_class = stdout_driver_class()
Restore stderr while terminal ownership is released.
Suppress stderr after terminal ownership returns.
Restore stderr for the duration of a terminal handoff.
Restore stderr permanently when the TUI session ends.
Suppress native stderr writes while the TUI owns the terminal.