Video Attribute Differences

Logical attributes are completely portable. There are no differences in the logical attribute system which will affect source code portability between PCDOS, OS/2, and terminal-based versions. You specify the type of logical attribute to be used in a program exactly the same under all operating systems.

However, inconsistencies in video display do occur because of the underlying differences in the physical attributes that are supported in each operating environment. We have tried to ensure that programs which use our definitions for various attributes will look reasonable on various displays. If you add to or modify our attribute definitions, you should take care that the new definition will have a similar effect on all displays. Note that appearance of various attributes on terminal-based systems are ultimately dependent on the terminal capabilities database, vvtermcap.

An explanation of the differences in monochrome and color physical attributes under PCDOS, OS/2, and the terminal-based versions is found in Chapter 46, "Controlling Color with Logical Attributes."

More:

Terminals That Don't Support Some Attributes

Size of the Video Display

Block Graphics Attribute

Attribute Used to Clear the Screen


Home Contents Previous Next