Fixes title update in tmux and screen

* Seems that writestr( L"\x1b];" ); doesn't work in tmux and
	  screen. As discussed in fish-shell/fish-shell#47 the 2 was
	  removed. This commit adds the zero (L"\x1b]0;").
	* Tested in screen,tmux,iTerm and xterm.
This commit is contained in:
Emil Eriksson 2012-06-21 13:48:48 +02:00 committed by ridiculousfish
parent 96f36a63dc
commit eea62125a1

View file

@ -609,7 +609,7 @@ void reader_write_title()
size_t i;
if( lst.size() > 0 )
{
writestr( L"\x1b];" );
writestr( L"\x1b]0;" );
for( i=0; i<lst.size(); i++ )
{
writestr( lst.at(i).c_str() );