Equivalent to gotoxy() of BorlandC

Hi

I want to write a programme in C in text-mode input screen. This is
possible in BorlandC gotoxy() library function.

What I have to use to develop a text-mode applications.

bye


Lakshmanan R

“lakshmanan R” <rl@bhelrpt.co.in> wrote in message
news:cf2a5p$fpo$1@inn.qnx.com

Hi

I want to write a programme in C in text-mode input screen. This is
possible in BorlandC gotoxy() library function.

Look at the ncurse library



What I have to use to develop a text-mode applications.

bye


Lakshmanan R

I have tried the following code in qnx6.2.1 with qcc. I am getting error
during compilation.

========================
#include <ncurses.h>

int main()
{
initscr(); /* Start curses mode /
printw(“Hello World !!!”); /
Print Hello World /
refresh(); /
Print it on to the real screen /
getch(); /
Wait for user input /
endwin(); /
End curses mode */

return 0;
}

undefined reference to initscr()
undefined reference to printw()
undefined reference to referesh()
undefined reference to getch()
undefined reference to endwin()



can any one help

bye

Lakshmanan

Mario Charest wrote:


“lakshmanan R” <> rl@bhelrpt.co.in> > wrote in message
news:cf2a5p$fpo$> 1@inn.qnx.com> …
Hi

I want to write a programme in C in text-mode input screen. This is
possible in BorlandC gotoxy() library function.

Look at the ncurse library

What I have to use to develop a text-mode applications.

bye


Lakshmanan R

Lakshmanan R wrote:

I have tried the following code in qnx6.2.1 with qcc. I am getting error
during compilation.
undefined reference to initscr()
undefined reference to printw()
undefined reference to referesh()
undefined reference to endwin()

You need to link “-l ncurses” (these routines are in a separate library,
and not in the standard libc).

If you can count on the terminal type, here’s the control code for vt100:
printf("\033[%d;%df", row, column);

lakshmanan R wrote:

Hi

I want to write a programme in C in text-mode input screen. This is
possible in BorlandC gotoxy() library function.

What I have to use to develop a text-mode applications.

bye

Lakshmanan R