delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/06/09:13:52

From: Jude Dashiell <jdashiel AT clark DOT net>
Subject: using ansi.sys syntax question
Newsgroups: comp.os.msdos.djgpp
Organization: Verio MidAtlantic
User-Agent: tin/pre-1.4-980105 (UNIX) (SunOS/5.6 (sun4u))
Lines: 28
Message-ID: <2RM24.45715$oa2.363278@iad-read.news.verio.net>
Date: Mon, 06 Dec 1999 11:10:54 GMT
NNTP-Posting-Host: 168.143.0.8
X-Complaints-To: abuse AT verio DOT net
X-Trace: iad-read.news.verio.net 944478654 168.143.0.8 (Mon, 06 Dec 1999 11:10:54 GMT)
NNTP-Posting-Date: Mon, 06 Dec 1999 11:10:54 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In a program I've written I need to position the cursor to row 2 column 30
and print a title.
I decided to use printf() and stdio.h since it works better with
my screen reader than the conio.h library's cprintf() function.
I have the lines:
row=2;
col=30;
printf('\33''\133'row,col'\150'"natal change locator");
in as one of the lines in this program.
The only thing that's holding this program up is my desire to have neat
looking screen formatting.
Calculations and the rest works perfectly.  I'll probably have to
substitute:
*row and *col to get the contents of row and col to write out, and
probably
the octal for the comma character.  Is that likely to be all of the syntax
that's messed up in this line?
I'm curious if djgpp offers any other way to do this at some higher level
of abstraction too.
Other packages like ansisys-c.zip on the simtel archives have existed
since
1995 so this has me wondering about djgpp and maybe something I've missed
reading those info files.


-- --------------------

jude <jdashiel AT clark DOT net>

- Raw text -


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