MCPcopy Index your code
hub / github.com/bpython/bpython / set_win_size

Function set_win_size

bpython/test/test_crashers.py:33–35  ·  view source on GitHub ↗
(fd, rows, columns)

Source from the content-addressed store, hash-verified

31
32
33def set_win_size(fd, rows, columns):
34 s = struct.pack("HHHH", rows, columns, 0, 0)
35 fcntl.ioctl(fd, termios.TIOCSWINSZ, s)
36
37
38class CrashersTest:

Callers 1

run_bpythonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected