Translate

Labels

Friday 7 June 2013

PROGRAM FOR SETTING THE CURSOR SIZE

#include #include #include void main(void)
 {
 clrscr();
 int x,y;
 union REGS regs;
 printf(" Enter the starting line of the cursor(0-4) - "); 
 scanf("%d",&x);
 printf(" Enter the ending line of the cursor - "); 
 scanf("%d",&y);



 gotoxy(40,12); 
 regs.h.ah = 1; 
 regs.h.ch = x; 
 regs.h.cl = y;
 int86(0x10,&regs,&regs);
 getch();
 }

No comments: