From: George Foot Newsgroups: comp.os.msdos.djgpp Subject: Re: char getch(void) Date: 15 Jan 1998 23:55:03 GMT Organization: Oxford University, England Lines: 17 Message-ID: <69m7kn$eiv$1@news.ox.ac.uk> References: <34bbe72b DOT 4606230 AT news2 DOT frankfurt DOT netsurf DOT de> <34be6fff DOT 1294856 AT news2 DOT frankfurt DOT netsurf DOT de> NNTP-Posting-Host: sable.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Thu, 15 Jan 1998 20:22:28 GMT in comp.os.msdos.djgpp Bjoern Appel wrote: : 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 ;-) ? Use '\r' for a carriage return: cprintf ("First line\r\nSecond line\r\n"); -- Regards, george DOT foot AT merton DOT oxford DOT ac DOT uk