ID EN
OS

login_tty

Python 3.11

Prepare the tty of which fd is a file descriptor for a new login session. Make the calling process a session leader; make the tty the controlling tty, the stdin, the stdout, and the stderr of the calling process; close fd.

Syntax

PYTHON
os.login_tty(fd, /)

See Also

Availability