mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
windows terminal: disable quads/braille
This commit is contained in:
parent
adbc26dd9b
commit
e5207c78c2
@ -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;
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user