chat.animations.utils
Utility functions for animations.
raw_terminal
@contextmanager
def raw_terminal() -> Generator[None, None, None]
Context manager to put terminal in raw mode for key detection.
check_escape_pressed
def check_escape_pressed() -> bool
Check if ESCAPE key was pressed (non-blocking).
Returns:
True if ESCAPE was pressed, False otherwise.