@staticmethod<EOL><INDENT>def from_io_control(fobj):<DEDENT>
import fcntl, termios, array<EOL>winsize = array.array("<STR_LIT:H>", [<NUM_LIT:0>] * <NUM_LIT:4>) <EOL>if not fcntl.ioctl(fobj.fileno(), termios.TIOCGWINSZ, winsize, True):<EOL><INDENT>return winsize[<NUM_LIT:1>]<EOL><DEDENT>
Call TIOCGWINSZ (Terminal I/O Control to Get the WINdow SiZe)
where ``fobj`` is a file object (e.g. ``sys.stdout``),
returning the terminal width assigned to that file.

See the ``ioctl``, ``ioctl_list`` and tty_ioctl`` man pages
for more information.