Microsoft KB Archive/19866

= Cursor Positioning in Text Mode =

Article ID: 19866

Article Last Modified on 9/24/2003

-

APPLIES TO


 * Microsoft Mouse Driver 9.0 Standard Edition
 * Microsoft Mouse Driver 9.1 Standard Edition
 * Microsoft Mouse Driver 7.04 Standard Edition
 * Microsoft Mouse Driver 8.2 Standard Edition

-



This article was previously published under Q19866



SUMMARY
If you use the Microsoft Mouse in a program that runs in text mode, the mouse returns cursor position values in PELs. You can convert these to character cell values by dividing them by 8.



MORE INFORMATION
If the mouse detects that the screen is in text mode (for example, EGA or CGA), the cursor position return values from the mouse functions are returned with MOD 8 values (the lowest three bits are 0). The outputs from the relevant mouse functions may be divided by 8, or bit-shifted right by three. Conversely, character cell positions sent to the mouse should be multiplied by 8 (or bit-shifted left by 3).

Additional query words: 7.00 7.04 7.05 8.00 8.10 8.20 9.00

Keywords: KB19866

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.