Up to Main Index                          Up to Journal for December, 2016

                   JOURNAL FOR THURSDAY 22ND DECEMBER, 2016
______________________________________________________________________________

SUBJECT: Windows TELNET colour fixes
   DATE: Thu 22 Dec 22:45:51 GMT 2016

Someone pointed out to me an issue when using Windows TELNET with the latest
WolfMUD v0.0.2 release. It turns out that the escape sequence “\033[39m”
defined as ‘default display colour (implementation-defined)’ in the ECMA-48[1]
standard was either not working or was being ignored. This resulted in the
colours bleeding through until the next colour change.

The strange thing is I would swear blind this was working!

Anyway, I retested and sure enough the problem was reproducible.

text.Default, text.BGDefault, [DEFAULT] and [BGDEFAULT] are now removed and
replaced with text.Reset and [RESET] — defined as “\033[0m”. This is defined
in ECME-48 as:


  default rendition (implementation-defined), cancels the effect of any
  preceding occurrence of SGR in the data stream regardless of the setting of
  the GRAPHIC RENDITION COMBINATION MODE (GRCM)


It seems to be working.

I’ve just push the changes to the public dev branch. I’m going to try and get
a new release out with these changes included as well. However with it being
so near to Christmas I’m hard–pressed for time so a release may have to wait
a while :(

--
Diddymus

  [1] Standard ECMA-48 Control Functions for Coded Character Sets:
      https://www.ecma-international.org/publications/standards/Ecma-048.htm


  Up to Main Index                          Up to Journal for December, 2016