Hi there,
in kernel 5.3 I used to change the console cursor shape in /usr/src/linux/include/linux/console_struct.h
At the bottom, there was this line of code I changed:
Now with more recent kernels like 5.9, there is no more CUR_DEFAULT symbol.
The code there looks now like this:
How do I now have to change that code to get the cursor shape CUR_LOWER_THIRD?
And are CUR_FG and CUR_BG color definitions? FG sounds like foreground.
But, 0x000700 are hex color definitions!?
Thanks in advance!
in kernel 5.3 I used to change the console cursor shape in /usr/src/linux/include/linux/console_struct.h
At the bottom, there was this line of code I changed:
Code:
#define CUR_DEFAULT CUR_LOWER_THIRD
The code there looks now like this:
Code:
#define CUR_MAKE(size, change, set) ((size) | ((change) << 8) | \ ((set) << 16)) #define CUR_SIZE(c) ((c) & 0x00000f) # define CUR_DEF 0 # define CUR_NONE 1 # define CUR_UNDERLINE 2 # define CUR_LOWER_THIRD 3 # define CUR_LOWER_HALF 4 # define CUR_TWO_THIRDS 5 # define CUR_BLOCK 6 #define CUR_SW 0x000010 #define CUR_ALWAYS_BG 0x000020 #define CUR_INVERT_FG_BG 0x000040 #define CUR_FG 0x000700 #define CUR_BG 0x007000 #define CUR_CHANGE(c) ((c) & 0x00ff00) #define CUR_SET(c) (((c) & 0xff0000) >> 8)
And are CUR_FG and CUR_BG color definitions? FG sounds like foreground.
But, 0x000700 are hex color definitions!?
Thanks in advance!