delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/05/15:25:35

From: "DeHackEd" <notgiven AT out DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <36920c79 AT news DOT newsfeeds DOT com> <36923a16 DOT 5381826 AT news>
Subject: Re: ansi "graphics" in DJGPP
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.0810.800
X-Mimeole: Produced By Microsoft MimeOLE V5.00.0810.800
Message-ID: <IAtk2.5008$fz5.218@tundra.ops.attcanada.net>
Date: Tue, 5 Jan 1999 15:23:29 -0500
NNTP-Posting-Host: 142.194.222.200
X-Trace: tundra.ops.attcanada.net 915563944 142.194.222.200 (Tue, 05 Jan 1999 19:19:04 GMT)
NNTP-Posting-Date: Tue, 05 Jan 1999 19:19:04 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I believe he is refering to ANSI.SYS the DOS driver, not ANSI C, the compliance
company.

The answer is yes. The following works just fine, though I can think of a few
functions that serve just as well in DJGPP (considder looking at conio.h).

printf("\x1b[31mHello \x1b[35;42mworld!\x0b[0m");

I havn't looked at this myself, so don't expect the colours to turn out nicely.
I just chose some numbers out of the blue. To make the escape signal ANSI.SYS
uses, use "\x1b" which inserts hex 0x1b, byte 27.


Stuart Hall <fprintf AT iname DOT com> wrote in message news:36923a16 DOT 5381826 AT news...
>ANSI graphics?  No such thing that I know of - I don't think ANSI
>cares about things such as colors or even graphics -- although you can
>certainly manipulate ASCII or even text placement to create some
>rudimentary graphics (for instance, I have used the / |  \ and -
>characters to create a nice revolving graphic when the system is
>busy).
>
>
>
>On Tue, 5 Jan 1999 07:57:35 -0800, "xabbott" <xabbott AT none DOT net> so
>kindly spent valuable time writing:
>
>>Hello,to make it short right away. With plain of DJGPP could I
>>make ansi graphics (colored ascii graphics) using C++?
>>
>>Sorry if I didn't give enough details but I really just need a yes or no
>>answer and maybe if there are any docs/sites that would have the info on it.
>>Not really needed though,I have unread books and know how to do it in
>>Borland C++.
>>
>>Thanks.
>>
>>
>>
>>
>>
>>---== http://www.newsfeeds.com - Largest Usenet Server In The World! ==---
>
>- ratboy
>(don't be surprised if you email me and the response
>comes back from somewhere else - iname.com is just a
>forwarding service)
>


- Raw text -


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