1 /* vi: set sw=4 ts=4: */
5 * Copyright (C) 2007 Denys Vlasenko
7 * Licensed under GPLv2, see file LICENSE in this source tree.
12 void FAST_FUNC fputc_printable(int ch, FILE *file)
14 if ((ch & (0x80 + PRINTABLE_META)) == (0x80 + PRINTABLE_META)) {
18 ch = (unsigned char) ch;
20 /* VT100's CSI, aka Meta-ESC, is not printable on vt-100 */
36 void FAST_FUNC visible(unsigned ch, char *buf, int flags)
38 if (ch == '\t' && !(flags & VISIBLE_SHOW_TABS)) {
42 if (flags & VISIBLE_ENDLINE)
50 if (ch < 32 || ch == 127) {