Don't touch window title before an OSC is received.

Fixes the "window title being clobbered" issue raised in issue 137.

Signed-off-by: sqweek <sqweek@gmail.com>

Closes #380. Closes #137.
This commit is contained in:
sqweek
2013-01-18 21:50:43 +08:00
committed by Keith Winstein
parent 13a16332d4
commit 5af90cc1ac
4 changed files with 6 additions and 2 deletions
+3
View File
@@ -248,6 +248,7 @@ namespace Terminal {
std::deque<wchar_t> icon_name;
std::deque<wchar_t> window_title;
unsigned int bell_count;
bool title_initialized; /* true if the window title has been set via an OSC */
Row newrow( void ) { return Row( ds.get_width(), ds.get_background_rendition() ); }
@@ -311,6 +312,8 @@ namespace Terminal {
void reset( void );
void soft_reset( void );
void set_title_initialized( void ) { title_initialized = true; }
bool is_title_initialized( void ) const { return title_initialized; }
void set_icon_name( const std::deque<wchar_t> &s ) { icon_name = s; }
void set_window_title( const std::deque<wchar_t> &s ) { window_title = s; }
const std::deque<wchar_t> & get_icon_name( void ) const { return icon_name; }