Ticket #1668: viewer-printable_only.patch

File viewer-printable_only.patch, 478 bytes (added by gotar, 14 years ago)
  • src/tty/tty-slang.c

    diff -urNp mc-4.7.0-pre4.orig/src/tty/tty-slang.c mc-4.7.0-pre4/src/tty/tty-slang.c
    old new tty_print_anychar (int c) 
    565565        } 
    566566        SLsmg_write_string ((char *) str_term_form (str)); 
    567567    } else { 
     568        if (!is_printable (c)) 
     569                c = '.'; 
    568570        SLsmg_write_char ((SLwchar_Type) ((unsigned int) c)); 
    569571    } 
    570572}