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.2.tar.gz (7.4 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.2-py2-none-any.whl (8.4 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: dosbox-screen-1.1.2.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.10.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.15.0 CPython/2.7.16

File hashes

Hashes for dosbox-screen-1.1.2.tar.gz
Algorithm Hash digest
SHA256 d57493d036544371d63a33da51b1c98724cd264fbeac4652f27bff13764f252b
MD5 b351eabbb60881c87a8579f76b682ad4
BLAKE2b-256 9d65af73f303b6ebb68bb519a30647fb849d76b0ca333b1d980c479d510e9bb2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dosbox_screen-1.1.2-py2-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.10.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.15.0 CPython/2.7.16

File hashes

Hashes for dosbox_screen-1.1.2-py2-none-any.whl
Algorithm Hash digest
SHA256 84f15d3eae5f8f0b5a3322ab4489b501ffd939fa0cbe0488aa425816dda27058
MD5 48f5c4c72b3738938708737b6dd07d1c
BLAKE2b-256 d42df05cedacd1fcc98ab86575d6ba9a5eb0578e7a1ff9fea5c2d3799bf2b47b

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