delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/16/10:41:32

From: "Michael Stewart" <mike AT reggin DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Full Screen I/O?
Date: Wed, 16 Jun 1999 09:13:49 +0100
Organization: (Posted via) Netcom Internet Ltd.
Message-ID: <7k7m3v$ofr$1@taliesin.netcom.net.uk>
References: <37670469 DOT 501CDD1 AT computerpro DOT com>
NNTP-Posting-Host: hgty.capgemini.co.uk
X-Trace: taliesin.netcom.net.uk 929520575 25083 194.42.240.2 (16 Jun 1999 08:09:35 GMT)
X-Complaints-To: abuse AT corp DOT netcom DOT net DOT uk
NNTP-Posting-Date: 16 Jun 1999 08:09:35 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3155.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Lines: 31
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

paradise AT computerpro DOT com wrote in message
<37670469 DOT 501CDD1 AT computerpro 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.


Sounds like you want to look at

void gotoxy(int x, int y);

Top left corner is 1,1

Michael Stewart


- Raw text -


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