PTY interface for Go