Platform-Specific Utilities

Platform-specific utilities and input handling.

This module provides platform-independent abstractions for terminal operations and user input handling.

simulchip.platform.is_interactive_terminal()[source]

Check if running in an interactive terminal.

Return type:

bool

Returns:

True if stdin is a TTY (interactive terminal)

simulchip.platform.get_platform_name()[source]

Get platform name for logging/debugging.

Return type:

str

Returns:

Platform name string

simulchip.platform.getch()[source]

Get a single character from stdin without pressing enter.

Uses typer’s built-in cross-platform getchar() function.

Return type:

str

Returns:

Single character string or escape sequence