LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   [patch] Block cursor on tty (https://www.linuxquestions.org/questions/linux-kernel-70/%5Bpatch%5D-block-cursor-on-tty-4175583051/)

Mitt Green 06-25-2016 11:40 AM

[patch] Block cursor on tty
 
1 Attachment(s)
Hi, I generated a patch to make console cursor look like on BSDs - a white block. Attaching it in hope someone else will find it useful.
Code:

--- a/vt.c        2016-06-24 18:18:38.000000000 +0100
+++ b/vt.c        2016-06-25 14:06:05.992001610 +0100
@@ -137,6 +137,7 @@
 #define DEFAULT_BELL_PITCH        750
 #define DEFAULT_BELL_DURATION        (HZ/8)
 #define DEFAULT_CURSOR_BLINK_MS        200
+#define CUR_NONBLINK            16748305
 
 struct vc vc_cons [MAX_NR_CONSOLES];
 
@@ -167,7 +168,7 @@
 int global_cursor_default = -1;
 module_param(global_cursor_default, int, S_IRUGO | S_IWUSR);
 
-static int cur_default = CUR_DEFAULT;
+static int cur_default = CUR_NONBLINK;
 module_param(cur_default, int, S_IRUGO | S_IWUSR);
 
 /*

The destination folder is drivers/tty/vt.

ondoho 06-25-2016 12:43 PM

something is wrong with that destination folder.

Mitt Green 06-25-2016 02:32 PM

Quote:

Originally Posted by ondoho (Post 5566192)
something is wrong with that destination folder.

What exactly? vt.c is located in drivers/tty/vt, at least in 4.4.14.


All times are GMT -5. The time now is 09:43 AM.