Functions related to terminals.
Project description
Functions related to terminals.
Function setupterm(*args)
Run curses.setupterm, needed to be able to use the status line. Uses a global flag to avoid doing this twice.
Function statusline(text, fd=None, reverse=False, xpos=None, ypos=None)
Update the status line.
Function statusline_bs(text, reverse=False, xpos=None, ypos=None)
Return a byte string to update the status line.
Function ttysize(fd)
Return a (rows, columns) tuple for the specified file descriptor.
If the window size cannot be determined, None will be returned for either or both of rows and columns.
This function relies on the UNIX stty
command.
Class WinSize
MRO: builtins.tuple
WinSize(rows, columns)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cs.tty-20190101.tar.gz
(2.6 kB
view hashes)