lpty is a module that allows a program written in lua to open the master side of a PTY and start a program with the slave side of the PTY as its controlling terminal. The PTY may then be read from and written to, thus controlling the remote program.

lpty is released unter the terms of the MIT license.

If you have anything to say about this, comments, bug reports, whatever, feel free to email them to



Get it from the git repository at Codeberg, or by installing it from the luarocks repository.