Customizing the Linux framebuffer
first off, and probably the most complicated to wrap your head around, the cursor.
X is the cursor shape;
0 is default,
1 is invisible,
2 is underline, ...,
4 is a half block, ...,
8 is a full block.
16 if you want software cursor, add
32 if you want to always change the background, add
64 if you want to not have the same background and foreground.
so if you want a red block cursor with default colors on hover (foreground);
since we didn't toggle the "
bright" flag, that red probably looks a little dim, so try toggling it by using
as opposed to cursors, setting the 16-bit-palette is pretty straightforward.
the escape is
P is a literal
N is the hexadecimal representation of the index you want to set,
BB are hexadecimal representations of the red, green, and blue. (no doubt if you're reading this you know what a hex triplet/"html colors" are.)
so to set the default
or to set the brightmagenta to
Default foreground and background
the background and foreground are limited in the way that they need to be set to one of the 16 stored colors.
the store sequence is
so to set the background as black, and the foreground as brightwhite;