topmark.cli.console.utils¶
topmark / cli / console / utils
Small terminal-layout helpers for CLI console output.
get_console_line_width ¶
Return a safe line width for human-facing console rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
default
|
int
|
Fallback terminal width when no terminal size is available. |
80
|
max_width
|
int
|
Upper bound applied to wide terminals to keep output readable. |
100
|
Returns:
| Type | Description |
|---|---|
int
|
The smaller of the detected terminal width and |
int
|
size detection fails, |