Bug #2 fixed: tty to raw device