Don't set the title on NetBSD's wscon

We might want to check the terminfo "XT" capability here, but for now
let's do the quick fix.
This commit is contained in:
Fabian Homborg
2018-12-12 13:10:34 +01:00
parent b77a909a4f
commit e9ad88d4b0

View File

@@ -433,6 +433,9 @@ static bool does_term_support_setting_title() {
if (!recognized) {
if (wcscmp(term, L"linux") == 0) return false;
if (wcscmp(term, L"dumb") == 0) return false;
// NetBSD
if (wcscmp(term, L"vt100") == 0) return false;
if (wcscmp(term, L"wsvt25") == 0) return false;
char buf[PATH_MAX];
int retval = ttyname_r(STDIN_FILENO, buf, PATH_MAX);