Bug 25536

Summary: fix annoying console mouse cursor flicker problem
Product: Base System Reporter: davidx <davidx>
Component: kernAssignee: Andrey A. Chernov <ache>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description davidx 2001-03-05 02:40:00 UTC
here is a patch for the problem reported in PR25439, I found the bug is
in /sys/dev/syscons/syscons.c, where function srcn_update detects if text cursor is in a special area, if it is in the area, the function will repeatly hide and show text cursor in very fast speed, the condition remains true until mouse cursor is moved away from such area,
cause 20% of CPU time is wasted.

Fix: patch for /sys/dev/syscons.c:
How-To-Repeat: .........................
.........................
.....xxxxxxxxxxxxxxxxxxxx
xxxxx@...................
.........................

above image represents a screen image, every line represents a screen
line, char @ is text cursor position, if mouse cursor is moved into 
area marked with char x, then mouse cursor flickers weirdly.
Comment 1 Andrey A. Chernov freebsd_committer freebsd_triage 2001-03-06 00:03:03 UTC
State Changed
From-To: open->analyzed

Fix commited into -current
Comment 2 alex freebsd_committer freebsd_triage 2001-05-29 13:36:15 UTC
Responsible Changed
From-To: freebsd-bugs->ache

Fix committed by ache, he might want to MFC it
Comment 3 Jeroen Ruigrok van der Werven freebsd_committer freebsd_triage 2001-11-15 19:05:57 UTC
State Changed
From-To: analyzed->closed

Finally MFC this. 

Took long enough. 

Thanks!