Re: ESC[4m does not produce underline OOPS

2013-03-02 Thread Chris Bannister
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



Re: ESC[4m does not produce underline OOPS

2013-03-01 Thread Thomas D. Dean

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.


Tom Dean


--
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/513105a2.8000...@speakeasy.org



Re: ESC[4m does not produce underline OOPS

2013-03-01 Thread Richard Hector
On 02/03/13 08:46, 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.

Are you doing this on a (colour) linux console, rather than an xterm?
Apparently it can't do underline, and simulates it with a different
colour instead. See 'man console_codes', or here:
https://www.kernel.org/doc/man-pages/online/page/man4/console_codes.4.html

I don't think setting TERM will make any difference; it's your program
that has to interpret that (usually via terminfo and associated
libraries) and send the correct escape sequences - but you're sending
them yourself anyway.

Richard


-- 
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/5131398c.9090...@walnut.gen.nz



Re: ESC[4m does not produce underline OOPS

2013-03-01 Thread Hugo Vanwoerkom

Richard Hector wrote:

On 02/03/13 08:46, 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.


Are you doing this on a (colour) linux console, rather than an xterm?
Apparently it can't do underline, and simulates it with a different
colour instead. See 'man console_codes', or here:
https://www.kernel.org/doc/man-pages/online/page/man4/console_codes.4.html


404 File not found.

Hugo



I don't think setting TERM will make any difference; it's your program
that has to interpret that (usually via terminfo and associated
libraries) and send the correct escape sequences - but you're sending
them yourself anyway.



--
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/kgrhfg$ols$1...@ger.gmane.org



Re: ESC[4m does not produce underline OOPS

2013-03-01 Thread Glenn English

On Mar 1, 2013, at 5:34 PM, Hugo Vanwoerkom wrote:

 404 File not found.

Google 'console_codes(4) - Linux manual page'.

-- 
Glenn English





-- 
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/7ff07ec2-5efb-434b-bf3e-5f425256c...@slsware.com



Re: ESC[4m does not produce underline OOPS

2013-03-01 Thread Thomas D. Dean

On 03/01/13 16:56, Glenn English wrote:

The linux console is a HDMI display attached to a RaspberryPi.

I changed to ncurses5.  Looks like the display does not support underline.

Thanks,

Tom Dean


--
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/513174f0.6030...@speakeasy.org



Re: ESC[4m does not produce underline OOPS

2013-03-01 Thread Richard Hector
On 02/03/13 13:34, Hugo Vanwoerkom wrote:
 Richard Hector wrote:
 On 02/03/13 08:46, 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.

 Are you doing this on a (colour) linux console, rather than an xterm?
 Apparently it can't do underline, and simulates it with a different
 colour instead. See 'man console_codes', or here:
 https://www.kernel.org/doc/man-pages/online/page/man4/console_codes.4.html

 
 404 File not found.


Sorry - fail with copy/paste and attempting to fix annoying line wraps -
which only appear in my mailer.
https://www.kernel.org/doc/man-pages/online/pages/man4/console_codes.4.html

ie s/page/pages/

Richard


-- 
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/513180ba.4010...@walnut.gen.nz