Mail Archives: djgpp/1999/01/07/19:51:55
MstrX1 wrote:
>
> Hello,
> if I don't type a LF("\n") at the end of my printf-text
> the text isn't printed correctly under MS-DOS.
> Most times this isn't a problem, because I need
> it anyway, but if I want to print text at the bottom
> of the screen and I print (printf("Hello World\n")),
> the screen scrolls down and the top-line will be destroyed.
>
> How can I print it correctly without using a "\n" at the end,
> or stop this scrolling ?
In general, if you want to position text on the screen, you should use
the conio family of functions. See `gotoxy' and `cprintf' in the docs.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -