TApxTerminalBuffer.SetCharAttrs

TApxTerminalBuffer

procedure SetCharAttrs(const aValue : TApxTerminalCharAttrs); 
TApxTerminalCharAttr = (tcaBold, tcaUnderline, tcaStrikethrough, tcaBlink, tcaReverse, tcaInvisible);
TApxTerminalCharAttrs = set of TApxTerminalCharAttr;

Sets the current set of display attributes.

The display attributes define the style of new text. The attributes are bold, underlined, strikethrough, blink, reverse image (i.e., the text displayed in BackColor, the background in ForeColor), and invisible.

If you wish to add a new attribute to the current set, use the following code example:

var
  Attrs : TApxTerminalCharAttrs;
begin
  ...
  MyBuffer.GetCharAttrs(Attrs);
  Attrs := Attrs + [tcaUnderline];
  MyBuffer.SetCharAttrs(Attrs);

See also: GetCharAttrs, SetDefCharAttrs