home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!hal.com!decwrl!deccrl!news.crl.dec.com!news!nntpd.lkg.dec.com!sieras.enet.dec.com!wallis
- From: wallis@sieras.enet.dec.com (Barry L. Wallis)
- Newsgroups: comp.lang.c++
- Subject: Re: Stream I/O in Turbo C++
- Message-ID: <1992Aug17.231223.2521@nntpd.lkg.dec.com>
- Date: 17 Aug 92 21:11:23 GMT
- Sender: usenet@nntpd.lkg.dec.com (USENET News System)
- Organization: Digital Equipment Corporation
- Lines: 24
-
-
- In article <1992Aug16.023318.17440@news2.cis.umn.edu>, esper@cs35b.cs.umn.edu (Dave Sherohman) writes...
- >OK, another question for you. (As was guessed after my last one, I'm fairly
- >new to C++... BTW, the actual problem with the struc claiming to have been
- >redefined was that the .h file it was in was included twice into one .cpp
- >file... Oops...) I'm playing with mixing windowing and stream I/O, and I
- >can't figure out how to get the window to scroll properly. When I hit the
- >bottom of the window, 'cprintf("\r\n");' will send a linefeed and scroll the
- >window up one line, but 'cout << "\r\n";' wraps the cursor back to the top
- >of the screen instead of scrolling it. How can I get the scrolling to work
- >without resorting to using cprintf?
- >
-
- Check out the constream object. It is new to version 3.x and is the stream
- equivalent to conio.h. It includes member functions to handle text mode windows
- with the stream keeping track of which window you are using. The interface can
- be found in <constrea.h>
-
- ---
- Barry L. Wallis wallis@sieras.enet.dec.com
- Database Consultant Prodigy (don't laugh): DNMX41A
- U.S. Production Systems Resource Center
- Los Angeles, CA "No one voted for me, I represent myself"
- ---
-