Nyx doesn't exit gracefully on Ctrl-C

I am observing these problems:

  1. It doesn't immediately exit on Ctrl-C, but still runs for ~4-5 sec and then exits. But when I press Ctrl-C and ENTER - this makes it exit after ENTER. This is unconventional behavior, and nyx should just exit on Ctrl-C right away.
  2. Sometimes (in ~5% cases) pressing Ctrl-C causes the terminal state be modified (against what it was before). Not sure if this is ncurses bug, but I doubt.
  3. Once pressing Ctrl-C caused nyx to hang and it had to be killed.

Ideal behavior: Exit back into terminal after single Ctrl-C without any side-effects.

I am not sure if this is FreeBSD specific problem or not, it is unlikely.