how to transform ascii code file into colored text?
From: Krzywy (krzywy_at_ask-klan.net.pl)
Date: 08/29/03
- Next message: Apu Singh Mary-Ann Smith: "Backporting dlsym() call from Linux to SCO"
- Previous message: Stefan Hinterstoisser: "Re: relocaton error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Aug 2003 12:09:41 -0700
Maybe NTG but...
I have Powwow MUD shell client that has a color_ascii_logging function.
Here is a sample of log file:
----------------------
^[[0;37m^[[m^[[1;33mHp:3057/3057 ^[[34mmn:1122/1122 ^[[32mq:14
^[[m^[[33mb:0 ^[[32mf:1000 ^[[35mm:-152 ^[[m^[[1;36mnikt^[[m^[[m>look
^[[0;1;36mAukcja: Oferta: 45.000 monet za rzecz o nazwie eteryczne sztylpy.
^[[m^[[0;1;37mA hallway in the office
^[[mThis is a basic hallway, free from any furnishing or decoration,
save one large painting on the east wall. This hall sees much less
traffic than the one south, as only Gemma's office and an odd door
can be accessed from this direction.
^[[0;1;37m[Wyjscia: poludnie zachod]
------------------------
And that's what a see on the screen (without colors):
------------------------
Hp:3057/3057 mn:1122/1122 q:14
b:0 f:1000 m:-152 nikt>look
Aukcja: Oferta: 45.000 monet za rzecz o nazwie eteryczne sztylpy.
A hallway in the office
This is a basic hallway, free from any furnishing or decoration,
save one large painting on the east wall. This hall sees much less
traffic than the one south, as only Gemma's office and an odd door
can be accessed from this direction.
[Wyjscia: poludnie zachod]
-------------------------
How can I translate a code (shown in first example) into a color text??
Is there any way to do that using shell or Powwow commans?
Please help!
- Next message: Apu Singh Mary-Ann Smith: "Backporting dlsym() call from Linux to SCO"
- Previous message: Stefan Hinterstoisser: "Re: relocaton error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]