GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MOUSESCROLLSIZE(3) FreeBSD Library Functions Manual MOUSESCROLLSIZE(3)

mousescrollsize - compute mouse scroll increment

#include <draw.h>

int mousescrollsize(int maxlines)

Mousescrollsize computes the number of lines of text that should be scrolled in response to a mouse scroll wheel click. Maxlines is the number of lines visible in the text window.

The default scroll increment is one line. This default can be overridden by setting the $mousescrollsize environment variable to an integer, which specifies a constant number of lines, or to a real number followed by a percent character, indicating that the scroll increment should be a percentage of the total number of lines in the window. For example, setting $mousescrollsize to 50% causes a half-window scroll increment.

Mousescrollsize is used by and to set their scrolling behavior.

/src/libdraw/scroll.c

Libdraw expects up and down scroll wheel events to be expressed as clicks of mouse buttons 4 and 5, but the XFree86 default is to ignore the scroll wheel. To enable the scroll wheel, change your InputDevice section of XF86Config-4 to look like:
Section "InputDevice"
	Identifier	"Mouse0"
	Driver	"mouse"
	Option	"Device" "/dev/psaux"
	# next four lines enable scroll wheel as buttons 4 and 5
	Option	"Buttons" "5"
	Option	"Emulate3Buttons" "off"
	Option	"Protocol" "ImPS/2"
	Option	"ZAxisMapping" "4 5"
EndSection
    

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.