[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Colored text?
- From: Valerio Schiavoni <valerio.schiavoni@...>
- Date: Wed, 21 Jul 2010 14:48:24 +0200
A simple table with ansi colors :
--fg,bg
colors={
black={30,40},
red={31,41},
green={32,42},
yellow={33,43},
blue={34,44},
magenta={35,45},
cyan={36,46},
white={37,47}
}
print("\027["..colors.blue[1]..";"..colors.black[2].."mblue on black\027[00m")
On Fri, Jul 16, 2010 at 6:26 PM, Stuart P. Bentley
<stuart@testtrack4.com> wrote:
> On Thu, 15 Jul 2010 08:29:41 -0400, Luiz Henrique de Figueiredo
> <lhf@tecgraf.puc-rio.br> wrote:
>
>> BTW, here is a simple ANSI terminal module that you may find useful.
>>
>
> Note that for this to work your terminal has to support ANSI control
> characters, which Windows' cmd.exe doesn't (but programs compiled with
> Cygwin do).
>
>