1 This is
\e[7minverse text
\e[27m with default fg and bg.
2 \e[31mThis is
\e[7minverse text
\e[27m with red fg and default bg.
\e[m
3 \e[41mThis is
\e[7minverse text
\e[27m with default fg and red bg.
\e[m
4 \e[32;41mThis is
\e[7minverse text
\e[27m with green fg and red bg.
\e[m