From 50fbb0a778100c7e3a523e46b44ba3bf5048ad54 Mon Sep 17 00:00:00 2001 From: nick black Date: Wed, 24 Nov 2021 03:19:48 -0500 Subject: [PATCH] [cli2 PoC] strip trailing whitespace --- src/poc/cli2.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/poc/cli2.c b/src/poc/cli2.c index ee4681c74..ab0ced275 100644 --- a/src/poc/cli2.c +++ b/src/poc/cli2.c @@ -1,17 +1,17 @@ #include -int main(void){ - struct notcurses_options opts = { - .flags = NCOPTION_NO_ALTERNATE_SCREEN | - NCOPTION_PRESERVE_CURSOR | - NCOPTION_NO_CLEAR_BITMAPS | - NCOPTION_DRAIN_INPUT, - }; - struct notcurses* nc = notcurses_init(&opts, NULL); - if(nc == NULL){ - return EXIT_FAILURE; - } +int main(void){ + struct notcurses_options opts = { + .flags = NCOPTION_NO_ALTERNATE_SCREEN | + NCOPTION_PRESERVE_CURSOR | + NCOPTION_NO_CLEAR_BITMAPS | + NCOPTION_DRAIN_INPUT, + }; + struct notcurses* nc = notcurses_init(&opts, NULL); + if(nc == NULL){ + return EXIT_FAILURE; + } notcurses_render(nc); - notcurses_stop(nc); - return EXIT_SUCCESS; + notcurses_stop(nc); + return EXIT_SUCCESS; }