sgr_foreground Function

public function sgr_foreground(mode, r, g, b) result(seq)

SGR foreground escape for the given color mode and RGB (0..1). Returns an empty string for 'never'/unknown modes.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: mode
real(kind=wp), intent(in) :: r
real(kind=wp), intent(in) :: g
real(kind=wp), intent(in) :: b

Return Value character(len=:), allocatable