sclang: fix input handling for windows