delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/05/15:10:07

Date: Sun, 5 Dec 1999 14:43:40 -0500 (EST)
From: Jude Dashiell <jdashiel AT CLARK DOT net>
To: djgpp AT delorie DOT com
Subject: gcc and ansi.sys question
Message-ID: <Pine.GSO.4.05.9912051432440.28045-100000@shell.clark.net>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

I wrote some code and compiled it using gcc and found I must have been
doing things incorrectly with screen control since results for sighted
users were unuseable.  A short relevant sample of the code follows:
#include <stdio.h> 
#include <conio.h>

row=2;
col=30;
gotoxy(row,col);
printf("natal chart locator");
row=4;
col=3;
gotoxy(row,col);
printf("astrological");

My guess is that stdio.h and conio.h are fighting.  I'd like to do things
in such a way as to avoid conflict, so does gcc have ansi screen control
functions outside of conio.h that can replace gotoxy()?
Since I use a screen reader when I work with gcc it's essential I avoid
any extra cprintf() functions since those write to the screen in such a
way as to mess output up very badly.  Specifically the screen output
sounds jumbled.

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

jude <jdashiel AT clark DOT net>

- Raw text -


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