gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Color text

#153867 - Cisco - Mon Apr 07, 2008 4:20 pm

Hi,
I'm trying to write diferent text message on the screen, and I want that every line will be written in a diferent color.
I used scape codes but it wasn't work.

Any idea?

#153901 - tepples - Tue Apr 08, 2008 1:43 am

Cisco wrote:
Hi,
I'm trying to write diferent text message on the screen, and I want that every line will be written in a diferent color.
I used scape codes but it wasn't work.

Wasn't working in what way? Which escape codes did you try?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#153953 - Cisco - Tue Apr 08, 2008 5:53 pm

I used this code

iprintf("\x1b[31mred \1xb[32mgreen \x1b34mblue");

Is there any problem?