Currently, we enter the raw mode whenever the program starts, but it needs to be disabled when
the program terminates, either via the main() method or via an exit() call. The initial properties of
the terminal should be stored on entering the raw mode and it should be reset when the program exits.
Currently, we enter the raw mode whenever the program starts, but it needs to be disabled when the program terminates, either via the
main()
method or via anexit()
call. The initial properties of the terminal should be stored on entering the raw mode and it should be reset when the program exits.