diff --git a/src/compat/compat.h b/src/compat/compat.h index ca7cdc482b..c9957b219e 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -31,6 +31,9 @@ extern "C" { #define SA_SIGINFO 0 #define SA_RESETHAND 0 #define SIGQUIT 0 +#define A_ITALIC 0 +#define A_BOLD 0 +#define A_UNDERLINE 0 #define sigdelset(x, y) #define sigaddset(x, y) typedef struct siginfo_t { diff --git a/src/lib/direct.c b/src/lib/direct.c index 3d758eefb2..d640c29803 100644 --- a/src/lib/direct.c +++ b/src/lib/direct.c @@ -862,15 +862,14 @@ ncdirect* ncdirect_core_init(const char* termtype, FILE* outfp, uint64_t flags){ ret->ctermfd = get_tty_fd(ret->ttyfp); // FIXME factor this out, and share it with rendered mode #ifndef __MINGW64__ - const char* shortname_term; int termerr; if(setupterm(termtype, ret->ctermfd, &termerr) != OK){ fprintf(stderr, "Terminfo error %d (see terminfo(3ncurses))\n", termerr); goto err; } - shortname_term = termname(); + const char* shortname_term = termname(); #else - shortname_term = "Windows Terminal"; + const char* shortname_term = "Windows Terminal"; #endif int cursor_y = -1; int cursor_x = -1;