 |
leonardofaoro Novice
Joined: 07 Feb 2008 Posts: 40 Location: Italy
|
Posted: Tue Mar 18, 2008 9:00 pm
Loggin with Ansi Colors |
Hello,
I've logged many mud sessions using Ansi Colors, but now when I look at the logs they're like this:
16.04 | [36m|[31mRobert ([1;31m35[0;31m)[36m] [1;36m([1;37m29%[1;36m)[0;36m/[1;36m([1;37m54%[0;36m[[1;37m2780[1;36m/[0;37m5058[36m][1;36m) [0;36m[[31m411[1;31m/[0;31m114[36m][1;36m> [0m
16.04 | [0SRobert steals your energy.[0m
16.04 | [31mRobert hurts you.[0m
16.04 | [0SYou scorch Robert with your fire shield.[0m
How can I see the codes interpreted? Cmud comes with an interpreter for this? |
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Wed Mar 19, 2008 5:29 am |
What you are seeing are the actually ANSI codes that indicate color. I think they do show up when you view the logs in CMUD, but I'm not 100% sure. There's also some discussion/scripts that talk about converting ANSI logs to HTML.
|
|
_________________ Asati di tempari! |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed Mar 19, 2008 6:15 am |
There are many many programs floating around that will display ANSI colour codes. Have a google.
|
|
|
 |
Enthralled Beginner
Joined: 17 Jan 2008 Posts: 10
|
Posted: Thu Mar 20, 2008 8:22 pm |
I tried a few google searches but all I could come up with are horrible old dos editors for windows.
The only option that works well for me at the moment is to use putty, cygwin, and bash to open a local terminal and just cat the log files. This is a very sub par option however.
Does anyone have a nice editor/viewer that can display ansi codes?
Is there a reason we can not just open a log file directly in cmud? It obviously already can display everything inside of one, it seems like it would be simple to add such an option. I swear I remember a log view being included in zmud but I am not 100% sure on that. |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5182
|
Posted: Fri Mar 21, 2008 1:39 am |
Open the Editor window (CTRL-SHIFT-ENTER was a shortcut for it) I am pretty sure it allows you to load a file there.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
 |
leonardofaoro Novice
Joined: 07 Feb 2008 Posts: 40 Location: Italy
|
Posted: Fri Mar 21, 2008 2:22 am |
Vijilante wrote: |
Open the Editor window (CTRL-SHIFT-ENTER was a shortcut for it) I am pretty sure it allows you to load a file there. |
The editor in CMUD does't read this:
16.04 | [36m|[31mRobert ([1;31m35[0;31m)[36m] [1;36m([1;37m31%[1;36m)[0;36m/[1;36m([1;37m54%[0;36m[[1;37m2778[1;36m/[0;37m5058[36m][1;36m) [0;36m[[31m411[1;31m/[0;31m94[36m][1;36m> [0m
16.04 | [0SYou steal Robert's energy.[0m
16.04 | [33mYou hurt Robert.[0m
We need an ANSI parser. |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Mar 21, 2008 3:45 am |
When you use the File/Open option in the CMUD editor, you need to be sure to choose the File-Type option in the open dialog to select ANSI files. Then it should load.
However, there is a bug in the current version of CMUD that will prevent it from recognizing the ESC[0S codes properly. These codes were supposed to be removed from the log file, so any ANSI viewer will have trouble with them. |
|
|
 |
Enthralled Beginner
Joined: 17 Jan 2008 Posts: 10
|
Posted: Fri Mar 21, 2008 5:15 am |
That worked great!
A couple of things that helped me. First if you can not see the drop down in the file select dialog, clicking in it and using the arrow key will change it.
Second, if like me you play with a black background (I think this is even the default) you will want to change the editor to match that so your log files are easy to read. To do this go into the general settings, click on styles, and then select Text Editor from the general category. Click on the little color square next to background color and text color to pick black and white respectively.
Enjoy reading your logs in full color glory =) |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Mar 21, 2008 6:26 am |
I tried changing the background colour before loading my logs with the format->text colour menu, but the foreground colour overrode the background colour I chose. Thanks for that tip.
|
|
|
 |
jetyap Newbie
Joined: 28 Feb 2008 Posts: 8
|
Posted: Tue Mar 25, 2008 11:15 am |
Is there an option to display the BOLD items in Highlight mode instead of bold in the Editor? I suggest this to be added as a new feature if it isn't available. Would be perfect then. Full color glory. Hehe
|
|
|
 |
|
|