Ncurses and Qt Interoperability
Use QSocketNotifier to be notified of things being available on stdin. Call nonblocking getch() in a loop until no more input is available. This is vitally important: the notifier will notify only when new data is available, but this doesn’t mean that it notifies on every character! If you receive multiple characters at a time, … Read more