From: "Tonu Aas" Newsgroups: comp.os.msdos.djgpp References: <9 DOT 187bbe3f DOT 28881b90 AT aol DOT com> Subject: Re: pokeb peekb Date: Thu, 19 Jul 2001 14:43:45 +0300 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Lines: 19 Message-ID: <3b56db3f$0$267$bb624dac@diablo.uninet.ee> NNTP-Posting-Host: 194.204.53.21 X-Trace: 995547967 diablo.uninet.ee 267 194.204.53.21 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > > >> 1) what's the shortest complete program that pokes a face (ascii 1) > > >> into the exact middle of the screen and exits to DOS ? > int main(void) > { > gotoxy(40,12); > printf("\x01\n"); > return 0; > } > > which isn't portable but works in DJGPP at least. More portable, but who says that screen is 80x24 not for example 40*200 ? Tõnu.