-
Notifications
You must be signed in to change notification settings - Fork 0
/
mxp.h
executable file
·53 lines (31 loc) · 1.06 KB
/
mxp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* MXP Support Module
*
* Thanks go to Nick Gammon for providing code!
*
*/
#ifndef __MXP_H_
#define __MXP_H_
#include "mud.h"
/* strings */
#define MXP_BEG "\x03" /* becomes < */
#define MXP_END "\x04" /* becomes > */
#define MXP_AMP "\x05" /* becomes & */
/* characters */
#define MXP_BEGc '\x03' /* becomes < */
#define MXP_ENDc '\x04' /* becomes > */
#define MXP_AMPc '\x05' /* becomes & */
/* constructs an MXP tag with < and > around it */
#define MXPTAG(arg) MXP_BEG arg MXP_END
#define ESC "\x1B" /* esc character */
#define MXPMODE(arg) ESC "[" #arg "z"
#define TELOPT_MXP '\x5B'
extern const unsigned char echo_on_str[];
extern const unsigned char will_mxp_str[];
extern const unsigned char start_mxp_str[];
extern const unsigned char do_mxp_str [];
extern const unsigned char dont_mxp_str [];
int count_mxp_tags (const int bMXP, const char *txt, int length);
void convert_mxp_tags (const int bMXP, char * dest, const char *src, int length);
// moved to connection
//void turn_on_mxp (cPlayerConnection *d);
#endif