gotoxy()

hi there
i tried to use gotoxy() to get the output on specific location on the
screen, but i have got the error says gotoxy_ is an undefined reference …
can anybody please tell me how to do this?

thanks
rest

What I do is capture the whole screen. I guess you could adapt that and only
capture a little piece of screen.
If you only read one pixel this is overkill. (this works on QNX WINDOWS)

char *buffer;
HDR *header;
IMAGE_DEF *image;
char *data;

///get one line at a time
for(i=0; i<480;i++){
buffer = ScreenImage(i11,0,11,7040,“D”); ///this is in twips(11 * pixel)
header = (HDR
) buffer; ///advance pointer
image = (IMAGE_DEF*) (header+1);
image = (IMAGE_DEF*) ((char )image+header->tag[0]+2);
data = (char
) (image + 1); ///this is a pointer to the raw bitmap data



///this is the way to get the palette
unsigned r,g,b;
ScreenColorInfo(i,NULL, &r, &g, &b, “D”);
///gets color of palette color i (replace with integer)

LP



“Rest” <ayiek@yahoo.com> wrote in message news:9fijqg$k2a$1@inn.qnx.com

hi there
i tried to use gotoxy() to get the output on specific location on the
screen, but i have got the error says gotoxy_ is an undefined reference …
can anybody please tell me how to do this?

thanks
rest

Porting some DOS code, eh :slight_smile:
Printf the escape sequence for the terminal.
Look at the Dev.ansi docs in the helpviewer for the codes.

On Tue, 5 Jun 2001 22:41:29 +1000, “Rest” <ayiek@yahoo.com> wrote:

hi there
i tried to use gotoxy() to get the output on specific location on the
screen, but i have got the error says gotoxy_ is an undefined reference …
can anybody please tell me how to do this?

thanks
rest

Use ncurses library …

Alex Cellarius <acellarius@systems104.co.za> wrote in message
news:1105_991780965@alex.telkomsa.net

Porting some DOS code, eh > :slight_smile:
Printf the escape sequence for the terminal.
Look at the Dev.ansi docs in the helpviewer for the codes.

On Tue, 5 Jun 2001 22:41:29 +1000, “Rest” <> ayiek@yahoo.com> > wrote:
hi there
i tried to use gotoxy() to get the output on specific location on the
screen, but i have got the error says gotoxy_ is an undefined reference

can anybody please tell me how to do this?

thanks
rest
\