[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#662761: ITP: python-colorama -- Cross-platform colored terminal text.



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Package: wnpp
Severity: wishlist
Owner: Khalid El Fathi <khalid@elfathi.fr>

* Package name    : python-colorama
  Version         : 0.2.4
  Upstream Author : Jonathan Hartley <tartley@tartley.com>
* URL             : http://code.google.com/p/colorama/
* License         : BSD
  Programming Lang: Python
  Description     : Cross-platform colored terminal text.

Makes ANSI escape character sequences, for producing colored terminal
text and cursor positioning, work under MS Windows.

ANSI escape character sequences have long been used to produce colored
terminal text and cursor positioning on Unix and Macs. Colorama makes
this work on Windows, too. It also provides some shortcuts to help
generate ANSI sequences, and works fine in conjunction with any other
ANSI sequence generation library, such as Termcolor
(http://pypi.python.org/pypi/termcolor.)

This has the upshot of providing a simple cross-platform API for
printing colored terminal text from Python, and has the happy
side-effect that existing applications or libraries which use ANSI
sequences to produce colored output on Linux or Macs can now also work
on Windows, simply by calling ``colorama.init()``.

Demo scripts in the source code repository prints some colored text
using ANSI sequences. Compare their output under Gnome-terminal's built
in ANSI handling, versus on Windows Command-Prompt using Colorama:

image:: http://colorama.googlecode.com/hg/screenshots/ubuntu-demo.png
    :width: 661
    :height: 357
    :alt: ANSI sequences on Ubuntu under gnome-terminal.

image:: http://colorama.googlecode.com/hg/screenshots/windows-demo.png
    :width: 668
    :height: 325
    :alt: Same ANSI sequences on Windows, using Colorama.

These screengrabs show that Colorama on Windows does not support ANSI
'dim text': it looks the same as 'normal text'.


- -- 
 .''`.   Khalid El Fathi <khalid@elfathi.fr>
: :'  :  GPG: 4096R/9368CAEC
`. `'`
  `-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPVc6hAAoJEOtK9aGTaMrsEVMQAKjYNeqcR3MDGtTTc79Y3znh
PedPfHSHHfqnzODirtJ7H0C6I1KZOWdVN6b2QzPmuf6ewLkxMvmTGH92GAJbm9Yc
OZJBr1/BONeqhpzN3SHOKWSwCON5A0RMEn4mcqW4wCHj/ziSxi6UZ5gUShBaeTsU
AdVkf9Gnb5siIJFJK2Sh5BHUBtT9Muz5zdkAwNWp5hADlMVRXtQs6YqAXhyimqf4
O5gHHfiIvAqwberyqdQjWoeipc8ZFVIEaOSTLFQV7WUqqoyqwYzxbtMRs/qcuVG9
Y31MdZ3oHuDEZq7u9MRXzFw9/6I6NfEky1jUb85rquvD6VkyuyFRX4x7MsDUda3n
35S/gKcgelPV3Eiiy9ArVBqrBU0AeHfEIr5fw5oILvPKhe0WbRIMVCOtNtho7eqE
sl460f1OmvJWoM0ts2U8xWQMnV63k/+i9MdnbmsZaGATj8ON4ZjBJ1fC9cca+3rX
I+tz9eY/B0o49EtL6J+HJNxkLFLqilHUHSTdGxOyUgUqU2sQjWGeFC978DjQUV2G
zBH1kO/r/oy1+477RMwiC/VwqbIdF3XCXLB/S8OQwjuzOhj0txg3VXjjNg5bwuGe
vjYrsMismnT8uf/iU/j25JNj8d+nQxUgFJPdy/B5aPZcvPXxjfwYBr5BaRjKjkLP
7kvcF8Qa1xqzMYytTYMq
=T9Ui
-----END PGP SIGNATURE-----



Reply to: