(update_xterm_title_path): change the escape sequence's terminator

...from \a to \e\\. Various standards (at least ECMA-48 and DEC STD 070)
agree that an OSC is to be terminated by an ST, i.e. \e\\. Using BEL \a
is a nonstandard solution introduced and popularized by xterm.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Egmont Koblinger 2024-02-04 19:59:18 +03:00 committed by Andrew Borodin
parent 5e9fac5c94
commit e777f75397
1 changed files with 1 additions and 1 deletions

View File

@ -1568,7 +1568,7 @@ update_xterm_title_path (void)
g_free (login); g_free (login);
g_free (path); g_free (path);
fprintf (stdout, "\33]0;%s\7", str_term_form (p)); fprintf (stdout, "\33]0;%s\33\\", str_term_form (p));
g_free (p); g_free (p);
if (!mc_global.tty.alternate_plus_minus) if (!mc_global.tty.alternate_plus_minus)