Use select to wait for input.
authorTimo Korvola <tkorvola@iki.fi>
Sun, 11 Feb 2018 20:41:17 +0000 (22:41 +0200)
committerTimo Korvola <tkorvola@iki.fi>
Sun, 11 Feb 2018 20:41:17 +0000 (22:41 +0200)
commita1c0998997c51191d04ab9017dfcd5a490b2e1e3
tree9c9a8b46bede5ccce3ace81c059d27c9b7ef5320
parent304723f61b08e80a263f211dccd820d8db1ecbd3
Use select to wait for input.

Using select is more complicated but guarantees interruption on
signals and thus allows immediate reaction to terminal resize.

#42: Handle terminal resizing
src/curses/ux_input.c