- /* initialize the color pairs the way rote_vt_draw expects it. You might
- * initialize them differently, but in that case you would need
- * to supply a custom conversion function for rote_vt_draw to
- * call when setting attributes. The idea of this "default" mapping
- * is to map (fg, bg) to the color pair bg * 8 + 7 - fg. This way,
- * the pair (white, black) ends up mapped to 0, which means that
- * it does not need a color pair (since it is the default). Since
- * there are only 63 available color pairs (and 64 possible fg/bg
- * combinations), we really have to save 1 pair by assigning no pair
- * to the combination white/black. */
- for (i = 0; i < 8; i++) for (j = 0; j < 8; j++)
- if (i != 7 || j != 0)
- init_pair(j*8+7-i, i, j);
-
- /* paint the screen blue */
- attrset(COLOR_PAIR(32));
- for (i = 0; i < screen_h; i++)
- for (j = 0; j < screen_w; j++)
- addch(' ');
- refresh();