Lines Matching refs:b
50 promcon_start(struct vc_data *conp, char *b) in promcon_start() argument
62 return sprintf(b, "\b\033[7m%c\b\033[@%c\033[m", cs, in promcon_start()
65 return sprintf(b, "\b\033[7m%c\033[m\b\033[@%c", cs, in promcon_start()
68 return sprintf(b, "\b%c\b\033[@\033[7m%c\033[m", cs, in promcon_start()
71 return sprintf(b, "\b%c\b\033[@%c", cs, ct); in promcon_start()
75 return sprintf(b, "\033[7m%c\033[m\b", cs); in promcon_start()
77 return sprintf(b, "%c\b", cs); in promcon_start()
81 promcon_end(struct vc_data *conp, char *b) in promcon_end() argument
85 char *p = b; in promcon_end()
88 b += sprintf(b, "\033[%d;%dH", py + 1, px + 1); in promcon_end()
96 b += sprintf(b, "\b%c\b\033[@\033[7m%c\033[m", cs, ct); in promcon_end()
98 b += sprintf(b, "\b%c\b\033[@%c", cs, ct); in promcon_end()
100 b += sprintf(b, "\b\033[7m%c\b\033[@%c\033[m", cs, ct); in promcon_end()
102 b += sprintf(b, "\b\033[7m%c\033[m\b\033[@%c", cs, ct); in promcon_end()
103 return b - p; in promcon_end()
107 b += sprintf(b, "%c\b", cs); in promcon_end()
109 b += sprintf(b, "\033[7m%c\033[m\b", cs); in promcon_end()
110 return b - p; in promcon_end()
212 unsigned char *b = *bp; in promcon_repaint_line() local
219 strcpy (b, "\033[7m"); in promcon_repaint_line()
220 b += 4; in promcon_repaint_line()
222 strcpy (b, "\033[m"); in promcon_repaint_line()
223 b += 3; in promcon_repaint_line()
226 *b++ = c; in promcon_repaint_line()
228 if (b - buf >= 224) { in promcon_repaint_line()
229 promcon_puts(buf, b - buf); in promcon_repaint_line()
230 b = buf; in promcon_repaint_line()
233 *bp = b; in promcon_repaint_line()
241 unsigned char buf[256], *b = buf; in promcon_putcs() local
252 b += promcon_start(conp, b); in promcon_putcs()
262 b += sprintf(b, "\033[%d;%dH", y + 1, x + 1); in promcon_putcs()
268 b += sprintf(b, "\033[7m%c\033[m", scr_readw(s++)); in promcon_putcs()
270 b += sprintf(b, "%c", scr_readw(s++)); in promcon_putcs()
272 strcpy(b, "\b\033[@"); in promcon_putcs()
273 b += 4; in promcon_putcs()
276 b += sprintf(b, "\033[7m%c\033[m", save); in promcon_putcs()
278 b += sprintf(b, "%c", save); in promcon_putcs()
282 b += promcon_end(conp, b); in promcon_putcs()
283 promcon_puts(buf, b - buf); in promcon_putcs()
292 strcpy(b, "\033[7m"); in promcon_putcs()
293 b += 4; in promcon_putcs()
297 b += sprintf(b, "\033[%d;%dH", y + 1, x + 1); in promcon_putcs()
303 if (b - buf >= 224) { in promcon_putcs()
304 promcon_puts(buf, b - buf); in promcon_putcs()
305 b = buf; in promcon_putcs()
307 *b++ = scr_readw(s++); in promcon_putcs()
314 b += sprintf(b, "%c\b\033[@%c", scr_readw(s++), save); in promcon_putcs()
319 strcpy(b, "\033[m"); in promcon_putcs()
320 b += 3; in promcon_putcs()
323 b += promcon_end(conp, b); in promcon_putcs()
324 promcon_puts(buf, b - buf); in promcon_putcs()
342 unsigned char buf[256], *b = buf; in promcon_clear() local
348 b += promcon_start(conp, b); in promcon_clear()
353 strcpy(b, "\033[H\033[J"); in promcon_clear()
354 b += 6; in promcon_clear()
355 b += promcon_end(conp, b); in promcon_clear()
356 promcon_puts(buf, b - buf); in promcon_clear()
359 b += sprintf(b, "\033[%dH\033[J", sy + 1); in promcon_clear()
360 b += promcon_end(conp, b); in promcon_clear()
361 promcon_puts(buf, b - buf); in promcon_clear()
365 b += sprintf(b, "\033[%dH", sy + 1); in promcon_clear()
367 strcpy(b, "\033[K\n"); in promcon_clear()
368 b += 4; in promcon_clear()
371 strcpy(b, "\033[K"); in promcon_clear()
372 b += 3; in promcon_clear()
374 b += promcon_end(conp, b); in promcon_clear()
375 promcon_puts(buf, b - buf); in promcon_clear()
380 b += sprintf(b, "\033[%d;%dH", sy + 1, sx + 1); in promcon_clear()
382 strcpy(b, "\033[K\n"); in promcon_clear()
383 b += 4; in promcon_clear()
386 strcpy(b, "\033[K"); in promcon_clear()
387 b += 3; in promcon_clear()
389 b += promcon_end(conp, b); in promcon_clear()
390 promcon_puts(buf, b - buf); in promcon_clear()
395 b += sprintf(b, "\033[%d;%dH", i, sx + 1); in promcon_clear()
397 *b++ = ' '; in promcon_clear()
398 if (b - buf + width >= 224) { in promcon_clear()
399 promcon_puts(buf, b - buf); in promcon_clear()
400 b = buf; in promcon_clear()
404 b += promcon_end(conp, b); in promcon_clear()
405 promcon_puts(buf, b - buf); in promcon_clear()
412 char buf[256], *b = buf; in promcon_bmove() local
417 b += promcon_start(conp, b); in promcon_bmove()
420 b += sprintf(b, "\033[%d;%dH\033[%d@\033[%d;%dH", in promcon_bmove()
423 b += sprintf(b, "\033[%d;%dH\033[%dP\033[%d;%dH", in promcon_bmove()
426 b += promcon_end(conp, b); in promcon_bmove()
427 promcon_puts(buf, b - buf); in promcon_bmove()
441 char buf[32], *b = buf; in promcon_cursor() local
449 b += promcon_start(conp, b); in promcon_cursor()
453 b += sprintf(b, "\033[%d;%dH", py + 1, px + 1); in promcon_cursor()
455 promcon_puts(buf, b - buf); in promcon_cursor()
479 promcon_scroll(struct vc_data *conp, int t, int b, int dir, int count) in promcon_scroll() argument
492 if (b == ph + 1) { in promcon_scroll()
506 for (i = t; i < b - count; i++) in promcon_scroll()
509 for (; i < b - 1; i++) { in promcon_scroll()
526 if (b == ph + 1) { in promcon_scroll()
548 for (; i < b; i++) in promcon_scroll()