Lines Matching refs:cursor_pos
380 COORD cursor_pos, cursor_pos_old; in TEST_IMPL() local
396 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
397 ASSERT_EQ(cursor_pos_old.Y - 1, cursor_pos.Y); in TEST_IMPL()
398 ASSERT_EQ(cursor_pos_old.X, cursor_pos.X); in TEST_IMPL()
401 cursor_pos_old = cursor_pos; in TEST_IMPL()
404 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
405 ASSERT_EQ(cursor_pos_old.Y - si.height / 4, cursor_pos.Y); in TEST_IMPL()
406 ASSERT_EQ(cursor_pos_old.X, cursor_pos.X); in TEST_IMPL()
414 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
415 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
416 ASSERT_EQ(cursor_pos_old.X, cursor_pos.X); in TEST_IMPL()
431 COORD cursor_pos, cursor_pos_old; in TEST_IMPL() local
447 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
448 ASSERT_EQ(cursor_pos_old.Y + 1, cursor_pos.Y); in TEST_IMPL()
449 ASSERT_EQ(cursor_pos_old.X, cursor_pos.X); in TEST_IMPL()
452 cursor_pos_old = cursor_pos; in TEST_IMPL()
455 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
456 ASSERT_EQ(cursor_pos_old.Y + si.height / 4, cursor_pos.Y); in TEST_IMPL()
457 ASSERT_EQ(cursor_pos_old.X, cursor_pos.X); in TEST_IMPL()
465 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
466 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
467 ASSERT_EQ(cursor_pos_old.X, cursor_pos.X); in TEST_IMPL()
482 COORD cursor_pos, cursor_pos_old; in TEST_IMPL() local
498 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
499 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
500 ASSERT_EQ(cursor_pos_old.X + 1, cursor_pos.X); in TEST_IMPL()
503 cursor_pos_old = cursor_pos; in TEST_IMPL()
506 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
507 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
508 ASSERT_EQ(cursor_pos_old.X + si.width / 4, cursor_pos.X); in TEST_IMPL()
516 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
517 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
518 ASSERT_EQ(cursor_pos_old.X, cursor_pos.X); in TEST_IMPL()
526 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
527 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
528 ASSERT_EQ(cursor_pos_old.X, cursor_pos.X); in TEST_IMPL()
543 COORD cursor_pos, cursor_pos_old; in TEST_IMPL() local
559 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
560 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
561 ASSERT_EQ(cursor_pos_old.X - 1, cursor_pos.X); in TEST_IMPL()
564 cursor_pos_old = cursor_pos; in TEST_IMPL()
567 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
568 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
569 ASSERT_EQ(cursor_pos_old.X - si.width / 4, cursor_pos.X); in TEST_IMPL()
577 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
578 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
579 ASSERT_EQ(cursor_pos_old.X, cursor_pos.X); in TEST_IMPL()
587 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
588 ASSERT_EQ(1, cursor_pos.Y); in TEST_IMPL()
589 ASSERT_EQ(1, cursor_pos.X); in TEST_IMPL()
604 COORD cursor_pos, cursor_pos_old; in TEST_IMPL() local
620 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
621 ASSERT_EQ(cursor_pos_old.Y + 1, cursor_pos.Y); in TEST_IMPL()
622 ASSERT_EQ(1, cursor_pos.X); in TEST_IMPL()
625 cursor_pos_old = cursor_pos; in TEST_IMPL()
628 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
629 ASSERT_EQ(cursor_pos_old.Y + si.height / 4, cursor_pos.Y); in TEST_IMPL()
630 ASSERT_EQ(1, cursor_pos.X); in TEST_IMPL()
638 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
639 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
640 ASSERT_EQ(1, cursor_pos.X); in TEST_IMPL()
655 COORD cursor_pos, cursor_pos_old; in TEST_IMPL() local
671 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
672 ASSERT_EQ(cursor_pos_old.Y - 1, cursor_pos.Y); in TEST_IMPL()
673 ASSERT_EQ(1, cursor_pos.X); in TEST_IMPL()
676 cursor_pos_old = cursor_pos; in TEST_IMPL()
679 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
680 ASSERT_EQ(cursor_pos_old.Y - si.height / 4, cursor_pos.Y); in TEST_IMPL()
681 ASSERT_EQ(1, cursor_pos.X); in TEST_IMPL()
689 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
690 ASSERT_EQ(1, cursor_pos.Y); in TEST_IMPL()
691 ASSERT_EQ(1, cursor_pos.X); in TEST_IMPL()
706 COORD cursor_pos, cursor_pos_old; in TEST_IMPL() local
722 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
723 ASSERT_EQ(1, cursor_pos.X); in TEST_IMPL()
724 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
729 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
730 ASSERT_EQ(si.width / 4, cursor_pos.X); in TEST_IMPL()
731 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
736 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
737 ASSERT_EQ(si.width, cursor_pos.X); in TEST_IMPL()
738 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
752 COORD cursor_pos; in TEST_IMPL() local
761 cursor_pos.X = si.width / 2; in TEST_IMPL()
762 cursor_pos.Y = si.height / 2; in TEST_IMPL()
763 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
768 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
769 ASSERT_EQ(1, cursor_pos.X); in TEST_IMPL()
770 ASSERT_EQ(1, cursor_pos.Y); in TEST_IMPL()
776 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
777 ASSERT_EQ(si.width / 2, cursor_pos.X); in TEST_IMPL()
778 ASSERT_EQ(si.height / 2, cursor_pos.Y); in TEST_IMPL()
784 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
785 ASSERT_EQ(si.width, cursor_pos.X); in TEST_IMPL()
786 ASSERT_EQ(si.height / 2, cursor_pos.Y); in TEST_IMPL()
791 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
792 ASSERT_EQ(si.width / 2, cursor_pos.X); in TEST_IMPL()
793 ASSERT_EQ(si.height, cursor_pos.Y); in TEST_IMPL()
843 COORD cursor_pos; in TEST_IMPL() local
855 cursor_pos.X = expect.si.width / 2; in TEST_IMPL()
856 cursor_pos.Y = expect.si.height / 2; in TEST_IMPL()
857 make_expect_screen_erase(&expect, cursor_pos, dir, TRUE); in TEST_IMPL()
859 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
869 make_expect_screen_erase(&expect, cursor_pos, dir, TRUE); in TEST_IMPL()
871 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
882 make_expect_screen_erase(&expect, cursor_pos, dir, TRUE); in TEST_IMPL()
884 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
895 make_expect_screen_erase(&expect, cursor_pos, dir, TRUE); in TEST_IMPL()
897 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
917 COORD cursor_pos; in TEST_IMPL() local
929 cursor_pos.X = expect.si.width / 2; in TEST_IMPL()
930 cursor_pos.Y = expect.si.height / 2; in TEST_IMPL()
931 make_expect_screen_erase(&expect, cursor_pos, dir, FALSE); in TEST_IMPL()
933 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
943 make_expect_screen_erase(&expect, cursor_pos, dir, FALSE); in TEST_IMPL()
945 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
956 make_expect_screen_erase(&expect, cursor_pos, dir, FALSE); in TEST_IMPL()
958 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
969 make_expect_screen_erase(&expect, cursor_pos, dir, FALSE); in TEST_IMPL()
971 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1053 COORD cursor_pos; in TEST_IMPL()
1090 cursor_pos.X = expect.si.width / 2; in TEST_IMPL()
1091 cursor_pos.Y = expect.si.height / 2; in TEST_IMPL()
1093 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1094 make_expect_screen_set_attr(&expect, cursor_pos, strlen(HELLO), attr); in TEST_IMPL()
1096 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1109 cursor_pos.X = expect.si.width / 2; in TEST_IMPL()
1110 cursor_pos.Y = expect.si.height / 2; in TEST_IMPL()
1112 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1113 make_expect_screen_set_attr(&expect, cursor_pos, strlen(HELLO), attr); in TEST_IMPL()
1115 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1129 cursor_pos.X = expect.si.width / 2; in TEST_IMPL()
1130 cursor_pos.Y = expect.si.height / 2; in TEST_IMPL()
1133 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1134 make_expect_screen_set_attr(&expect, cursor_pos, strlen(HELLO), attr); in TEST_IMPL()
1136 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1153 cursor_pos.X = expect.si.width / 2; in TEST_IMPL()
1154 cursor_pos.Y = expect.si.height / 2; in TEST_IMPL()
1155 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1158 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1159 make_expect_screen_set_attr(&expect, cursor_pos, strlen(HELLO), attr); in TEST_IMPL()
1160 cursor_pos.X += strlen(HELLO); in TEST_IMPL()
1161 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1162 make_expect_screen_set_attr(&expect, cursor_pos, strlen(HELLO), attr); in TEST_IMPL()
1184 cursor_pos.X = expect.si.width / 2; in TEST_IMPL()
1185 cursor_pos.Y = expect.si.height / 2; in TEST_IMPL()
1186 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1189 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1190 make_expect_screen_set_attr(&expect, cursor_pos, strlen(HELLO), attr); in TEST_IMPL()
1207 cursor_pos.X = expect.si.width / 2; in TEST_IMPL()
1208 cursor_pos.Y = expect.si.height / 2; in TEST_IMPL()
1209 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1217 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1218 make_expect_screen_set_attr(&expect, cursor_pos, strlen(HELLO), attr); in TEST_IMPL()
1219 cursor_pos.X += strlen(HELLO); in TEST_IMPL()
1220 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1249 COORD cursor_pos, cursor_pos_old; in TEST_IMPL() local
1266 cursor_pos.X = si.width / 4; in TEST_IMPL()
1267 cursor_pos.Y = si.height / 4; in TEST_IMPL()
1268 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1273 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
1274 ASSERT_EQ(cursor_pos.X, cursor_pos_old.X); in TEST_IMPL()
1275 ASSERT_EQ(cursor_pos.Y, cursor_pos_old.Y); in TEST_IMPL()
1285 cursor_pos.X = si.width / 4; in TEST_IMPL()
1286 cursor_pos.Y = si.height / 4; in TEST_IMPL()
1287 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1292 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
1293 ASSERT_EQ(cursor_pos.X, cursor_pos_old.X); in TEST_IMPL()
1294 ASSERT_EQ(cursor_pos.Y, cursor_pos_old.Y); in TEST_IMPL()
1310 COORD cursor_pos; in TEST_IMPL() local
1320 cursor_pos.X = expect.si.width; in TEST_IMPL()
1321 cursor_pos.Y = expect.si.height; in TEST_IMPL()
1322 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1355 COORD cursor_pos, cursor_pos_old; in TEST_IMPL()
1366 cursor_pos.X = 1; in TEST_IMPL()
1367 cursor_pos.Y = 1; in TEST_IMPL()
1368 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1370 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1371 cursor_pos.X += strlen(HELLO); in TEST_IMPL()
1372 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1379 cursor_pos.X = 1; in TEST_IMPL()
1380 cursor_pos.Y = 1; in TEST_IMPL()
1381 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1383 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1384 cursor_pos.X += strlen(HELLO); in TEST_IMPL()
1385 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1392 cursor_pos.X = 1; in TEST_IMPL()
1393 cursor_pos.Y = 1; in TEST_IMPL()
1394 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1396 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1397 cursor_pos.X += strlen(HELLO); in TEST_IMPL()
1398 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1405 cursor_pos.X = 1; in TEST_IMPL()
1406 cursor_pos.Y = 1; in TEST_IMPL()
1407 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1418 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1419 cursor_pos.X += strlen(HELLO); in TEST_IMPL()
1420 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1421 cursor_pos.X += strlen(HELLO); in TEST_IMPL()
1422 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1428 cursor_pos.X = 1; in TEST_IMPL()
1429 cursor_pos.Y = 1; in TEST_IMPL()
1430 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1432 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1433 cursor_pos.X += strlen(HELLO); in TEST_IMPL()
1434 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1442 cursor_pos.X = 1; in TEST_IMPL()
1443 cursor_pos.Y = 1; in TEST_IMPL()
1444 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1446 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1452 cursor_pos.X = 1; in TEST_IMPL()
1453 cursor_pos.Y = 1; in TEST_IMPL()
1454 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1456 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1462 cursor_pos.X = 1; in TEST_IMPL()
1463 cursor_pos.Y = 1; in TEST_IMPL()
1464 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1466 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1479 cursor_pos.X = 1; in TEST_IMPL()
1480 cursor_pos.Y = 1; in TEST_IMPL()
1481 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1483 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1498 cursor_pos.X = 1; in TEST_IMPL()
1499 cursor_pos.Y = 1; in TEST_IMPL()
1500 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1502 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1503 cursor_pos.X += strlen(HELLO); in TEST_IMPL()
1504 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1522 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
1523 ASSERT_EQ(1, cursor_pos.X); in TEST_IMPL()
1524 ASSERT_EQ(1, cursor_pos.Y); in TEST_IMPL()
1527 cursor_pos.X = 1; in TEST_IMPL()
1528 cursor_pos.Y = 1; in TEST_IMPL()
1529 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1531 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()
1556 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
1557 ASSERT_EQ(1, cursor_pos.X); in TEST_IMPL()
1558 ASSERT_EQ(1, cursor_pos.Y); in TEST_IMPL()
1588 get_cursor_position(&tty_out, &cursor_pos); in TEST_IMPL()
1589 ASSERT(cursor_pos.X = cursor_pos_old.X); in TEST_IMPL()
1590 ASSERT(cursor_pos.Y = cursor_pos_old.Y); in TEST_IMPL()
1602 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1609 cursor_pos.X = expect.si.width / 2; in TEST_IMPL()
1610 cursor_pos.Y = expect.si.height / 2; in TEST_IMPL()
1611 set_cursor_position(&tty_out, cursor_pos); in TEST_IMPL()
1613 make_expect_screen_write(&expect, cursor_pos, HELLO); in TEST_IMPL()