PlaneAtCursorAttrs: home cursor #1197

pull/1190/head
nick black 4 years ago
parent 1c673a57af
commit 4a7353c1ec
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -17,8 +17,7 @@ static const char* datadir = NOTCURSES_SHARE;
auto testing_notcurses() -> struct notcurses* {
notcurses_options nopts{};
nopts.loglevel = NCLOGLEVEL_VERBOSE;
nopts.flags = NCOPTION_SUPPRESS_BANNERS
| NCOPTION_INHIBIT_SETLOCALE;
nopts.flags = NCOPTION_SUPPRESS_BANNERS | NCOPTION_INHIBIT_SETLOCALE;
auto nc = notcurses_init(&nopts, nullptr);
return nc;
}

@ -622,7 +622,7 @@ TEST_CASE("NCPlane") {
const char STR2[] = "not to mention dank";
const char STR3[] = "da chronic lives";
ncplane_set_styles(n_, NCSTYLE_BOLD);
REQUIRE(0 < ncplane_putstr(n_, STR1));
REQUIRE(0 < ncplane_putstr_yx(n_, 0, 0, STR1));
int y, x;
ncplane_cursor_yx(n_, &y, &x);
CHECK(0 == ncplane_cursor_move_yx(n_, y + 1, x - strlen(STR2)));

Loading…
Cancel
Save