LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-25-2016, 11:40 AM   #1
Mitt Green
Member
 
Registered: May 2014
Location: Europe
Posts: 199

Rep: Reputation: 116Reputation: 116
[patch] Block cursor on tty


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.
Attached Files
File Type: txt vt.diff.txt (555 Bytes, 11 views)

Last edited by Mitt Green; 06-25-2016 at 11:52 AM.
 
Old 06-25-2016, 12:43 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
something is wrong with that destination folder.
 
Old 06-25-2016, 02:32 PM   #3
Mitt Green
Member
 
Registered: May 2014
Location: Europe
Posts: 199

Original Poster
Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by ondoho View Post
something is wrong with that destination folder.
What exactly? vt.c is located in drivers/tty/vt, at least in 4.4.14.

Last edited by Mitt Green; 06-25-2016 at 02:36 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] block cursor at terminal login bluebarnstormer Debian 2 04-30-2014 09:13 AM
New kernel miracle patch : sched: automated per tty task groups Linux.tar.gz Linux - Kernel 8 11-19-2010 09:52 AM
tty cursor configuration? naquad Linux - Newbie 2 08-13-2009 02:19 AM
Changing the default (block) cursor major.tom Slackware 3 07-15-2005 07:28 PM
Mouse cursor has become HUGE block walterbyrd Debian 2 05-06-2004 10:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration