mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-10-31 15:20:13 +00:00
add a 1x1 run to widestomp PoC
This commit is contained in:
parent
0999e0ad3b
commit
1c188508d4
@ -49,6 +49,7 @@ auto main() -> int {
|
|||||||
NotCurses nc(nopts);
|
NotCurses nc(nopts);
|
||||||
std::shared_ptr<Plane> n(nc.get_stdplane());
|
std::shared_ptr<Plane> n(nc.get_stdplane());
|
||||||
|
|
||||||
|
{
|
||||||
// first, a 2x1 with "AB"
|
// first, a 2x1 with "AB"
|
||||||
auto nn = std::make_shared<Plane>(1, 2, 1, 16);
|
auto nn = std::make_shared<Plane>(1, 2, 1, 16);
|
||||||
nn->set_fg_rgb8(0xc0, 0x80, 0xc0);
|
nn->set_fg_rgb8(0xc0, 0x80, 0xc0);
|
||||||
@ -79,6 +80,13 @@ auto main() -> int {
|
|||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
stomper(nc, nn);
|
stomper(nc, nn);
|
||||||
|
}
|
||||||
|
|
||||||
|
// now a 1x1 "*"
|
||||||
|
auto nn = std::make_shared<Plane>(1, 1, 1, 16);
|
||||||
|
if(nn->putstr(0, 0, "r") <= 0){
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
stomper(nc, nn);
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user