aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.cpp
diff options
context:
space:
mode:
authorGravatar Emil Eriksson <asheidan@gmail.com>2012-06-21 13:48:48 +0200
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-06-21 10:30:12 -0700
commiteea62125a14164f29f2b1daff8a049582745ac48 (patch)
treed2840df8427712e6b0e524670ce61c78140f7d95 /reader.cpp
parent96f36a63dc96011f25fda76019859a5a39867a9f (diff)
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.
Diffstat (limited to 'reader.cpp')
-rw-r--r--reader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/reader.cpp b/reader.cpp
index 42ae64af..9725f467 100644
--- a/reader.cpp
+++ b/reader.cpp
@@ -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() );