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