src/nnn.c | 6 ++++++ diff --git a/src/nnn.c b/src/nnn.c index 89a23ef8c18aa7caf7d1e590087fe8d223e5ace5..61897858d2673346d1fa88a41871bac153214a69 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -7587,6 +7587,8 @@ } static void cleanup(void) { + printf("\033[23;0t"); /* reset terminal window title */ + fflush(stdout); free(selpath); free(plgpath); free(cfgpath); @@ -8000,6 +8002,10 @@ mkpath(cfgpath, ".history", g_buf); read_history(g_buf); } #endif + + /* Save terminal window title */ + printf("\033[22;0t"); + fflush(stdout); #ifndef NOMOUSE if (!initcurses(&mask))