

Provides the same behaviour for all applications running in terminals. Linux or Macs can now also work on Windows, simply by callingĪn alternative approach is to install ansi.sys on Windows machines, which This has the upshot of providing a simple cross-platform API for printingĬolored terminal text from Python, and has the happy side-effect that existingĪpplications or libraries which use ANSI sequences to produce colored output on Would appear as gobbledygook in the output), and converting them into theĪppropriate win32 calls to modify the state of the terminal. Windows, too, by wrapping stdout, stripping ANSI sequences it finds (which Text and cursor positioning on Unix and Macs. ANSI escape character sequences have long been used to produce colored terminal
