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.

Files for dosbox-screen, version 1.1.5
Filename, size File type Python version Upload date Hashes
Filename, size dosbox_screen-1.1.5-py2-none-any.whl (8.5 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size dosbox-screen-1.1.5.tar.gz (7.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page