From 284bbd4723e140d27db5c27f21d0562169193c27 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 3 Oct 2021 21:35:41 -0400 Subject: [PATCH] notcurses-tester: print TERM earlier #2228 --- src/tests/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/main.cpp b/src/tests/main.cpp index 693e8cf91..14b795f9e 100644 --- a/src/tests/main.cpp +++ b/src/tests/main.cpp @@ -134,14 +134,14 @@ auto lang_and_term() -> void { std::cerr << "TERM wasn't defined, exiting with success" << std::endl; exit(EXIT_SUCCESS); } + std::cout << "Running with TERM=" << term << " (" << dimx << 'x' + << dimy << ")" << std::endl; auto nc = testing_notcurses(); if(!nc){ exit(EXIT_FAILURE); } int dimy, dimx; notcurses_stddim_yx(nc, &dimy, &dimx); - std::cout << "Running with TERM=" << term << " (" << dimx << 'x' - << dimy << ")" << std::endl; notcurses_stop(nc); if(dimx < 50 || dimy < 24){ // minimum assumed geometry std::cerr << "Terminal was too small for tests (minimum 50x24)" << std::endl;