To talk to the zlogin console we're using using the of runpty program of lux, please see the repository for the License of this program if you wish to use it.