ContentsIndexPreviousNext

9.1.2 Controlling the Color Mapping

A different approach to color adjustment is to use the COLOR-TABLE facility to do all of your customization. With this approach, you don't use the COLOR-MODEL setting at all. Instead, you map each foreground-background combination that you use to the desired new combination.

This is usually more work than using the COLOR-MODEL setting, because you must select each color combination individually. However, this approach is straightforward and gives you total control over the colors selected.

The ACUCOBOL-GT debugger uses this technique. When you enter the debugger screen, it saves the current color table and then creates a new one that maps the usual debugger colors to colors more appropriate for a graphical environment. When the debugger restores your application's screen, it also restores your color table.

In the remainder of this chapter we discuss COLOR-MODEL and COLOR-TABLE. It's likely that you can achieve the effects you want with these two variables alone. If you discover that you need additional fine-tuning, see Appendix L, Book 4, "Appendices" for more color configuration variables.