BytesClub / chalk

Command line text editor written in C
12 stars 5 forks source link

Disable raw mode on exit #1

Closed RudraNilBasu closed 7 years ago

RudraNilBasu commented 7 years ago

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.