|  | @@ -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) {
 | 
	
		
			
				|  |  |            // Add in random text, plus color!
 | 
	
		
			
				|  |  |            do {
 | 
	
		
			
				|  |  |              r = random() % ((sizeof(phrasing) / sizeof(char *)) - 1);
 | 
	
		
			
				|  |  | +            // Does this drop the last element in phrasing? (Seems like it takes awhile to get Seg Fault spoof, might be why)
 | 
	
		
			
				|  |  |            } while (last_phrasing.seen_before(r));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |            int color = random() % 15 + 1;
 | 
	
	
		
			
				|  | @@ -753,8 +755,8 @@ int mangle(int fd, const char *buffer, int len) {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |            // sprintf(display, "^P1^S3^C%02d%s^S0^R0%s^P1", color, phrasing[r],
 | 
	
		
			
				|  |  |            // restore_color);
 | 
	
		
			
				|  |  | -          // ZF_LOGI("mangle(ANSI_CLS): Inserted (%02d) %s", color,
 | 
	
		
			
				|  |  | -          // phrasing[r]);
 | 
	
		
			
				|  |  | +          // Added debug statement so we can identify what was sent... color, number picked and what that is
 | 
	
		
			
				|  |  | +          ZF_LOGD("mangle(ANSI_CLS): Inserted color=%02d r=%d phrase='%s'", color, r, phrasing[r]);
 | 
	
		
			
				|  |  |            ZF_LOGI_MEM(play, len, "mangle(ANSI_CLS) :");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |            // Move the buffer so there's room for the display string.
 |