mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Save/load the terminal window title using xterm esc sequences
This commit is contained in:
parent
f176d81ea0
commit
5bba7b45fa
|
@ -7587,6 +7587,8 @@ static bool set_tmp_path(void)
|
||||||
|
|
||||||
static void cleanup(void)
|
static void cleanup(void)
|
||||||
{
|
{
|
||||||
|
printf("\033[23;0t"); /* reset terminal window title */
|
||||||
|
fflush(stdout);
|
||||||
free(selpath);
|
free(selpath);
|
||||||
free(plgpath);
|
free(plgpath);
|
||||||
free(cfgpath);
|
free(cfgpath);
|
||||||
|
@ -8001,6 +8003,10 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Save terminal window title */
|
||||||
|
printf("\033[22;0t");
|
||||||
|
fflush(stdout);
|
||||||
|
|
||||||
#ifndef NOMOUSE
|
#ifndef NOMOUSE
|
||||||
if (!initcurses(&mask))
|
if (!initcurses(&mask))
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue