State Terminal
Base class for terminal implementations that maintain formatting state.
This abstract class provides a foundation for terminals that need to track the current formatting state and transition between different styles. It handles the logic of opening and closing formatting contexts.
Subclasses should override the opening/closing methods for each style and implement sendText for actual output.
Inheritors
Functions
Called when closing error text formatting.
Called when closing parameter/code text formatting.
Called when closing plain text formatting.
Called when closing strong/bold text formatting.
Emits a platform-appropriate newline sequence.
Emits text with strong/bold formatting. Default implementation outputs as plain text.
Called when transitioning to error text formatting.
Called when transitioning to parameter/code text formatting.
Called when transitioning to plain text formatting.
Called when transitioning to strong/bold text formatting.