Fix #2363: getChar cannot be interrupted with -threaded