* main.c (update_xterm_title_path): Use is_printable().

This commit is contained in:
Pavel Roskin 2003-01-27 17:16:11 +00:00
parent a132b94cf9
commit a9440f0320
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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);