Difference between revisions of "ISXDK:Printing Text to the Console"
(→Color) |
|||
Line 4: | Line 4: | ||
==Color== | ==Color== | ||
− | Console now supports colors. Colors are created by \a<code>, where code is one of the following: | + | Console now supports colors. Colors are created by <tt>\a<nowiki><code><nowiki></tt>, where code is one of the following: |
[[Image:Console colors.gif|right|console color chart]] | [[Image:Console colors.gif|right|console color chart]] | ||
*y - yellow (-y for dark)<br> | *y - yellow (-y for dark)<br> | ||
Line 18: | Line 18: | ||
*x - previous color | *x - previous color | ||
− | |||
==Examples== | ==Examples== | ||
Line 33: | Line 32: | ||
[[Category:ISXDK]] | [[Category:ISXDK]] | ||
− | [[Category:Inner Space]] | + | [[Category:Inner Space]]</nowiki> |
Revision as of 13:23, 14 March 2006
Overview
The printf function in ISXDK works exactly like printf in the standard C libraries. printf only sends information to the Inner Space console.
Color
Console now supports colors. Colors are created by \a<code><nowiki></tt>, where code is one of the following: [[Image:Console colors.gif|right|console color chart]] *y - yellow (-y for dark)<br> *o - orange (-o for dark)<br> *g - green (-g for dark) *u - blue (-u for dark) *r - red (-r for dark) *t - teal (-t for dark) *b - black (clear) *m - magenta (-m for dark) *p - purple (-p for dark) *w - white (-w for dark) *x - previous color ==Examples== printf("ISXTest Loaded"); printf("ISXTest Sample Command"); printf("ISXTest URL %s failed",pReq->URL); printf("ISXTest URL %s -- %d bytes",pReq->URL,pReq->Size); printf( buffer, "\tString: %s\n", s ); ==See Also== [[ISXDK]] [[Category:ISXDK]] [[Category:Inner Space]]