Lines Matching refs:ptr
234 char *ptr; in screen_char() local
236 ptr = G.attrbuf; in screen_char()
245 *ptr++ = '0'; // "reset all attrs" in screen_char()
246 *ptr++ = ';'; in screen_char()
252 *ptr++ = '1'; in screen_char()
253 *ptr++ = ';'; in screen_char()
256 *ptr++ = '5'; in screen_char()
257 *ptr++ = ';'; in screen_char()
260 *ptr++ = '3'; in screen_char()
261 *ptr++ = color[attr & fg_mask]; in screen_char()
262 *ptr++ = ';'; in screen_char()
265 *ptr++ = '4'; in screen_char()
266 *ptr++ = color[(attr & bg_mask) >> 4]; in screen_char()
267 ptr++; // last attribute in screen_char()
269 if (ptr != G.attrbuf) { in screen_char()
270 ptr[-1] = 'm'; in screen_char()
271 *ptr = '\0'; in screen_char()