From: "Damian Yerrick" Newsgroups: comp.os.msdos.djgpp References: <81hnbm$7jq$3 AT portraits DOT wsisiz DOT edu DOT pl> Subject: Re: fprintf() and using under graphic modes Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Message-ID: X-Trace: /Kw5eCNmk6MbzvsaTCYumeiCtRWEajaR/lTCqLcS9g2aF4iFB9iBJJHUAzRNPZO3H2wnSWpcmc/d!bGlefSThPTCm1hKcNH0gNBM7P3yMF7auHvymEtLTSo599v6PPOuwbkiGIyAGhrurrQf4 X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Thu, 25 Nov 1999 03:23:09 GMT Distribution: world Date: Thu, 25 Nov 1999 03:23:09 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Chaos" wrote: > > Shawn Hargreaves napisał(a) w wiadomooci: ... > >I think it would be more robust to read this directly from the VESA > >driver: this can be found in the mode information structure, where > >the ModeAttributes field will have bit 2 set if TTY output is available. > >As a quick test, run the Allegro "vesainfo -v" program, and see whether > >it prints "tty" as part of the ModeAttributes value for the resolution > >you are interested in. > > That's a very valuable information!! > Thank you very much for that. All is need to be done is to check if this > condition is true, and then decide to use fprintf or > self_made_drawing_texts_func. The condition you need to check is if(1) self_made_drawing_texts_func() else printf_family_function() Damian Yerrick