| View previous topic :: View next topic |
| Author |
Message |
fergie4000
Joined: 19 Jan 2007 Posts: 25
|
Posted: Sat Feb 17, 2007 1:58 pm Post subject: colored printf text |
|
|
| is there anyway to color the text the psp outputs? if so how? |
|
| Back to top |
|
 |
MrMr[iCE]
Joined: 03 Oct 2005 Posts: 43
|
Posted: Sat Feb 24, 2007 9:20 pm Post subject: |
|
|
youll have to be more specific...if you mean the text printed to the pc console via psplink, then yes, if you know how to work with ansi escape codes, like this:
| Code: |
// output to psplink console, move cursor up one before printing the text
printf("\033[1Alook ma, only one line!\n");
|
google for 'ansi escape codes' and you should find a few docs that list the different ansi control commands.
if you mean pspDebugScreenPrintf, have a look in pspdebug.h, theres a few functions that control text and background color, cursor position, etc.
Last edited by MrMr[iCE] on Sun Feb 25, 2007 12:44 am; edited 1 time in total |
|
| Back to top |
|
 |
harleyg

Joined: 05 Oct 2005 Posts: 123
|
Posted: Sun Feb 25, 2007 12:38 am Post subject: |
|
|
pspDebugScreenSetTextColor() will work with pspDebugScreenPrintf().
Last edited by harleyg on Sun Feb 25, 2007 12:42 am; edited 1 time in total |
|
| Back to top |
|
 |
MrMr[iCE]
Joined: 03 Oct 2005 Posts: 43
|
Posted: Sun Feb 25, 2007 12:40 am Post subject: |
|
|
| oops ya..psp, not sce. good catch =) |
|
| Back to top |
|
 |
fergie4000
Joined: 19 Jan 2007 Posts: 25
|
Posted: Sun Feb 25, 2007 11:57 pm Post subject: |
|
|
| thanks harleyg |
|
| Back to top |
|
 |
|