Message-ID: <34C1B883.CE610434@csun.edu> Date: Sun, 18 Jan 1998 00:08:35 -0800 From: Ryan Bright MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: char getch(void) References: <34bbe72b DOT 4606230 AT news2 DOT frankfurt DOT netsurf DOT de> <34be6fff DOT 1294856 AT news2 DOT frankfurt DOT netsurf DOT de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: s253n085.csun.edu Organization: California State University, Northridge Lines: 10 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 ;-) ? In fact, there is -- '\r'. A "\n\r" should do the trick. -Ryan