reader.cpp: don't set title in dumb terminals

Closes #1907.
This commit is contained in:
David Adam 2015-02-02 10:11:55 +08:00
parent 597dda5a4b
commit 981a71555f

View file

@ -943,6 +943,9 @@ void reader_write_title(const wcstring &cmd)
return; return;
} }
if (contains(term, L"dumb"))
return;
if (strstr(n, "tty") || strstr(n, "/vc/")) if (strstr(n, "tty") || strstr(n, "/vc/"))
return; return;
} }