fix input processing on linux