@@ -838,7 +838,7 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
838
838
839
839
Note (CFormat (" %03i: %s = %s" , InfoTypes [iCount].iInfoType ,
840
840
InfoTypes [iCount].sDescription ,
841
- CString (v.bstrVal )));
841
+ (LPCTSTR) CString (v.bstrVal )));
842
842
843
843
v.Clear (); // get rid of string (is this necessary?)
844
844
} // end of not VT_NULL
@@ -871,7 +871,7 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
871
871
872
872
873
873
Note (" " );
874
- Note ( " -------------- MUSHclient summary --------------" );
874
+ ColourNote (SCRIPTERRORCONTEXTFORECOLOUR, " " , " -------------- MUSHclient summary --------------" );
875
875
Note (" " );
876
876
Note (TFormat (" MUSHclient version: %s" , MUSHCLIENT_VERSION));
877
877
// show compilation date
@@ -939,13 +939,10 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
939
939
Note (TFormat (" World name: '%s', ID: %s" ,
940
940
(LPCTSTR) m_mush_name, (LPCTSTR) m_strWorldID));
941
941
942
- CString strStatus = GetConnectionStatus (m_iConnectPhase);
943
-
944
- Note (TFormat (" Connect phase: %i (%s)" ,
945
- m_iConnectPhase, (LPCTSTR) strStatus));
946
942
947
943
// scripting info
948
944
945
+ ColourNote (SCRIPTERRORCONTEXTFORECOLOUR, " " , " -- Scripting --" );
949
946
Note (TFormat (" Script language: %s, enabled: %s" ,
950
947
(LPCTSTR) m_strLanguage,
951
948
SHOW_TRUE (m_bEnableScripts)
@@ -964,6 +961,7 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
964
961
Note (TFormat (" Scripting for: %1.6f seconds." , elapsed_time));
965
962
}
966
963
964
+ ColourNote (SCRIPTERRORCONTEXTFORECOLOUR, " " , " -- Triggers, aliases, timers, variables --" );
967
965
968
966
// count number of triggers matched
969
967
for (pos = m_TriggerMap.GetStartPosition (); pos; )
@@ -1090,6 +1088,8 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
1090
1088
1091
1089
Note (TFormat (" ** Variables: %ld." , nTotal));
1092
1090
1091
+ ColourNote (SCRIPTERRORCONTEXTFORECOLOUR, " " , " -- MCCP --" );
1092
+
1093
1093
if (m_bCompress)
1094
1094
{
1095
1095
Note (TFormat (" MCCP active, took %1.6f seconds to decompress" , elapsed_time));
@@ -1103,6 +1103,8 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
1103
1103
else
1104
1104
Note (Translate (" MCCP not active." ));
1105
1105
1106
+ ColourNote (SCRIPTERRORCONTEXTFORECOLOUR, " " , " -- Plugins --" );
1107
+
1106
1108
// count and display plugins
1107
1109
1108
1110
nTotal = 0 ;
@@ -1126,8 +1128,15 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
1126
1128
1127
1129
Note (TFormat (" ** Plugins: %ld loaded, %ld enabled." , nTotal, nEnabled));
1128
1130
1131
+ ColourNote (SCRIPTERRORCONTEXTFORECOLOUR, " " , " -- Comms --" );
1132
+
1129
1133
// show bytes sent/received
1130
1134
1135
+ CString strStatus = GetConnectionStatus (m_iConnectPhase);
1136
+
1137
+ Note (TFormat (" Connect phase: %i (%s)" ,
1138
+ m_iConnectPhase, (LPCTSTR) strStatus));
1139
+
1131
1140
__int64 nInK = m_nBytesIn / (__int64) 1024 ;
1132
1141
__int64 nOutK = m_nBytesOut / (__int64) 1024 ;
1133
1142
Note (TFormat (" Received: %I64d bytes (%I64d Kb)" , m_nBytesIn, nInK));
@@ -1142,6 +1151,17 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
1142
1151
1143
1152
Note (TFormat (" This connection: Sent %ld lines, received %ld lines." , m_nTotalLinesSent, m_nTotalLinesReceived));
1144
1153
1154
+ // telnet negotiation
1155
+
1156
+ Note (TFormat (" Telnet (IAC) received: DO: %ld, DONT: %ld, WILL: %ld, WONT: %ld, SB: %ld" ,
1157
+ m_nCount_IAC_DO,
1158
+ m_nCount_IAC_DONT,
1159
+ m_nCount_IAC_WILL,
1160
+ m_nCount_IAC_WONT,
1161
+ m_nCount_IAC_SB));
1162
+
1163
+ ColourNote (SCRIPTERRORCONTEXTFORECOLOUR, " " , " -- MXP --" );
1164
+
1145
1165
// MXP
1146
1166
1147
1167
Note (TFormat (" MXP active: %s, Pueblo mode: %s" ,
@@ -1152,6 +1172,7 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
1152
1172
Note (TFormat (" MXP entities received: %I64d" , m_iMXPentities));
1153
1173
Note (TFormat (" MXP errors: %I64d" , m_iMXPerrors));
1154
1174
1175
+ ColourNote (SCRIPTERRORCONTEXTFORECOLOUR, " " , " -- Commands --" );
1155
1176
1156
1177
// commands typed
1157
1178
@@ -1171,7 +1192,13 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
1171
1192
} // end of being a CSendView
1172
1193
} // end of loop through views
1173
1194
1174
- Note (TFormat (" ** Commands in command history: %ld" , nTotal));
1195
+ Note (TFormat (" Commands in command history: %ld" , nTotal));
1196
+
1197
+ // accelerators
1198
+
1199
+ Note (TFormat (" Accelerators defined: %ld" , m_AcceleratorToCommandMap.size ()));
1200
+
1201
+ ColourNote (SCRIPTERRORCONTEXTFORECOLOUR, " " , " -- Miniwindows --" );
1175
1202
1176
1203
// miniwindows
1177
1204
nTotal = 0 ;
@@ -1227,6 +1254,8 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
1227
1254
1228
1255
Note (TFormat (" ** Miniwindows: %ld loaded, %ld shown." , nTotal, nEnabled));
1229
1256
1257
+ ColourNote (SCRIPTERRORCONTEXTFORECOLOUR, " " , " -- Output window --" );
1258
+
1230
1259
// output window info
1231
1260
1232
1261
CRect r (0 , 0 , 0 , 0 );
@@ -1235,27 +1264,15 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
1235
1264
if (pmyView)
1236
1265
pmyView->GetClientRect (&r);
1237
1266
1238
- Note (TFormat (" ** Output pixels: width %ld, height: %ld, font width: %ld, font height: %ld" ,
1267
+ Note (TFormat (" Output pixels: width %ld, height: %ld, font width: %ld, font height: %ld" ,
1239
1268
r.right , r.bottom , m_FontWidth, m_FontHeight));
1240
1269
1241
1270
if (m_FontWidth > 0 && m_FontHeight > 0 )
1242
- Note (TFormat (" width %ld characters, wrap at column %ld, height %ld lines." ,
1271
+ Note (TFormat (" width %ld characters, wrap at column %ld, height %ld lines." ,
1243
1272
r.right / m_FontWidth, m_nWrapColumn, r.bottom / m_FontHeight));
1244
1273
1245
1274
1246
- // accelerators
1247
-
1248
- Note (TFormat (" Accelerators defined: %ld" , m_AcceleratorToCommandMap.size ()));
1249
-
1250
- // telnet negotiation
1251
-
1252
- Note (TFormat (" Telnet (IAC) received: DO: %ld, DONT: %ld, WILL: %ld, WONT: %ld, SB: %ld" ,
1253
- m_nCount_IAC_DO,
1254
- m_nCount_IAC_DONT,
1255
- m_nCount_IAC_WILL,
1256
- m_nCount_IAC_WONT,
1257
- m_nCount_IAC_SB));
1258
-
1275
+ ColourNote (SCRIPTERRORCONTEXTFORECOLOUR, " " , " -- Miscellaneous --" );
1259
1276
1260
1277
// logging?
1261
1278
@@ -1273,13 +1290,12 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
1273
1290
if (m_pDirectSoundSecondaryBuffer [i])
1274
1291
nTotal++;
1275
1292
1276
- Note (TFormat (" DirectSound buffers in use: %ld" , nTotal));
1277
-
1293
+ Note (TFormat (" Sound buffers in use: %ld" , nTotal));
1278
1294
1279
1295
// end summary
1280
1296
1281
1297
Note (" " );
1282
- Note ( " -------------- End summary --------------" );
1298
+ ColourNote (SCRIPTERRORCONTEXTFORECOLOUR, " " , " -------------- End summary --------------" );
1283
1299
1284
1300
} // end of summary
1285
1301
0 commit comments