I know I can do the `attron` and `attroff` with the color I choose to, however, I would like to know if it's possible to do it with the ANSI colour escape codes within ncurses:

```
#include <stdio.h>
#include <ncurses.h>

int main()
{
   initscr();
   char *s2 = NULL;
   const char *s1 = "World";
   int n = 10; 

   // What would be a good way to colour %d?
   // seems it is not safe to us the ANSI color escape in here...
   s2 = malloc (snprintf (NULL, 0, "Hello %s \033[22;31m%d", s1, n) + 2); 
   sprintf (s2, "Hello %s \033[22;31m%d", s1, n); 
   printw("%s", s2);
   refresh();
   getch();
   endwin();

   return 0;
}

```

Linking with `-lncurses`

a regular `printf("\033[22;31mHello, World!\n");` in a non-ncurses program works.