diff options
| author | Maxime Coste <mawww@kakoune.org> | 2021-07-07 19:16:07 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2021-07-07 19:16:07 +1000 |
| commit | 0c92ec8a237c339e7be657e7af7f3f401e1ad8b4 (patch) | |
| tree | 591dc9679ebb1095762085ad554040a32d4b19ca /src | |
| parent | 699050d2d60cdb507195e87d059a49ce1d3322c0 (diff) | |
| parent | 7c48a72e11fe995d470772423c029dd2efa6b193 (diff) | |
Merge remote-tracking branch 'Screwtapello/save-restore-window-title'
Diffstat (limited to 'src')
| -rw-r--r-- | src/ncurses_ui.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index f9938632..0f865970 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -419,6 +419,8 @@ void NCursesUI::set_terminal_mode() const fputs("\033[?1004h", stdout); // request CSI u style key reporting fputs("\033[>4;1m", stdout); + // save the current window title + fputs("\033[22t", stdout); fflush(stdout); } @@ -428,6 +430,7 @@ void NCursesUI::restore_terminal_mode() const fputs("\033>", stdout); fputs("\033[?1004l", stdout); fputs("\033[>4;0m", stdout); + fputs("\033[23t", stdout); fflush(stdout); } |
