pub(crate) fn set_raw_mode_flag(enabled: bool)
Expand description
Updates the global terminal raw mode flag.
This function safely updates the global raw mode state flag using a mutex to prevent race conditions. The flag is used by the panic handler to determine whether terminal cleanup is necessary.
§Arguments
enabled
- Boolean indicating whether raw mode is currently enabled
§Thread Safety
This function is thread-safe and can be called from multiple threads simultaneously without data races.