Terminal program for MailStation devices
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

csi: 'm' changes start from putchar_sgr, not the stored attribute

+2 -4
+2 -4
csi.c
··· 38 38 int param1 = -1, param2 = -1; 39 39 char c = csibuf[csibuflen - 1]; 40 40 char parambuf[4]; 41 - int parambuflen, off; 41 + int parambuflen; 42 42 #ifdef DEBUG 43 43 char sb[TEXT_COLS]; 44 44 #endif ··· 249 249 case 'm': /* graphic changes */ 250 250 parambuf[0] = '\0'; 251 251 parambuflen = 0; 252 - 253 - off = (cursory * LCD_COLS) + cursorx; 254 - param2 = screenattrs[off]; 252 + param2 = putchar_sgr; 255 253 256 254 for (x = 0; x < csibuflen; x++) { 257 255 /* all the way to csibuflen to catch 'm' */