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

Uploaded Python 2

File details

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

File metadata

  • Download URL: dosbox-screen-1.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 138f08541efafc96d011005372536d12035d4f1eca5caf023812fbcd06f8ae69
MD5 d356b73bd5a0a1aaa591d1ed2fd896d6
BLAKE2b-256 06c2386a6bd3f9789966841c542e8fd89eed180c794dba78f710c5e79d1a5c02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dosbox_screen-1.1.3-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.3-py2-none-any.whl
Algorithm Hash digest
SHA256 a059922015332266477e5c235f7f5abf87e79cf1ca30e98e0a608124c0c181fa
MD5 c2ae0a07fd3732c104577122eceaa1c9
BLAKE2b-256 0e50cfbd6f4a1f264a6932497956abe2b40225d0174a4f5a1489661cbff8331a

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