Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nnews!uunet!cbmvax!daveh From: daveh@cbmvax.commodore.com (Dave Haynie) Newsgroups: comp.sys.amiga.programmer Subject: Re: Lattice C++ Message-ID: <21403@cbmvax.commodore.com> Date: 8 May 91 20:20:01 GMT References: <1467@loki.une.oz.au> Reply-To: daveh@cbmvax.commodore.com (Dave Haynie) Organization: Commodore, West Chester, PA Lines: 28 In article <1467@loki.une.oz.au> kevin@loki.une.oz.au (Kevin Pollard) writes: >I've been looking {at Lattice C++ on an Amiga. >But how would I clear the screen first? In MS-DOS/TurboC the > clrscr() >function would do it. Is there any such thing in Amiga/Lattice C++ ? Clear what screen? Your program doesn't own the WorkBench screen, so you obviously can't clear it. To clear the window your program is running within, assuming it's a normal console window, try: cout << "\233H\233J"; or maybe cout << "\014"; The cout stream is usually buffered, so you need to either turn off buffering or follow the clearing functions with a "\n" to flush the buffer. I think there's a stream method for either unbuffering or flushing the buffer without a , check the streams.h file. >Kevin Pollard Internet: kevin@loki.une.oz.au -- Dave Haynie Commodore-Amiga (Amiga 3000) "The Crew That Never Rests" {uunet|pyramid|rutgers}!cbmvax!daveh PLINK: hazy BIX: hazy "That's me in the corner, that's me in the spotlight" -R.E.M.