Allocate pseudo-terminal