www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/15/19:15:48

From: George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
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

On Thu, 15 Jan 1998 20:22:28 GMT in comp.os.msdos.djgpp Bjoern Appel
<Bjoern DOT Appel AT frankfurt DOT netsurf DOT de> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019