MCPcopy Create free account
hub / github.com/RightNow-AI/rightnow-cli / _get_terminal_width

Function _get_terminal_width

rightnow_cli/ui/modern_input.py:102–108  ·  view source on GitHub ↗

Get terminal width safely.

()

Source from the content-addressed store, hash-verified

100
101
102def _get_terminal_width() -> int:
103 """Get terminal width safely."""
104 try:
105 import shutil
106 return shutil.get_terminal_size().columns
107 except:
108 return 80 # Default fallback
109
110
111def _safe_flush():

Callers 3

get_modern_inputFunction · 0.85
get_minimal_inputFunction · 0.85
get_boxed_inputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected