Homebrew Printing colored text

  • Thread starter Deleted User
  • Start date
  • Views 1,045
  • Replies 4
D

Deleted User

Guest
OP
Lorem Ipsum is slechts een proeftekst uit het drukkerij- en zetterijwezen. Lorem Ipsum is de standaard proeftekst in deze bedrijfstak sinds de 16e eeuw, toen een onbekende drukker een zethaak met letters nam en ze door elkaar husselde om een font-catalogus te maken.
 
Last edited by ,

Det1re

det1re.de
Member
Joined
Oct 28, 2008
Messages
1,272
Trophies
0
Age
34
Location
Germany
Website
det1re.de
XP
264
Country
Gambia, The
Code:
// implementation by WiiPower
printf("\x1b[%u;%um", 47, false);
printf("\x1b[%u;%um", 30, false);

Where the numbers represent the colors.
Those beginning with 4 are for the background, those with 3 are text/foreground.

So in this example we would have a white background with black text. For other colors see ANSI escape codes @ wikipedia.
 

pembo

Well-Known Member
Member
Joined
Jun 1, 2009
Messages
105
Trophies
0
XP
121
Country
I put a sample project together with generated documentation from the bootmii configuration editor source code to do these sorts of things
Download

it's a little more complex as this example demonstrates the use of the console skins that I used in BCE. You should download and take a look at the code.

You'll be most interested in the console class.
 
D

Deleted User

Guest
OP
Lorem Ipsum is slechts een proeftekst uit het drukkerij- en zetterijwezen. Lorem Ipsum is de standaard proeftekst in deze bedrijfstak sinds de 16e eeuw, toen een onbekende drukker een zethaak met letters nam en ze door elkaar husselde om een font-catalogus te maken.
 
Last edited by ,

pembo

Well-Known Member
Member
Joined
Jun 1, 2009
Messages
105
Trophies
0
XP
121
Country
diego_pmc said:
Thank you! There are some other things in your code that might be useful for me. BTW, pembo, how do you produce those documentation pages?

your welcome - that's why I put this stuff together in the first place after going through the pains building the bootmii config editor
smile.gif


The documentation is generated by a program called doxygen. http://www.doxygen.org/
 

Similar threads

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • NinStar @ NinStar:
    on tiramisu you can access it by opening mii maker
  • crafthp434 @ crafthp434:
    okay
  • NinStar @ NinStar:
    I don't have a wii u anymore to test it myself, but if homebrews are not visible on the wii u menu I think you can press L + R + minus to open the plugin menu, there should be an option called "homebrews on wii u menu" or something similar
  • crafthp434 @ crafthp434:
    nope
  • crafthp434 @ crafthp434:
    it is L+dpad down+ select
  • crafthp434 @ crafthp434:
    but homebrew is appearing in the home menu btw
  • NinStar @ NinStar:
    yes, now I remember it
  • NinStar @ NinStar:
    then it is working, I also don't like that they did this but it is the only option you have if you are using aroma
  • crafthp434 @ crafthp434:
    i just didint know the homebrew launcher didint exist in aroma
  • crafthp434 @ crafthp434:
    thanks btw
  • Xdqwerty @ Xdqwerty:
    Im downloading fallout 3 goty edition
    +1
  • BigOnYa @ BigOnYa:
    I'm downloading more ram for my hamster pc
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    New hamster PC, with anal operation and BT connectivity!
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, How do I make enemies respawn on gdevelop after
    the player dies?
  • Psionic Roshambo @ Psionic Roshambo:
    Carrying a PC or phone is so old school!
  • Psionic Roshambo @ Psionic Roshambo:
    Squeeze your cheeks twice to answer calls!
  • BigOnYa @ BigOnYa:
    @Xdqwerty you can use a "spawner" function on any object.
    +1
  • BigOnYa @ BigOnYa:
    Or when your player dies, you can say in code, if enemy exists, do nothing, but if enemy does not exist, then create enemy at certain spot. (This would be a pain tho for lots of emeies)
    +1
  • BigOnYa @ BigOnYa:
    Easiest, simple way would be just restart scene, but player would restart from beginning.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, thx in advance
    +1
  • Spider2190 @ Spider2190:
    Heya
  • Spider2190 @ Spider2190:
    How are you doing, @Xdqwerty
    ?
  • Psionic Roshambo @ Psionic Roshambo:
    Dolphin porn??? This man has my vote!!! Lol
    Psionic Roshambo @ Psionic Roshambo: Dolphin porn??? This man has my vote!!! Lol