std.ps.pty_attach

std.ps

pty_attach(master, detach_key) -> status

Attach to a pseudoterminal master for interactive I/O

Attaches the current process to a pseudoterminal master for interactive I/O operations. The detach_key parameter specifies the key sequence to detach from the attached session.