Skip to main content

Problem:

If you would like the exact attribute/colour combinations to be saved and restored using cbl_read_scr_chattrs and cbl_write_chattrs

Resolution:

You need to either:

1. Set-up the colours in the current palette.  A simple way of doing

    this (and achieving consistent results on Windows and Unix

    platforms) is to add the following call to the start of the program:

        CALL "CBL_SCR_SET_PC_ATTRIBUTES"

2. Use the alternative set of calls, CBL_SCR_SAVE and CBL_SCR_RESTORE,

    which were designed to overcome all the issues described above.

    These are documented in the Creating UIs manual.

Old KB# 7180