I want to draw lines and boxes using C language that run under DOS without active graphic-mode from BIOS. Please help. Source code would be helpful. Thanx
c_beginer
With out graphics mode active you can not draw sharp lines. If you do not like use bios you should use grpahics library (graphics.h). In text mode it is only posible like to draw lines using ASCII characters.
Code:
void draw_line(int ch)
{
int i;
printf("%c", '\n');
for(i = 0; i < 80; i++)
printf("%c", ch);
printf("%c", '\n');
/* printf can be replaced by putch and putchar */
}