pty_run

Contents

pty_run#

tollan.utils.sys.pty_run(cmd: str | list[str]) int[source]#

Run a command in a pseudo-terminal (pty).

Parameters:

cmd (str or list[str]) – Command to run (as a string or list of arguments).

Returns:

The exit code of the command.

Return type:

int