Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!m.cs.uiuc.edu!ibma0.cs.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!mja28799 From: mja28799@uxa.cso.uiuc.edu (Michael J Androff) Newsgroups: comp.lang.c Subject: TurboC clearscreen problems Message-ID: <1991Mar8.183552.17875@ux1.cso.uiuc.edu> Date: 8 Mar 91 18:35:52 GMT Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 21 I'm writting a simple get input file in TurboC and everything is working fine except for the lines in which I clear the screen (I clear the screen during error-checking, also to make the echoed input look nice.). I used the command clrscr(); and it cleared the screen but sometimes it would 'erase' the next printf statement. Also, I don't think clrscr() is portable to most (if any) AnsiC programs that aren't Turbo. I wish to main- tain maximum portability, so I'm very hesitant to use it. Also, I used system("cls"); because I'm using an IBM compatible Epson and although clr works at the DOS level, it doesn't execute at runtime in TurboC. Why? Is there a bug in TurboC 2.0 for the screen-clear application? Am I just missing some header file declaration? I appreciate any help. Please e-mail any responses (I'm not likely to read this soon, or at least I'll forget to) to my uxa account. Thank you. Mike Androff mja28799@uxa.cso.uiuc.edu