Method GetAttributeForRole
GetAttributeForRole(VisualRole, Attribute?)
Gets the Attribute associated with a specified VisualRole, applying inheritance rules for attributes not explicitly set.
public Attribute GetAttributeForRole(VisualRole role, Attribute? defaultTerminalColors = null)
Parameters
roleVisualRoleThe semantic VisualRole describing the element being rendered.
defaultTerminalColorsAttribute?The terminal's actual default foreground/background colors (queried via OSC 10/11), used to resolve None during color derivation. If null, falls back to White/Black.
Returns
GetAttributeForRole(string)
Gets the Attribute associated with a specified VisualRole string.
public Attribute GetAttributeForRole(string roleName)
Parameters
roleNamestringThe name of the VisualRole describing the element being rendered.