support pty pseudo terminal
doc hint to constants
Merge pull request #6 from richidd/master

support pty pseudo terminal