Mail Archives: djgpp/1999/12/25/14:31:57
> can someone point me to any tutorial (or just tell me here what to do) if I
> want to do something similar to functions in conio.h? e.g. I'd like to fill
> the last character on the screen (80*25) so that it wouldn't jump into next
> line?
_farpokeb(_dos_ds, 0xb8000+25*80*2, ascii value of character);
_farpokeb(_dos_ds, 0xb8000+25*80*2+1, attribute you want);
(untested code)
But for mono, the base address would be 0xb0000, rather than 0xb8000.
If you plan to write an entire screen at once, you could store these
details in a buffer and use dosmemput to write evertything at once onto
the video memory.
Hope this helps!
Prashant
- Raw text -