ScreenDump Function
Posted: Sat Apr 24, 2010 7:25 pm
This function/alias will save the current buffer (what you see on the screen) to an html file with color formatting. This is useful if you wish to go over something in your system, but want the end result, instead of doing html logging on what the mud sends out initially.
You can either call logScreen(logdir, logfile) in lua or use the alias screendump <filename>. The alias is setup to ask you for a directory using a standard File Dialog so its easier to point it to get a directory other than Mudlet's home directory. Be warned, large buffers do take me around 2 minutes to fully save since for each line it has to process character by character.
Update: Fixed whitespace formatting and also to use a mono space font so formatting isn't messed up.
Thanks to Vadi for helping to improve the function a bit! The original thread can be found at: http://forums.mudlet.org/viewtopic.php?f=9&t=1410
You can either call logScreen(logdir, logfile) in lua or use the alias screendump <filename>. The alias is setup to ask you for a directory using a standard File Dialog so its easier to point it to get a directory other than Mudlet's home directory. Be warned, large buffers do take me around 2 minutes to fully save since for each line it has to process character by character.
Update: Fixed whitespace formatting and also to use a mono space font so formatting isn't messed up.
Thanks to Vadi for helping to improve the function a bit! The original thread can be found at: http://forums.mudlet.org/viewtopic.php?f=9&t=1410