pwnlib.term — Terminal handling

pwnlib.term.can_init()[source]

This function returns True iff stdout is a tty and we are not inside a REPL.

pwnlib.term.init()[source]

Calling this function will take over the terminal (if can_init() returns True) until the current python interpreter is closed.

It is on our TODO, to create a function to “give back” the terminal without closing the interpreter.

pwnlib.term.term_mode = False[source]

This is True exactly when we have taken over the terminal using init().