Pty

add pty support, and add cmd options: pty, echo, noecho