Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Terminals

    termcolor 1.1.0

    Download button

    No screenshots available
    Downloads: 2,054  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Excellent (5.0/5)
    2 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Konstantin Lepa | More programs
    GPL / FREE
    January 15th, 2011, 09:48 GMT [view history]
    ROOT / Terminals

     Read user reviews (2)  Refer to a friend  Subscribe

    termcolor description

    ANSII Color formatting for output in terminal

    termcolor is a Python module for ANSII color formatting of the output in terminal.

    Available text colors

     red, green, yellow, blue, magenta, cyan, white.

    Available text highlights

     on_red, on_green, on_yellow, on_blue, on_magenta, on_cyan, on_white.

    Available attributes

     bold, dark, underline, blink, reverse, concealed.

    Example:

    from termcolor import colored

    print colored('Hello, World!', 'red', attrs=['reverse', 'blink'])
    print colored('Hello, World!', 'green', 'on_red')

    red_on_cyan = lambda x: colored(x, 'red', 'on_cyan')
    print red_on_cyan('Hello, World!')
    print red_on_cyan('Hello, Universe!')



    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Added cprint function.

      


    TAGS:

    ANSII color | color formatting | terminal output | ANSII | color | formatting



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM