max-niederman / ttyper

Terminal-based typing test.
MIT License
1.03k stars 74 forks source link

Terminal output breaks when invalid language is passed #130

Open sandeshbhusal opened 3 weeks ago

sandeshbhusal commented 3 weeks ago

Terminal output breaks entirely when an invalid language is passed in the config. This happens because we enable raw mode by default, and do the language content generation later. Can be fixed in one of two ways - generate the content before setting the terminal mode, or restore the terminal behavior if no language content could be generated.

sandeshbhusal commented 3 weeks ago

PR here: https://github.com/max-niederman/ttyper/pull/131