Lines Matching refs:buffer

381   char buffer[1024];  in TEST_IMPL()  local
394 snprintf(buffer, sizeof(buffer), "%sA", CSI); in TEST_IMPL()
395 write_console(&tty_out, buffer); in TEST_IMPL()
402 snprintf(buffer, sizeof(buffer), "%s%dA", CSI, si.height / 4); in TEST_IMPL()
403 write_console(&tty_out, buffer); in TEST_IMPL()
412 snprintf(buffer, sizeof(buffer), "%sA", CSI); in TEST_IMPL()
413 write_console(&tty_out, buffer); in TEST_IMPL()
432 char buffer[1024]; in TEST_IMPL() local
445 snprintf(buffer, sizeof(buffer), "%sB", CSI); in TEST_IMPL()
446 write_console(&tty_out, buffer); in TEST_IMPL()
453 snprintf(buffer, sizeof(buffer), "%s%dB", CSI, si.height / 4); in TEST_IMPL()
454 write_console(&tty_out, buffer); in TEST_IMPL()
463 snprintf(buffer, sizeof(buffer), "%sB", CSI); in TEST_IMPL()
464 write_console(&tty_out, buffer); in TEST_IMPL()
483 char buffer[1024]; in TEST_IMPL() local
496 snprintf(buffer, sizeof(buffer), "%sC", CSI); in TEST_IMPL()
497 write_console(&tty_out, buffer); in TEST_IMPL()
504 snprintf(buffer, sizeof(buffer), "%s%dC", CSI, si.width / 4); in TEST_IMPL()
505 write_console(&tty_out, buffer); in TEST_IMPL()
514 snprintf(buffer, sizeof(buffer), "%sC", CSI); in TEST_IMPL()
515 write_console(&tty_out, buffer); in TEST_IMPL()
524 snprintf(buffer, sizeof(buffer), "%sC", CSI); in TEST_IMPL()
525 write_console(&tty_out, buffer); in TEST_IMPL()
544 char buffer[1024]; in TEST_IMPL() local
557 snprintf(buffer, sizeof(buffer), "%sD", CSI); in TEST_IMPL()
558 write_console(&tty_out, buffer); in TEST_IMPL()
565 snprintf(buffer, sizeof(buffer), "%s%dD", CSI, si.width / 4); in TEST_IMPL()
566 write_console(&tty_out, buffer); in TEST_IMPL()
575 snprintf(buffer, sizeof(buffer), "%sD", CSI); in TEST_IMPL()
576 write_console(&tty_out, buffer); in TEST_IMPL()
585 snprintf(buffer, sizeof(buffer), "%sD", CSI); in TEST_IMPL()
586 write_console(&tty_out, buffer); in TEST_IMPL()
605 char buffer[1024]; in TEST_IMPL() local
618 snprintf(buffer, sizeof(buffer), "%sE", CSI); in TEST_IMPL()
619 write_console(&tty_out, buffer); in TEST_IMPL()
626 snprintf(buffer, sizeof(buffer), "%s%dE", CSI, si.height / 4); in TEST_IMPL()
627 write_console(&tty_out, buffer); in TEST_IMPL()
636 snprintf(buffer, sizeof(buffer), "%sE", CSI); in TEST_IMPL()
637 write_console(&tty_out, buffer); in TEST_IMPL()
656 char buffer[1024]; in TEST_IMPL() local
669 snprintf(buffer, sizeof(buffer), "%sF", CSI); in TEST_IMPL()
670 write_console(&tty_out, buffer); in TEST_IMPL()
677 snprintf(buffer, sizeof(buffer), "%s%dF", CSI, si.height / 4); in TEST_IMPL()
678 write_console(&tty_out, buffer); in TEST_IMPL()
687 snprintf(buffer, sizeof(buffer), "%sD", CSI); in TEST_IMPL()
688 write_console(&tty_out, buffer); in TEST_IMPL()
707 char buffer[1024]; in TEST_IMPL() local
720 snprintf(buffer, sizeof(buffer), "%sG", CSI); in TEST_IMPL()
721 write_console(&tty_out, buffer); in TEST_IMPL()
727 snprintf(buffer, sizeof(buffer), "%s%dG", CSI, si.width / 4); in TEST_IMPL()
728 write_console(&tty_out, buffer); in TEST_IMPL()
734 snprintf(buffer, sizeof(buffer), "%s%dG", CSI, si.width + 1); in TEST_IMPL()
735 write_console(&tty_out, buffer); in TEST_IMPL()
753 char buffer[1024]; in TEST_IMPL() local
766 snprintf(buffer, sizeof(buffer), "%sH", CSI); in TEST_IMPL()
767 write_console(&tty_out, buffer); in TEST_IMPL()
774 buffer, sizeof(buffer), "%s%d;%df", CSI, si.height / 2, si.width / 2); in TEST_IMPL()
775 write_console(&tty_out, buffer); in TEST_IMPL()
782 buffer, sizeof(buffer), "%s%d;%df", CSI, si.height / 2, si.width + 1); in TEST_IMPL()
783 write_console(&tty_out, buffer); in TEST_IMPL()
789 buffer, sizeof(buffer), "%s%d;%df", CSI, si.height + 1, si.width / 2); in TEST_IMPL()
790 write_console(&tty_out, buffer); in TEST_IMPL()
808 char buffer[1024]; in TEST_IMPL() local
819 snprintf(buffer, sizeof(buffer), "%s?25l", CSI); in TEST_IMPL()
820 write_console(&tty_out, buffer); in TEST_IMPL()
825 snprintf(buffer, sizeof(buffer), "%s?25h", CSI); in TEST_IMPL()
826 write_console(&tty_out, buffer); in TEST_IMPL()
844 char buffer[1024]; in TEST_IMPL() local
860 snprintf(buffer, sizeof(buffer), "%sJ", CSI); in TEST_IMPL()
861 write_console(&tty_out, buffer); in TEST_IMPL()
872 snprintf(buffer, sizeof(buffer), "%s%dJ", CSI, dir); in TEST_IMPL()
873 write_console(&tty_out, buffer); in TEST_IMPL()
885 snprintf(buffer, sizeof(buffer), "%s%dJ", CSI, dir); in TEST_IMPL()
886 write_console(&tty_out, buffer); in TEST_IMPL()
898 snprintf(buffer, sizeof(buffer), "%s%dJ", CSI, dir); in TEST_IMPL()
899 write_console(&tty_out, buffer); in TEST_IMPL()
918 char buffer[1024]; in TEST_IMPL() local
934 snprintf(buffer, sizeof(buffer), "%sK", CSI); in TEST_IMPL()
935 write_console(&tty_out, buffer); in TEST_IMPL()
946 snprintf(buffer, sizeof(buffer), "%s%dK", CSI, dir); in TEST_IMPL()
947 write_console(&tty_out, buffer); in TEST_IMPL()
959 snprintf(buffer, sizeof(buffer), "%s%dK", CSI, dir); in TEST_IMPL()
960 write_console(&tty_out, buffer); in TEST_IMPL()
972 snprintf(buffer, sizeof(buffer), "%s%dK", CSI, dir); in TEST_IMPL()
973 write_console(&tty_out, buffer); in TEST_IMPL()
991 char buffer[1024]; in TEST_IMPL() local
1001 snprintf(buffer, sizeof(buffer), "%s q", CSI); in TEST_IMPL()
1002 write_console(&tty_out, buffer); in TEST_IMPL()
1007 snprintf(buffer, sizeof(buffer), "%s1 q", CSI); in TEST_IMPL()
1008 write_console(&tty_out, buffer); in TEST_IMPL()
1011 snprintf(buffer, sizeof(buffer), "%s2 q", CSI); in TEST_IMPL()
1012 write_console(&tty_out, buffer); in TEST_IMPL()
1017 snprintf(buffer, sizeof(buffer), "%s3 q", CSI); in TEST_IMPL()
1018 write_console(&tty_out, buffer); in TEST_IMPL()
1021 snprintf(buffer, sizeof(buffer), "%s6 q", CSI); in TEST_IMPL()
1022 write_console(&tty_out, buffer); in TEST_IMPL()
1027 snprintf(buffer, sizeof(buffer), "%s7 q", CSI); in TEST_IMPL()
1028 write_console(&tty_out, buffer); in TEST_IMPL()
1032 snprintf(buffer, sizeof(buffer), "%s0 q", CSI); in TEST_IMPL()
1033 write_console(&tty_out, buffer); in TEST_IMPL()
1054 char buffer[1024]; in TEST_IMPL()
1098 buffer, sizeof(buffer), "%s%dm%s%sm", CSI, fg_attrs[i][0], HELLO, CSI); in TEST_IMPL()
1099 write_console(&tty_out, buffer); in TEST_IMPL()
1117 buffer, sizeof(buffer), "%s%dm%s%sm", CSI, bg_attrs[i][0], HELLO, CSI); in TEST_IMPL()
1118 write_console(&tty_out, buffer); in TEST_IMPL()
1137 snprintf(buffer, in TEST_IMPL()
1138 sizeof(buffer), in TEST_IMPL()
1145 write_console(&tty_out, buffer); in TEST_IMPL()
1164 snprintf(buffer, in TEST_IMPL()
1165 sizeof(buffer), in TEST_IMPL()
1177 write_console(&tty_out, buffer); in TEST_IMPL()
1192 snprintf(buffer, in TEST_IMPL()
1193 sizeof(buffer), in TEST_IMPL()
1200 write_console(&tty_out, buffer); in TEST_IMPL()
1222 snprintf(buffer, in TEST_IMPL()
1223 sizeof(buffer), in TEST_IMPL()
1231 write_console(&tty_out, buffer); in TEST_IMPL()
1250 char buffer[1024]; in TEST_IMPL() local
1263 snprintf(buffer, sizeof(buffer), "%ss", CSI); in TEST_IMPL()
1264 write_console(&tty_out, buffer); in TEST_IMPL()
1271 snprintf(buffer, sizeof(buffer), "%su", CSI); in TEST_IMPL()
1272 write_console(&tty_out, buffer); in TEST_IMPL()
1282 snprintf(buffer, sizeof(buffer), "%s7", ESC); in TEST_IMPL()
1283 write_console(&tty_out, buffer); in TEST_IMPL()
1290 snprintf(buffer, sizeof(buffer), "%s8", ESC); in TEST_IMPL()
1291 write_console(&tty_out, buffer); in TEST_IMPL()
1308 char buffer[1024]; in TEST_IMPL() local
1323 snprintf(buffer, sizeof(buffer), "%s%d;%dm%s", CSI, F_CYAN, B_YELLOW, HELLO); in TEST_IMPL()
1330 write_console(&tty_out, buffer); in TEST_IMPL()
1331 snprintf(buffer, sizeof(buffer), "%sc", ESC); in TEST_IMPL()
1332 write_console(&tty_out, buffer); in TEST_IMPL()
1357 char buffer[1024]; in TEST_IMPL()
1373 snprintf(buffer, sizeof(buffer), "%s@%s%s~%s", CSI, HELLO, CSI, HELLO); in TEST_IMPL()
1374 write_console(&tty_out, buffer); in TEST_IMPL()
1386 snprintf(buffer, sizeof(buffer), "\xC2\x9B@%s\xC2\x9B~%s", HELLO, HELLO); in TEST_IMPL()
1387 write_console(&tty_out, buffer); in TEST_IMPL()
1399 snprintf(buffer, sizeof(buffer), "%s @%s%s/~%s", CSI, HELLO, CSI, HELLO); in TEST_IMPL()
1400 write_console(&tty_out, buffer); in TEST_IMPL()
1409 snprintf(buffer, in TEST_IMPL()
1410 sizeof(buffer), in TEST_IMPL()
1423 write_console(&tty_out, buffer); in TEST_IMPL()
1435 snprintf(buffer, sizeof(buffer), "%s @%s%s/~%s", CSI, HELLO, CSI, HELLO); in TEST_IMPL()
1436 write_console(&tty_out, buffer); in TEST_IMPL()
1447 snprintf(buffer, sizeof(buffer), "%s]0;%s%s%s", ESC, HELLO, BEL, HELLO); in TEST_IMPL()
1448 write_console(&tty_out, buffer); in TEST_IMPL()
1457 snprintf(buffer, sizeof(buffer), "%sP$m%s%s", ESC, ST, HELLO); in TEST_IMPL()
1458 write_console(&tty_out, buffer); in TEST_IMPL()
1467 snprintf(buffer, in TEST_IMPL()
1468 sizeof(buffer), in TEST_IMPL()
1475 write_console(&tty_out, buffer); in TEST_IMPL()
1484 snprintf(buffer, in TEST_IMPL()
1485 sizeof(buffer), in TEST_IMPL()
1493 write_console(&tty_out, buffer); in TEST_IMPL()
1505 snprintf(buffer, in TEST_IMPL()
1506 sizeof(buffer), in TEST_IMPL()
1514 write_console(&tty_out, buffer); in TEST_IMPL()
1520 snprintf(buffer, sizeof(buffer), "%s1;%dH", CSI, UINT16_MAX + 1); in TEST_IMPL()
1521 write_console(&tty_out, buffer); in TEST_IMPL()
1532 snprintf(buffer, in TEST_IMPL()
1533 sizeof(buffer), in TEST_IMPL()
1543 write_console(&tty_out, buffer); in TEST_IMPL()
1549 snprintf(buffer, in TEST_IMPL()
1550 sizeof(buffer), in TEST_IMPL()
1555 write_console(&tty_out, buffer); in TEST_IMPL()
1563 snprintf(buffer, sizeof(buffer), "%s 1q", CSI); in TEST_IMPL()
1564 write_console(&tty_out, buffer); in TEST_IMPL()
1566 snprintf(buffer, sizeof(buffer), "%s 1 q", CSI); in TEST_IMPL()
1567 write_console(&tty_out, buffer); in TEST_IMPL()
1572 snprintf(buffer, sizeof(buffer), "%s??25l", CSI); in TEST_IMPL()
1573 write_console(&tty_out, buffer); in TEST_IMPL()
1575 snprintf(buffer, sizeof(buffer), "%s25?l", CSI); in TEST_IMPL()
1576 write_console(&tty_out, buffer); in TEST_IMPL()
1581 snprintf(buffer, in TEST_IMPL()
1582 sizeof(buffer), in TEST_IMPL()
1587 write_console(&tty_out, buffer); in TEST_IMPL()
1594 snprintf(buffer, sizeof(buffer), "%s25l", CSI); in TEST_IMPL()
1595 write_console(&tty_out, buffer); in TEST_IMPL()
1603 snprintf(buffer, sizeof(buffer), "%s?%dJ", CSI, dir); in TEST_IMPL()
1604 write_console(&tty_out, buffer); in TEST_IMPL()
1614 snprintf(buffer, sizeof(buffer), "%s[%s", CSI, HELLO); in TEST_IMPL()
1615 write_console(&tty_out, buffer); in TEST_IMPL()