@@ -271,11 +271,11 @@ # define par(s) "<\x1b[4m" s "\x1b[24m>" # define lit(l) "\x1b[3m" l "\x1b[23m" # define box(s) "\x1b[94m[\x1b[93m" s "\x1b[94m]\x1b[m" const pstr forms[] = { - p(box(box("options") " " par("in:spec")) " " par("value:int") plus " " + p(box("options") " " box(par("in:spec")) " " par("value:int") plus " " box(lit("to") " " box(par("out:spec")))), - p(box(box("options") " " par("in:spec")) " " box(lit("to") " " box(par("out:spec"))) + p(box("options") " " box(par("in:spec")) " " box(lit("to") " " box(par("out:spec"))) " " lit("--") " " par("value:int") plus), }, specs[] = { p(box(lit("bin") OR lit("tern") OR lit("oct") OR lit("dec") OR lit("hex") OR @@ -295,10 +295,10 @@ # undef p # undef OR # undef plus -# define hl_on "\x1b[1m" -# define hl_off "\x1b[21m" +# define hl_on "\x1b[;1m" +# define hl_off "\x1b[m" enum { ansilen = sizeof (hl_on hl_off) }; # define hl(x) (hl_on x hl_off) const char form_head []= hl("usage: "); const char spec_head []= hl("- spec: ");