Skip to main content

Lightweight POSIX terminal I/O library

Project description

ltermio - Lightweight POSIX terminal I/O library

The package contains four modules: cursor, termkey, color256 and unicon. Tested only on MacOS terminal and iTerm2, so the platform compatibility has not been well verfied yet. All functions are based on CSI sequences and termios, no additional requirements other than the standard library.

cursor

Wrapper functions of CSI(Control Sequence Introducer) sequences about cursor and screen. And additionally provides a several of functions for text composing.

termkey

Just two functions getch() and getkey() for reading keyboard in non-canonical mode. getch() reads raw key characters byte by byte, getkey() calls getch() and transforms the CSI sequences of function keys into key codes that defined in an enumerate class Key.

color256

Sets 256-color display attributes of the character terminal.

unicon

Collection of some common icons in unicode character set.

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

ltermio-0.1.3.tar.gz (10.6 kB view details)

Uploaded Source

File details

Details for the file ltermio-0.1.3.tar.gz.

File metadata

  • Download URL: ltermio-0.1.3.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for ltermio-0.1.3.tar.gz
Algorithm Hash digest
SHA256 fc30364a6333ddf868942209f5602a810bf1962de044ca0814fc8a6111197c21
MD5 1e185292589d1d826f9b2a2117525659
BLAKE2b-256 b200441e384864bdc8b16e3d1e34123ccb262ebf88a9715837191c8deb5f8f8c

See more details on using hashes here.

Supported by

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