|AUTOANSI.PATCH, RELEASE 1| | By D. Tyler Barnes | '~~~~~~~~~~~~~~~~~~~~~~~~~' This patch was generated for use with CircleMUD 3.0 bpl18, and will likely need some modification to work with other versions. What it does ~~~~~~~~~~~~ The main thing this does, is it sends an ANSI escape code to the remote terminal, and waits 2 seconds for a response. When the remote terminal receives this code, assuming it is ANSI compliant, it SHOULD send back an ANSI escape code containing information about the position of the cursor. This information is ignored, but if the code is returned, the terminal is assumed to be ANSI compliant. I'm not sure how many current MUD clients support the ANSI code necessary for this to work, but I know ZMUD supports it, so that covers almost everyone. A few secondary things you'll notice ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The color levels for the players has been moved in to one of the spares rather than using the PRF flags to store a high and low bit. That means that everyone's color levels will default to off, and it will have to be turned back on. An "Automatic" color level was added. If the color level is set to automatic, your color settings will be based on the results of the auto-detection that was done at login. If ANSI was detected, you'll be at 'color complete', else you'll be at 'color off'. Support for a lib/text/greetansi file was added. This is for having a color version of your greeting screen. If the file is missing, the standard 'greetings' file will be used for both ANSI compliant and non-compliant users. Note that though this file can contain ANSI color codes, it should not contain any higher level color codes such as the ones added in by EasyColor. Also, the extended ANSI character set should not be used. ZMUD for one has some serious issues with that. This is for adding color codes only. Finale ~~~~~~ As always, I ask that I be emailed at tyler.barnes@crcn.net if you decide to use this code, though I've recently discovered that this address may not be working, so it might be a moot point. Give it a shot anyhow. Also, I ask, though it isn't required if you're a total knob, for a credit line somewhere on your mud.