[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ESC[4m does not produce underline OOPS



On Fri, Mar 01, 2013 at 11:46:42AM -0800, Thomas D. Dean wrote:
> On 03/01/13 11:35, Thomas D. Dean wrote:
> >The ANSI standard lists ESC[4m as the code to produce an underline
> >
> > > export TERM=ansi80x25
> > > printf "\033[4masdfasdfasdf"
> >
> >produces green text, not underline text as stated in the standard.
> >
> >If I put the same in c code, it works
> >
> >#include <stdio.h>
> >int main() {
> >fputs("\033[4masdfasdf",stdout);
> >return 0;
> >}
> >
> >I get underlined text.
> >
> 
> I ran the C example in an xterm on Ubuntu!
> 
> The question remains.
> 
> Why does this produce color rather than underlined text?
> 
> The standard says ESC[32m should produce green text and ESC[4m
> should produce underlined text.

It's normally about now that a Mr Thomas Dickey magically appears with
his wisdom, perhaps you could cc him (his address is on the net, but get
a more recent one, I don't think he uses his invisible island address
anymore, although I could be wrong.

-- 
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing." --- Malcolm X


Reply to: