title: Cannot add color to character on multiple lines using Ncurses mvchgat
body: <p>I'm trying to color a video game map in Ncurses using a loop to have a specific color for multiple characters, it works fine on a single line but whenever I try to apply color to multiple lines either it doesn't apply any color, or it only applies color on the last line.</p>
  <p>Here's my code:</p>
  <pre><code>initscr();
  start_color();
  char *map =  strdup(&quot;OOOOOOOOOXOOOOOOOOO\nBXXXOXXXOXOXXXXOXXB\nOXXXOXXXOXOXXXXOXXO\nOOOOOOOOOOOOOOOOOOO\nOXXXOXOXXXXXOXXOXXO\nOOOOOXOOOXOOOXXOOOO\nXXXXOXXXOXOXXXXOXXX\nXXXXOXOOOOOOOXXOXXX\nXXXXOXOMMMMMOXXOXXX\nXXXXOOOMMMMMOOOOXXX\nXXXXOXOMMMMMOXXOXXX\nXXXXOXOOOOOOOXXOXXX\nXXXXOXOXXXXXOXXOXXX\nOOOOOOOOOXOOOOOOOOO\nOXXXOXXXOXOXXXXOXXO\nBOOXOOOOOOOOOOOOXOB\nXXOXOXOXXXXXOXXOXOX\nOOOOOXOOOXOOOXXOOOO\nOXXXXXXXOXOXXXXXXXO\nOOOOOOOOOOOOOOOOOOO&quot;);
  init_pair(1, COLOR_CYAN, COLOR_BLACK);
  init_pair(2, COLOR_YELLOW, COLOR_BLACK);
  init_pair(3, COLOR_RED, COLOR_BLACK);
  int y = 0;
  int x = 0;
  while (true) {
      mvprintw(0, 0, map);
      for (int i = 0; y &lt; 19; i++, x++) {
          if (x == 19) {
              y++;
              x = 0;
          }
          if (map[i] == 'O') {
              mvchgat(map[i], y, x, 1, A_BLINK, 2, NULL);
          }
          else if (map[i] == 'X') {
              mvchgat(y, x, 1, A_BLINK, 1, NULL);
          }
          else if (map[i] == 'B'){
              mvchgat(y, x, 1, A_BLINK, 3, NULL);
          }
          refresh();
      }
  </code></pre>