Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

Eeems/intercessions

Repository files navigation

This is outdated and you should start using blessed instead


Known VulnerabilitiesRequirements Status

Intercessions

A blessings polyfill for the windows command line.

Attempts to implement the full blessings API in a format that will work on windows. Makes use of colorama to help with styling.

Installation

pip install intercessions

Usage

from intercessions import Terminal

t = Terminal()
with t.location(0,0), t.hidden_cursor():
    print(t.bold_red('Hello World!') + t.clear_eol)
    raw_input('Press Enter' + t.clear_eol)

If blessed is installed it will return the Terminal version of it instead. If blessings is installed and you are not running the windows version of python it will attempt to return the blessings instance of Terminal instead of the intercessions one.