From: Bjoern DOT Appel AT frankfurt DOT netsurf DOT de (Bjoern Appel) Newsgroups: comp.os.msdos.djgpp Subject: Re: char getch(void) Date: Thu, 15 Jan 1998 20:22:28 GMT Organization: Hamnet Message-ID: <34be6fff.1294856@news2.frankfurt.netsurf.de> References: <34bbe72b DOT 4606230 AT news2 DOT frankfurt DOT netsurf DOT de> NNTP-Posting-Host: deck-188.frankfurt.netsurf.de Lines: 27 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Sorry for asking a FAQ, but it still does not work as I expect. Now I have this program: #include int main(void) { clrscr() cprintf("First line\nSecondline\n"); cprintf("Please wait..."); getch(); return 0; } /*end of little program **********/ OK, the getch-Problem is solved. Thank you to everyone who helped me with this. Now it seems that cprintf() interprets a "\n" as a newline and nothing more. The printf()-funktion interprets it as a newline and carrige return. The above program produces staircases when I run it under DOS. Is there any trick like a escape-sequence for carrige return (This time I looked in the FAQ first; nothing found ;-) ? Bjoern