|
57 | 57 | #define SAVE "\x1b[s"
|
58 | 58 | #define RESTORE "\x1b[u"
|
59 | 59 |
|
| 60 | +#define MXP_OPEN "\x1b[0z" |
| 61 | +#define MXP_SECURE "\x1b[1z" |
| 62 | +#define MXP_LOCKED "\x1b[2z" |
| 63 | +#define MXP_RESET "\x1b[3z" |
| 64 | +#define MXP_TSM "\x1b[4z" |
| 65 | +#define MXP_LOM "\x1b[5z" |
| 66 | +#define MXP_LSM "\x1b[6z" |
| 67 | +#define MXP_LLM "\x1b[7z" |
| 68 | +#define MXP_ROOM_NAME "\x1b[10z" |
| 69 | +#define MXP_ROOM_DESC "\x1b[11z" |
| 70 | +#define MXP_ROOM_EXITS "\x1b[12z" |
| 71 | + |
60 | 72 | static mapping color_trans, attr_trans, terminal_trans;
|
61 | 73 | mapping symbolic_trans;
|
62 | 74 | static mapping translations;
|
63 | 75 | static mapping player_trans;
|
| 76 | +static mapping mxp_trans; |
64 | 77 |
|
65 | 78 | static void restore_me(void) {
|
66 | 79 | unguarded("restore_object", ANSI_DATA);
|
@@ -128,6 +141,21 @@ void setup(void) {
|
128 | 141 | "HOME" : HOME,
|
129 | 142 | ]);
|
130 | 143 |
|
| 144 | + mxp_trans = ([ |
| 145 | + "MXP_OPEN" : MXP_OPEN, |
| 146 | + "MXP_SECURE" : MXP_SECURE, |
| 147 | + "MXP_LOCKED" : MXP_LOCKED, |
| 148 | + "MXP_RESET" : MXP_RESET, |
| 149 | + "MXP_TSM" : MXP_TSM, |
| 150 | + "MXP_LOM" : MXP_LOM, |
| 151 | + "MXP_LSM" : MXP_LSM, |
| 152 | + "MXP_LLM" : MXP_LLM, |
| 153 | + "MXP_ROOM_NAME" : MXP_ROOM_NAME, |
| 154 | + "MXP_ROOM_DESC" : MXP_ROOM_DESC, |
| 155 | + "MXP_ROOM_EXITS" : MXP_ROOM_EXITS, |
| 156 | + ]); |
| 157 | + |
| 158 | + |
131 | 159 | tmp = ([
|
132 | 160 | "CHAN_NAME" : BLUE,
|
133 | 161 | "CHAN_DATE" : CYAN,
|
@@ -158,7 +186,7 @@ void setup(void) {
|
158 | 186 | symbolic_trans = tmp + symbolic_trans;
|
159 | 187 | }
|
160 | 188 |
|
161 |
| - translations = color_trans + attr_trans + terminal_trans; |
| 189 | + translations = color_trans + attr_trans + terminal_trans + mxp_trans; |
162 | 190 | }
|
163 | 191 |
|
164 | 192 | void create(void) {
|
|
0 commit comments