Given an input string, it will return a new string with the ANSI codes for
gray background around it.
Example
backgroundGray("Vangware"); // "\x1b[100mVangware\x1b[49m" // It can also be used as a tag function for tagged templates: backgroundGray`Vangware`; // "\x1b[100mVangware\x1b[49m"
Gray background code wrapper.
Remarks
Given an
input
string, it will return a new string with the ANSI codes for gray background around it.Example
See