| delorie.com/archives/browse.cgi | search |
| From: | "Tom St Denis" <tomstdenis AT yahoo DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| References: | <9 DOT 187bbe3f DOT 28881b90 AT aol DOT com> |
| Subject: | Re: pokeb peekb |
| Lines: | 39 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 6.00.2462.0000 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2462.0000 |
| Message-ID: | <Opz57.10029$2V.2012684@news3.rdc1.on.home.com> |
| Date: | Thu, 19 Jul 2001 11:22:22 GMT |
| NNTP-Posting-Host: | 24.112.8.23 |
| X-Complaints-To: | abuse AT home DOT net |
| X-Trace: | news3.rdc1.on.home.com 995541742 24.112.8.23 (Thu, 19 Jul 2001 04:22:22 PDT) |
| NNTP-Posting-Date: | Thu, 19 Jul 2001 04:22:22 PDT |
| Organization: | Excite AT Home - The Leader in Broadband http://home.com/faster |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
<Sterten AT aol DOT com> wrote in message news:9 DOT 187bbe3f DOT 28881b90 AT aol DOT com...
> Eli Zaretskii wrote:
>
> >On Thu, 19 Jul 2001 Sterten AT aol DOT com wrote:
> >
> >> 1) what's the shortest complete program that pokes a face (ascii 1)
> >> into the exact middle of the screen and exits to DOS ?
> >
> >_farpokeb (_dos_ds, ScreenPrimary + 12*160 + 80, 1);
> >
> >(This is not a complete program, but the rest is easy to add.)
>
> not for me. Although I found and printed some helpful tutorials
> from avly meanwhile.
> Here are my attempts so far:
<snip>
Why do you have to put a smiley in the middle of the screen? Some wierd
obsession?
Anyways in DJGPP you can use
#include <stdio.h>
#include <conio.h>
int main(void)
{
gotoxy(40,12);
printf("\x01\n");
return 0;
}
which isn't portable but works in DJGPP at least.
Tom
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |