Mail Archives: djgpp/1999/12/07/01:13:30
I don't use cprintf() since cprintf() will not speak on my screen reader
software. Though the program is being compiled for a largely sighted
audience of other astrologers, the programmer is totally blind and the
screen reader software is mandatory. The fflush(stdout) alternative
following printf() without "\n" as the ends of their lines is a reasonable
sacrifice in this case. On Mon, 6 Dec 1999, Alexey Zakhlestine wrote:
> try using "cprintf " instead of "printf"
>
> Jude Dashiell wrote:
>
> > 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>
>
--------------------
jude <jdashiel AT clark DOT net>
- Raw text -