Make -ptyexport run the program as described in the doc.