windows terminal: disable quads/braille

This commit is contained in:
nick black 2021-08-26 06:50:59 -04:00
parent adbc26dd9b
commit e5207c78c2
2 changed files with 4 additions and 4 deletions

View File

@ -675,10 +675,12 @@ int interrogate_terminfo(tinfo* ti, const char* termtype, FILE* out, unsigned ut
#ifdef __APPLE__ #ifdef __APPLE__
ti->qterm = macos_early_matches(); ti->qterm = macos_early_matches();
#elif defined(__MINGW64__) #elif defined(__MINGW64__)
if(termtype){
logwarn("termtype (%s) ignored on windows\n", termtype);
}
if(prepare_windows_terminal(ti, &tablelen, &tableused) == 0){ if(prepare_windows_terminal(ti, &tablelen, &tableused) == 0){
ti->qterm = TERMINAL_MSTERMINAL; ti->qterm = TERMINAL_MSTERMINAL;
} }
(void)termtype;
#elif defined(__linux__) #elif defined(__linux__)
ti->linux_fb_fd = -1; ti->linux_fb_fd = -1;
ti->linux_fbuffer = MAP_FAILED; ti->linux_fbuffer = MAP_FAILED;

View File

@ -84,10 +84,8 @@ int prepare_windows_terminal(tinfo* ti, size_t* tablelen, size_t* tableused){
logerror("couldn't set output console mode\n"); logerror("couldn't set output console mode\n");
return -1; return -1;
} }
ti->caps.quadrants = true;
ti->caps.braille = true;
ti->termname = "Windows Terminal"; ti->termname = "Windows Terminal";
loginfo("prepared Windows Terminal\n"); loginfo("verified Windows Terminal\n");
return 0; return 0;
} }
#endif #endif