TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Matthew Harris
from: David Nugent
date: 1996-09-20 03:22:59
subject: ANSI Colour Codes

> Well, i wouldn't class this as doing my homework, as i'm
 > writing an ansi editor, and the actual encoding etc, is
 > only a minor part ;)

Actually, apart from "interpreting" the file and placing it into
an internal buffer (where you edit it), then "encoding" it on the
way out, the editor itself need not concern itself too much about ansi
itself. Probably it will be only one of several possible formats - right?
(Sort of like THEDRAW or ANSIPAINT?)

 > but yeah , what i mean by it, I want to be able to save
 > the file as an ansi, and be able to display it on the
 > screen without using an ansi driver if you know what I
 > mean.

Pick up a copy of Bob Stout's SNIPPETS. This is a compilation of postings
made to the C_ECHO and C_PLUSPLUS conferences over many years. It includes
a couple of ANSI interpreters - at least one in C, written by Mark Kimes',
and another one written in C++ by me. If you're after the C++ one, then go
for the most recent version of SNIPPETS, which is - if I recall - only a
couple of months old since the earlier version had a minor bug that
prevented some screens from displaying correctly.

SNIPPETS contains lots of useful code, for the novice and experienced user alike.

 > Instead of using the ansi value for colours etc, I want
 > to be able to use the c equivilant. Hope you know what i
 > mean.

Yep.

Cheers,
David

--- MaltEd/2 1.0.b6
* Origin: Unique Computing Pty Limited (3:632/348)
SEEN-BY: 50/99 620/243 623/630 632/103 107 348 360 633/371 634/388 396
SEEN-BY: 635/301 502 503 544 639/252 711/401 409 410 413 430 808 809 932 934
SEEN-BY: 712/515 713/888 714/906 800/1
@PATH: 632/348 635/503 50/99 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.