lua-users home
lua-l archive

Re: Is there a colour output module in Lua?

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


On 2012年9月29日 18:02:26 +0800
Xavier Wang <weasley.wx@gmail.com> wrote:
> Hi list,
> 
> I'm interesting in lua-repl. I think it can output colour text in a
> console. it can be done in windows with win32 api and linux with
> terminal-special-keys. But I'm wondering whether a cross-platform
> module to do colour output in lua like Color::Output[1] in Perl.
> 
> And if it not present, I think I can write one, so which API do you
> like is better?
> 
> Regards,
> Xavier Wang.
> 
> [1]: http://search.cpan.org/~animator/Color-Output-1.05/Output.pm
Hi Xavier,
I've written a module for this purpose:
http://github.com/hoelzro/lua-term
It doesn't support Windows (yet), but I would like it to eventually.
-Rob

Attachment: signature.asc
Description: PGP signature


AltStyle によって変換されたページ (->オリジナル) /