The Screen class lets you to do positioned writes to the dos terminal.
Project description
– Screen positioning and colors in the dos shell (and unix too)
Installation
pip install doscmd-screen
Changes
Version 1.0.3 introduces thread safe window areas through the Window class.
Changes in version 1.0 include support for non-dos platforms, a visual test script, and zero-based indexing of screen positions. Since the last one is a backwards incompatible change I have upped the major version number. I don’t forsee any further backwards incompatible changes in this module.
Documentation
The documentation lives at http://doscmd-screen.readthedocs.org/
Usage
Straight forward positioning and terminal colors in the terminal:
import screen # screen probably needs to be your first import. scr = Screen() scr.centerxy(scr.center, scr.middle, '((.))') scr.writexy(scr.left, scr.bottom, 'left bottom', color='black', on='red')
Works for both Windows..
..and unix-like terminals:
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
Built Distributions
Hashes for dosbox_screen-1.0.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63355dac393dfa7849bd28d5aa13e9dbafd3c7e9079a55a9e1cbdd2891d333bb |
|
MD5 | e5151b2a0a2149e4601339660d4ff4d8 |
|
BLAKE2b-256 | 6bf966b8a075c93916613afffed916ed75a99858cf4c13f5d7fe0382e5326c88 |