fix consoles read next line ctl-d error