Skip to main content

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


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 details)

Uploaded Source

File details

Details for the file cs.tty-20190101.tar.gz.

File metadata

  • Download URL: cs.tty-20190101.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for cs.tty-20190101.tar.gz
Algorithm Hash digest
SHA256 88b515c99763682080a5118f7b1ebce11eb2f5ae4ee6c4081042fae0a5905fc3
MD5 70f7ef9aa565c1c6ad6de9a51b5bb4c0
BLAKE2b-256 9caf4a773ee04824a2266b1c0b6db0ba1887cf7ac67454716aaf9d36981ab12d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page