shape
= 0 xor
= 0 or
= 0 Select linux cursor style.
Where shape
= size
| flags
.
size | meaning |
---|---|
0 | default depending on driver: off, underline or block |
1 | none |
2 | underline |
3 | lower third |
4 | lower half |
5 | two thirds |
6 | block |
flags | meaning |
---|---|
16 | enable foreground and background change When enabled the cursor changes the shown attributes of the cell it is on. Some drivers force size = 1 (none) internally if this is set. |
32 | ensure original background and cursor background differ. If the original and cursor background would be identical invert all background color channels (but not brightness). |
64 | ensure cursor foreground and background differ. If the cursor background and foreground would be identical invert all foreground color channels (but not brightness). |
Together xor
and or
define changes to foreground and background of the cell where the cursor is shown when flags
has that feature enabled. Each bit in both parameters describes one aspect to change. The effective change depends on that bit in both.
bit in or | bit in xor | change |
---|---|---|
0 | 0 | no change |
1 | 0 | enable |
0 | 1 | toggle |
1 | 1 | disable |
The meanings of each bit are:
bit value | meaning |
---|---|
1 | foreground blue channel |
2 | foreground green channel |
4 | foreground red channel |
8 | foreground brightness channel |
16 | background blue channel |
32 | background green channel |
64 | background red channel |
128 | background brightness |