C Codes
Beginners
C on Unix
Code Snippets
Data Structures
File Operations
Games Graphics
Gnu-Linux
Hardware
Mathematics
Miscellaneous
Small Programs
Sorting
C > Hardware Interaction Through C sample source codes
Program for setting cursor size
Program for setting cursor size #include<stdio.h> #include<conio.h> #include<dos.h> 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,®s,®s); getch(); }
Privacy Policy
|
Link to Us
|
Links