Skip to main content

Terminal

Attributes related to the cross-platform terminal.

terminal_exec

2.0.0

def nightylib.debug.terminal_exec(cmd: str) -> str

A potentially dangerous function that executes the given command in the operating system’s native terminal and returns the decoded output. The command is executed in a background thread, so the user is unlikely to notice it running.

info

If the input command is provided as bytes, the return value will also be bytes.