URI: 
       tadd one printansi function for printing ANSI codes or not - webdump - [FORK] git://git.codemadness.org/webdump
  HTML git clone git://git.z3bra.org/webdump.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 0b1fba4c2076d4f687ad03f7c6eb202acfece173
   DIR parent d6a93314849f631b92ff6023e6e3bd0c2e7ca1ce
  HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Fri, 22 Nov 2019 13:11:05 +0100
       
       add one printansi function for printing ANSI codes or not
       
       Diffstat:
         M webdump.c                           |      10 +++++++++-
       
       1 file changed, 9 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/webdump.c b/webdump.c
       t@@ -32,7 +32,7 @@ struct uri {
        };
        
        /* options */
       -static int allowesc     = 1;  /* alloc ANSI escape codes */
       +static int allowansi    = 1;  /* allow ANSI escape codes */
        static int showlinkrefs = 0;  /* show link references at the bottom */
        static int softlinewrap = 0;  /* soft line-wrapping */
        static int termwidth    = 72; /* terminal width */
       t@@ -246,6 +246,14 @@ newline(void)
                ncharsline = 0;
        }
        
       +static void
       +printansi(const char *s)
       +{
       +        if (!allowansi)
       +                return;
       +        fputs(s, stdout);
       +}
       +
        /* print one character safely: no control characters */
        static void
        printc(int c)