Utilities

PyTty

Python stdlib module — tty. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.setcbreak()Neutral
#
Signature
setcbreak(fd, when)

Put terminal into a cbreak mode.

.setraw()Neutral
#
Signature
setraw(fd, when)

Put terminal into a raw mode.

.tcdrain()Neutral
#
Signature
tcdrain(fd)

Wait until all output written to file descriptor fd has been transmitted.

.tcflow()Neutral
#
Signature
tcflow(fd, action)

Suspend or resume input or output on file descriptor fd.

.tcflush()Neutral
#
Signature
tcflush(fd, queue)

Discard queued data on file descriptor fd.

.tcgetattr()Neutral
#
Signature
tcgetattr(fd)

Get the tty attributes for file descriptor fd.

.tcgetwinsize()Neutral
#
Signature
tcgetwinsize(fd)

Get the tty winsize for file descriptor fd.

.tcsendbreak()Neutral
#
Signature
tcsendbreak(fd, duration)

Send a break on file descriptor fd.

.tcsetattr()Neutral
#
Signature
tcsetattr(fd, when, attributes)

Set the tty attributes for file descriptor fd.

.tcsetwinsize()Neutral
#
Signature
tcsetwinsize(fd, winsize)

Set the tty winsize for file descriptor fd.

Fully-Qualified Names

FQNField
ttyfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import tty