fg
Returns a formatted ANSI color sequence string based on the provided integer color code.
def fg(
s: int
) - > string
Formats a terminal color escape sequence using the provided color code.
Parameters
| Name | Type | Description |
|---|---|---|
| s | int | The ANSI color code integer used to define the foreground text color. |
Returns
| Type | Description |
|---|---|
string | An ANSI escape sequence string that sets the foreground color in a terminal. |