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.1.0 introduces Screen.color("txt", fg='white', bg='blue') which returns a string that can later be printed.
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 Distribution
Hashes for dosbox_screen-1.1.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84f15d3eae5f8f0b5a3322ab4489b501ffd939fa0cbe0488aa425816dda27058 |
|
MD5 | 48f5c4c72b3738938708737b6dd07d1c |
|
BLAKE2b-256 | d42df05cedacd1fcc98ab86575d6ba9a5eb0578e7a1ff9fea5c2d3799bf2b47b |