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

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

Sorry for asking a FAQ,
but it still does not work as I expect.
Now I have this program:


#include<conio.h>

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

- Raw text -


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