DOCUMENT:Q80301 17-DEC-2000 [msdos] TITLE :How to Change the MS-DOS Cursor PRODUCT :Microsoft Disk Operating System PROD/VER:MS-DOS:2.x,3.x,4.x,5.0 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft MS-DOS operating system versions 2.11, 3.1, 3.2, 3.21, 3.3, 3.3a, 4.0, 4.01, 5.0 ------------------------------------------------------------------------------- SUMMARY ======= There is no way to change the appearance of the command line cursor in MS-DOS with any MS-DOS command. The cursor is a function of the BIOS and can only be modified through a ROM BIOS call. There are third party applications that facilitate this, such as Norton Utilities and PC Tools. You can also access the BIOS and modify the cursor by using the MS-DOS Debug utility. MORE INFORMATION ================ You can write a short program to modify the MS-DOS cursor. One way to do this is by creating and executing a short Debug script. The changes made are temporary in memory. Therefore, if the goal is to have the cursor altered at all times, it will be necessary to insert a line in the AUTOEXEC.BAT file to call the cursor program on boot. To change the appearance of the MS-DOS cursor, enter the following at the command prompt: Command Prompt Enter This -------------- ---------- C:\> debug - a100 287E:0100 mov ah,01 287E:0102 mov cx,010n (n range=1-4) 287E:0105 int 10 287E:0107 int 20 287E:0109 - n C:\cursor.com - rcx CX 0000 : 9 - w Writing 00009 bytes - q C:\> Changing the value of n (1-4) will result in different appearances for the cursor, where n=4 is a large cursor. Insert the following line in the AUTOEXEC.BAT file to have the cursor loaded upon booting the machine: c:\cursor.com Note: This procedure relies on standard IBM ROM BIOS services and therefore cannot be guaranteed to work on all systems. This information is only provided as a possible solution. The products included here are manufactured by vendors independent of Microsoft; we make no warranty, implied or otherwise, regarding these products' performance or reliability Reference(s): "The NEW Peter Norton Programmer's Guide to the IBM PC & PS/2," Microsoft Press, 1988 Additional query words: 3.3 3.3a 3.30 3.30a 4.0 4.0a 4.00 4.00a 4.01 4.01a 5.00 noupd ====================================================================== Keywords : Technology : kbMSDOSSearch kbMSDOS321 kbMSDOS400 kbMSDOS320 kbMSDOS330a kbMSDOS310 kbMSDOS500 kbMSDOS330 kbMSDOS401 kbMSDOS211 Version : MS-DOS:2.x,3.x,4.x,5.0 ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2000.