|
@@ -715,7 +715,8 @@ int mangle(int fd, const char *buffer, int len) {
|
|
|
int r;
|
|
|
char display[100] = "";
|
|
|
const char *phrasing[] = {"^R1Haha^P1ha^P1ha", "Poof!", "Got U",
|
|
|
- "Anyone there?", "^R1Knock, ^P1Knock"};
|
|
|
+ "Anyone there?", "^R1Knock, ^P1Knock",
|
|
|
+ "^G0101^C07^S6Segmentation Fault ^P1^S9(core ^C12^C24dumped^C07)^P2"};
|
|
|
static LastSeen last_phrasing(2);
|
|
|
|
|
|
ZF_LOGI("mangle(ANSI_CLS)");
|
|
@@ -728,6 +729,7 @@ int mangle(int fd, const char *buffer, int len) {
|
|
|
|
|
|
do {
|
|
|
r = random() % ((sizeof(phrasing) / sizeof(char *)) - 1);
|
|
|
+
|
|
|
} while (last_phrasing.seen_before(r));
|
|
|
|
|
|
int color = random() % 15 + 1;
|
|
@@ -753,8 +755,8 @@ int mangle(int fd, const char *buffer, int len) {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+ ZF_LOGD("mangle(ANSI_CLS): Inserted color=%02d r=%d phrase='%s'", color, r, phrasing[r]);
|
|
|
ZF_LOGI_MEM(play, len, "mangle(ANSI_CLS) :");
|
|
|
|
|
|
|