Module terminal

Module terminal 

Source
Expand description

Terminal utilities and helpers

Functionsยง

flush_stdout
Flush stdout to ensure output is displayed immediately
get_terminal_width
Get the terminal width, fallback to 80 if unable to determine
is_piped_input
Check if input is being piped (not a terminal)
is_piped_output
Check if output is being piped (not a terminal)
read_line
Read a line from stdin with proper error handling