From 9ef1653e73d26c489aacc873f8f5c7c461fced7b Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Fri, 16 Nov 2018 15:26:33 +0100 Subject: [PATCH] Use inverse instead of fat for hex byte output because not all terminals support fat off --- src/StreamBuffer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/StreamBuffer.cc b/src/StreamBuffer.cc index b9f0ac8..05c59e2 100644 --- a/src/StreamBuffer.cc +++ b/src/StreamBuffer.cc @@ -63,7 +63,7 @@ static STATUS outRoutine(char *buffer, int nchars, int outarg) { int vsnprintf(char *str, size_t size, const char *format, va_list ap) { struct outStr_s outStr; - + outStr.str = str; outStr.free = size; return fioFormatV(format, ap, (FUNCPTR)outRoutine, (int)&outStr); @@ -338,7 +338,7 @@ StreamBuffer StreamBuffer::expand(ssize_t start, ssize_t length) const { c = buffer[i]; if (c < 0x20 || c >= 0x7f) - result.print("\033[1m<%02x>\033[22m", c & 0xff); + result.print("\033[7m<%02x>\033[27m", c & 0xff); else result.append(c); } @@ -358,7 +358,7 @@ dump() const c = buffer[i]; if (offs && i == offs) result.append("\033[0m"); if (c < 0x20 || c >= 0x7f) - result.print("\033[1m<%02x>\033[22m", c & 0xff); + result.print("\033[7m<%02x>\033[27m", c & 0xff); else result.append(c); if (i == offs+len-1) result.append("\033[47m");