Allow changing tab title through escape sequence

Users can now change the tab title through "\e]30;Tab Title\a" .

This is a feature previously available in KDE3 konsole.

FEATURE: 179142
FIXED-IN: 4.9.0

REVIEW: 103862
wilder-portage
Jekyll Wu 14 years ago
parent 84542d294d
commit 363a270177
  1. 7
      src/Session.cpp

@ -510,9 +510,10 @@ void Session::setUserTitle(int what, const QString& caption)
}
if (what == SessionName) {
if (_nameTitle != caption) {
setTitle(Session::NameRole, caption);
return;
if (_localTabTitleFormat != caption) {
_localTabTitleFormat = caption;
setTitle(Session::DisplayedTitleRole, caption);
modified = true;
}
}

Loading…
Cancel
Save