| Message |
For my SMAUG port with MXP I have a small patch that will fix the problem with the current version of zMUD (6.16).
The patch is only a few lines, and basically sends "turn into secure mode" before every MXP command.
Save the patch below to disk in the "src" directory, then type:
patch -p5 < zmudfix.patch
This will patch the file comm.c.
Then do a "make".
After applying this zMUD users will see hyperlinks, however the only ones that work properly are the exits, because zMUD 6.16 has a bug in processing attributes for MXP tags (these are discussed at some length on the zMUD developers pages).
Patch appears below - copy it and paste into Notepad, then save as zmudfix.patch.
*** ../../../smaugmxp/dist/src/comm.c Wed Jul 18 16:48:38 2001
--- comm.c Wed Jul 18 16:53:58 2001
***************
*** 1466,1471 ****
--- 1466,1473 ----
bInTag = TRUE;
if (!bMXP)
count--; /* not output if not MXP */
+ else
+ count += 4; /* allow for ESC [1z */
break;
case MXP_ENDc: /* shouldn't get this case */
***************
*** 1542,1548 ****
--- 1544,1554 ----
case MXP_BEGc:
bInTag = TRUE;
if (bMXP)
+ {
+ memcpy (pd, MXPMODE (1), 4);
+ pd += 4;
*pd++ = '<';
+ }
break;
case MXP_ENDc: /* shouldn't get this case */
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|