Enable window title update when TERM is screen-X

* Uses the same logic as when TERM is
	  xterm-X to enable window-title updates when
	  running in screen.
This commit is contained in:
Emil Eriksson 2012-06-20 13:55:28 +02:00 committed by ridiculousfish
parent 19e183f02f
commit 96f36a63dc

View file

@ -578,6 +578,7 @@ void reader_write_title()
bool recognized = false;
recognized = recognized || contains( term, L"xterm", L"screen", L"nxterm", L"rxvt" );
recognized = recognized || ! wcsncmp(term, L"xterm-", wcslen(L"xterm-"));
recognized = recognized || ! wcsncmp(term, L"screen-", wcslen(L"screen-"));
if( ! recognized )
{