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.4.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.4-py2-none-any.whl (8.5 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: dosbox-screen-1.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 73db8589c667fa2d8308aaea3794eb64fcba3eed397e0eb0f524c285af8b4397
MD5 8178caf9505f488270d1bde75c0e8f24
BLAKE2b-256 c0c823cdf37efc4e67fee4510ce67ca4808d6a82bff9e6777bc1b91c7e73bb10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dosbox_screen-1.1.4-py2-none-any.whl
  • Upload date:
  • Size: 8.5 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.4-py2-none-any.whl
Algorithm Hash digest
SHA256 532bb53a122b2214e14bb68e4fb6ffa4e982ed40f478b8e59069252bfc2c30d1
MD5 3f0182a02e781e2cb931bfdb36b4970e
BLAKE2b-256 34dee4eef17da838e6e41feb8d645f31086c6622ee9d78260aa19040da7f0b63

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