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

https://raw.githubusercontent.com/thebjorn/doscmd-screen/master/docs/_static/screenshot-dos.png

..and unix-like terminals:

https://raw.githubusercontent.com/thebjorn/doscmd-screen/master/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.1.tar.gz (6.7 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.1-py2-none-any.whl (9.1 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for dosbox-screen-1.1.1.tar.gz
Algorithm Hash digest
SHA256 a0ec702f1623f7a19944149f97654b9b9fea8ff0667e7c173bf4bac852578ccd
MD5 3c7395a1a9f88e0473e28362cc1f9a99
BLAKE2b-256 8a5c09893e80e420f0df650f4ae0e732984949812b093754a4616be785263a1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dosbox_screen-1.1.1-py2-none-any.whl
Algorithm Hash digest
SHA256 2717229ad5c88dcd0fe5f7ef48df242ff8e5e410aba59c781f6ba2124ed25582
MD5 850ef3d379d8e1653059e06b22352b3d
BLAKE2b-256 600781f5fd6672b93a4cd622cd885d3d205db59c267ccb8b380d65c8554f32ab

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