HS> cprintf() sends a formatted output STRAIGHT to the screen.
HS> printf() sends a formatted output string to stdin.
KK> ... abrasives removed ...
HS> the textcolor-family functions FAIL with printf()
HS> (ANSI-C disallows it to do anything else other than send
HS> to stdin).
HS> That's why all these companies put in cprintf which
HS> formats the str with ansi-colours. Like I said, if a
HS> compiler doesn't have cprintf() then it contains an
HS> equivalent which is most likely just printf().
KK> Beggin' your pardon m'lord, but Quick C, MS C, and Visual C++
KK> don't use colors in cprintf().
They are not mainstream. Why the HELL would Visual c++ include cprintf()?
Haven't you been listening? Since when has someone required ansi-colours
through windows? AND, if MS-C has the functions textcolor(), then there are
equivalents to cprintf(). (Most likely printf(), which automatically formats
it for you, which is against the standard, which leads to my previous point)
KK>I don't mean to hype Mr.
KK> Gates, but Microsoft IS a bit in the mainstream.
MSVC is. MS-C certainatly isn't.
KK> Any use of color and text positioning is highly dependent on
KK> platform and compiler. There is a small group of companies
KK> for whom it seems best to place all these functions within
KK> the console I/O library and attach them to cprintf(), which
KK> is a perfectly valid choice, in my meaningless opinion.
KK> category of GRAPHICS manipulations, as opposed to TEXT,
KK> assuming, perhaps, that they are display related, and not
KK> text related, which also makes perfect sense. ( To me. )
Apparantly not to some people.
"cprintf() does nothing, except sometimes it does very little and it does
different things" ROTLMAO!
KK> As a sidenote of some interest, anything sent to stdin
KK> would be likely to be coming from the keyboard, and not
KK> going out to the screen, lest it be via stdout. :)
KK> ( I know... but it was too easy to pass up! )
Yes, thanks' for correcting that.
... Fax me no questions, I'll fax you no lies!
--- Ezycom V1.48g0 01fd016b
---------------
* Origin: Fox's Lair BBS Bris Aus +61-7-38036821 V34 +Node 1 (3:640/238)
|