setForegroundBackground

Generate a string that sets the foreground and background color

  1. string setForegroundBackground(string fg, string bg)
    string
    setForegroundBackground
    (
    string fg
    ,
    string bg
    )
  2. string setForegroundBackground(SimpleColor fg, SimpleColor bg)

Parameters

fg string

foreground color in hex code or ASCII color code

bg string

background color

Return Value

Type: string

the control sequence to set the style

Meta