Set the background from the 256-colour cube.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | index |
Palette index, clamped to 0 to 255. |
pure function ansi_bg_256(index) result(seq) !! Set the background from the 256-colour cube. integer(int32), intent(in) :: index !! Palette index, clamped to 0 to 255. character(len=:), allocatable :: seq seq = CSI//"48;5;"//to_string(clamp_byte(index))//"m" end function ansi_bg_256