pub fn prepare_for_script_execution() -> Result<()>Expand description
Prepare terminal for script execution.
This function should be called before running a script to ensure the terminal is in a normal state:
- Disables raw mode
- Leaves alternate screen
- Shows cursor
ยงErrors
Returns an error if terminal cleanup fails.