C Program to Display Mouse Pointer in textmode

C Program to Display Mouse Pointer in textmode.


C Program to display mouse pointer in textmode Images-Pictures-Photos-Pics-Basic C Programs-C Language Programs-C Program to display mouse pointer in textmode-Mouse support-General C Programs-Mouse Pointer in text mode-Graphics Programs.

The initialization of the mouse pointer is performed using function entitled showmouseptr( ).

The function for mouse pointer is as follows:

void showmouseptr( )
{
        i.x.ax = 1;
        int 86(0x33, &i, &0);
}

--------------------------------------------------------------------------------------------------------------------------

#include<stdio.h>
#include<dos.h>
int initmouse( );
void showmouseptr( );
union REGS i,0;
int main( )
{
    int status;
    status = initmouse( );
    if(status == 0)
    {
          printf("Mouse support not available\n");
     }
    else
    {
       showmouseptr( );
    }
    return 0;
}
int initmouse( )
{
   i.x.ax = 0;
   int 86(0x33, &i, &0);
   return (0.x.ax);
}
void showmouseptr( )
{
    i.x.ax = 1;
    int 86(0x33, &i, &0);
}

--------------------------------------------------------------------------------------------------------------------------

Output

--------------------------------------------------------------------------------------------------------------------------

Displays mouse pointer



EmoticonEmoticon