delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/16/07:29:27

Message-ID: <37670469.501CDD1@computerpro.com>
From: paradise AT computerpro DOT com
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Full Screen I/O?
Lines: 22
Date: Tue, 15 Jun 1999 20:56:58 -0500
NNTP-Posting-Host: 206.147.79.145
X-Trace: newsfeed.slurp.net 929498027 206.147.79.145 (Tue, 15 Jun 1999 20:53:47 CDT)
NNTP-Posting-Date: Tue, 15 Jun 1999 20:53:47 CDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

How is full screen I/O with DJGPP in C++ acomplished?
For example, if I write the code:

#include<iostream.h>
#include<pc.h>
int main()
    {
    ScreenClear():
    cout << "Hello World";
    return 0;
    }

Compiled and executed, this would clear the screen and print Hello World
to the screen at the current curser position.
Could someone rewrite the above code and include lines to change the
current cursor position to say the upper left hand corner of the screen?

This would really help me get unstumped.

any help would surely be appreciated
    paradise

- Raw text -


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