www.digitalmars.com         C & C++   DMDScript  

c++ - Not colors under DOS

reply "BoB Dilan" <billyboy legislator.com> writes:
When i made an executable for DOS colors (disp_setattr functions) don't
appeared !
But when i made executable for Windows that's work.

Why ?
Apr 10 2002
next sibling parent reply "Walter" <walter digitalmars.com> writes:
"BoB Dilan" <billyboy legislator.com> wrote in message
news:a915j9$1d0k$1 digitaldaemon.com...
 When i made an executable for DOS colors (disp_setattr functions) don't
 appeared !
 But when i made executable for Windows that's work.

 Why ?

I added an example that sets colors on the display in: www.digitalmars.com/rtl/disp.html
Apr 10 2002
parent reply "BoB Dilan" <billyboy legislator.com> writes:
You have not understand my problem, Walter !!!

I CAN'T DISPLAY COLORS UNDER DOS, BUT I CAN UNDER WINDOWS.

I WOULD LIKE DISPLAY COLORS UNDER DOS,
WITH THE disp_setattr functions BUT IT DOESN'T WORK.

"Walter" <walter digitalmars.com> a écrit dans le message news:
a93bvt$n4o$1 digitaldaemon.com...
 "BoB Dilan" <billyboy legislator.com> wrote in message
 news:a915j9$1d0k$1 digitaldaemon.com...
 When i made an executable for DOS colors (disp_setattr functions) don't
 appeared !
 But when i made executable for Windows that's work.

 Why ?

I added an example that sets colors on the display in: www.digitalmars.com/rtl/disp.html

Apr 11 2002
parent reply "Walter" <walter digitalmars.com> writes:
Post a code snippet here that you think ought to display colors so we can
see what you're trying to do.

"BoB Dilan" <billyboy legislator.com> wrote in message
news:a93r5k$17nc$1 digitaldaemon.com...
 You have not understand my problem, Walter !!!

 I CAN'T DISPLAY COLORS UNDER DOS, BUT I CAN UNDER WINDOWS.

 I WOULD LIKE DISPLAY COLORS UNDER DOS,
 WITH THE disp_setattr functions BUT IT DOESN'T WORK.

 "Walter" <walter digitalmars.com> a écrit dans le message news:
 a93bvt$n4o$1 digitaldaemon.com...
 "BoB Dilan" <billyboy legislator.com> wrote in message
 news:a915j9$1d0k$1 digitaldaemon.com...
 When i made an executable for DOS colors (disp_setattr functions)



 appeared !
 But when i made executable for Windows that's work.

 Why ?

I added an example that sets colors on the display in: www.digitalmars.com/rtl/disp.html


Apr 11 2002
parent "BoB Dilan" <billyboy legislator.com> writes:
Ok, I post a code snippet here.


"Walter" <walter digitalmars.com> a écrit dans le message news:
a94r85$2egg$1 digitaldaemon.com...
 Post a code snippet here that you think ought to display colors so we can
 see what you're trying to do.

 "BoB Dilan" <billyboy legislator.com> wrote in message
 news:a93r5k$17nc$1 digitaldaemon.com...
 You have not understand my problem, Walter !!!

 I CAN'T DISPLAY COLORS UNDER DOS, BUT I CAN UNDER WINDOWS.

 I WOULD LIKE DISPLAY COLORS UNDER DOS,
 WITH THE disp_setattr functions BUT IT DOESN'T WORK.

 "Walter" <walter digitalmars.com> a écrit dans le message news:
 a93bvt$n4o$1 digitaldaemon.com...
 "BoB Dilan" <billyboy legislator.com> wrote in message
 news:a915j9$1d0k$1 digitaldaemon.com...
 When i made an executable for DOS colors (disp_setattr functions)



 appeared !
 But when i made executable for Windows that's work.

 Why ?

I added an example that sets colors on the display in: www.digitalmars.com/rtl/disp.html



Apr 12 2002
prev sibling parent "Walter" <walter digitalmars.com> writes:
"BoB Dilan" <billyboy legislator.com> wrote in message
news:a915j9$1d0k$1 digitaldaemon.com...
 When i made an executable for DOS colors (disp_setattr functions) don't
 appeared !
 But when i made executable for Windows that's work.
 Why ?

You need to use disp_puts() instead of puts().
Apr 12 2002