Skip to main content

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)

Release files for cs-tty 20190101

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cs-tty 20190101
File Size Uploaded
cs.tty-20190101.tar.gz 2.6 kB Details

Release files / cs.tty-20190101.tar.gz

Download URL cs.tty-20190101.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
88b515c99763682080a5118f7b1ebce11eb2f5ae4ee6c4081042fae0a5905fc3
BLAKE2b-256 checksum
How to use checksums
9caf4a773ee04824a2266b1c0b6db0ba1887cf7ac67454716aaf9d36981ab12d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.6

Release history Release notifications | RSS feed

This release

20190101 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page