Age | Commit message (Collapse) | Author |
|
to work with wscons. Back then, the universe was simple and there was only
one single wsdisplay device, so that code would use global variables.
Overhaul this, and make sure the various routines take the wsscreen or
wsdisplay they operate on as arguments.
This will eventually allow multiple wsmoused to run, one per wsdisplay
device.
While there, use more appropriate integer types in that code, so that
unholy big displays do not cause integer overflows in coordinates
computations. As a bonus, this makes the code smaller.
|
|
also check the return value of alloc_attr() for failure.
No functional change.
|
|
display-dependent value, but instead fill a structure with the chaarcter
and a valid attribute, suitable for use with unpack_attr.
Adapt the wsmoused code to these changes, and remove all knowledge of
the text-mode style pc video attributes in it.
This will eventually allow wsmoused to be used on non-pcdisplay devices.
|
|
|
|
X-Window at the same time, removing the need to kill wsmoused(8) before
starting X-Window.
|
|
|
|
|
|
the wsmoused daemon (replacement for moused which was used with PCVT). Adds
a "getchar" method to the display drivers which returns the value of the
character currently under the cursor (e.g., so it may be inversed). From jbm@.
Still needs a bit of cleanup and improvement, especially X cohabitation
features. The pointer moves to fast as well. These sorts of issues will be
corrected in-tree.
|