summary refs log tree commit diff homepage
path: root/2048.c (follow)
Commit message (Collapse)AuthorAge
* Retry getch() after ERRJune McEnroe2021-10-15
| | | | | | In the version of ncurses in OpenBSD, the SIGWINCH handler installed by enabling keypad causes the read() inside getch() to fail with EINTR, which getch() doesn't handle, itself returning ERR.
* Add game over checkJune McEnroe2018-12-31
|
* Handle ERR from getchJune McEnroe2018-12-31
| | | | | | | Somehow, play processes were being orphaned without receiving SIGHUP and would consume 100% CPU in this getch loop. I still have no idea what was happening to the SSH sessions to cause orphans like that, but this at least makes them exit.
* Use bright foreground colorsJune McEnroe2018-12-25
|
* Add 2048 help textJune McEnroe2018-12-25
|
* Add 2048 gameJune McEnroe2018-12-25