Manages the terminal's raw mode state.
Raw mode disables line buffering and local echo, allowing the application to process individual key presses as they occur.
Enters terminal raw mode.
Exits terminal raw mode and restores the original terminal state.