Module utils

Module utils 

Source

Constants§

RESET
ANSI reset code

Functions§

get_terminal_width
Get terminal width, returns default from config as fallback
get_thinking_mode_enabled
Read thinking mode setting from ~/.claude/settings.json
get_username
Get current username from environment
truncate_with_ellipsis
Truncate string with ellipsis while preserving ANSI codes
visible_len
Calculate visible width in terminal columns (strips ANSI and measures Unicode width)