git-learning-game / oh-my-git

An interactive Git learning game!
https://ohmygit.org
Other
1.98k stars 143 forks source link

terminal: Change input handling #162

Open xim opened 1 year ago

xim commented 1 year ago
  1. Handle page up / down for scrolling terminal history
  2. Handle repeat keypresses, so e.g. holding pgdn will scroll
  3. _input is passed a single event, so we save some CPU cycles by using elif for all branches