Allocate a pseudo-TTY