Skip to main content

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)

Documentation Status

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..

docs/_static/screenshot-dos.png

..and unix-like terminals:

docs/_static/screenshot-linux.png

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

dosbox-screen-1.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dosbox_screen-1.1.0-py2-none-any.whl (8.9 kB view details)

Uploaded Python 2

File details

Details for the file dosbox-screen-1.1.0.tar.gz.

File metadata

  • Download URL: dosbox-screen-1.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dosbox-screen-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e7495f985c4057cb6d5f02181f824a0fc705ff332d2ca5cde5034d2ec1fd804f
MD5 bcaa6cd10ef2de435898cf4308ae8ffe
BLAKE2b-256 815f43fbb3c1677bbb6004c954df1cf969b89a3484b85c2d727b3d9ef878949c

See more details on using hashes here.

File details

Details for the file dosbox_screen-1.1.0-py2-none-any.whl.

File metadata

File hashes

Hashes for dosbox_screen-1.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 ff6f52496497e3e5e9aa634851421162b76857baaae8fba2f59f68d24a3b3119
MD5 f971c59ac73b2e9f3153672a2bfa69e0
BLAKE2b-256 1b361c2dd8ab2454b61272153cbb1f7d5078eb09ddaa5409e8042072377509df

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