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 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20130302110421.GD9278@tal