Add usage sample for pty allocation code.