Intrinsic-72 Hilight

Top  Previous  Next

72: Hilight(X0, Y0, X1, Y1, attribute);


This intrinsic changes the colors in a specified area on the text screen without changing the characters. The area is defined by the corners of a rectangle. X0, Y0 is the upper-left corner, and X1, Y1 is the lower-right corner. "Attribute" defines the background and foreground colors (see 69: Attrib).


Hilight is typically used to highlight selected menu items, but it can also be used to make such things as drop shadows for windows. It is intended for text modes only; it does not work for graphic modes. (Controlling Screen Refresh can speed up this intrinsic. See the Console Refresh section for more information.)