mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
* main.c (update_xterm_title_path): Use is_printable().
This commit is contained in:
parent
a132b94cf9
commit
a9440f0320
@ -1,3 +1,7 @@
|
|||||||
|
2003-01-27 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* main.c (update_xterm_title_path): Use is_printable().
|
||||||
|
|
||||||
2003-01-24 Pavel Roskin <proski@gnu.org>
|
2003-01-24 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* slint.c (slang_reset_softkeys): Cast arguments from size_t to
|
* slint.c (slang_reset_softkeys): Cast arguments from size_t to
|
||||||
|
@ -1844,7 +1844,7 @@ update_xterm_title_path (void)
|
|||||||
if (xterm_flag && xterm_title) {
|
if (xterm_flag && xterm_title) {
|
||||||
p = s = g_strdup (strip_home_and_password (cpanel->cwd));
|
p = s = g_strdup (strip_home_and_password (cpanel->cwd));
|
||||||
do {
|
do {
|
||||||
if (*s <= 32)
|
if (!is_printable (*s))
|
||||||
*s = '?';
|
*s = '?';
|
||||||
} while (*++s);
|
} while (*++s);
|
||||||
fprintf (stdout, "\33]0;mc - %s\7", p);
|
fprintf (stdout, "\33]0;mc - %s\7", p);
|
||||||
|
Loading…
Reference in New Issue
Block a user