EDIT : My bad. Its getsyx() and setsyx() not xy.
Hello. I actually want to update three different lines in console simultaneously (well, psudo), i.e. in a loop they will be constantly updated and they are three separate lines. Now of course the line are separated by \n s but I don't want to keep printing print new lines all the way throughout the loop. Just the three lines should be updated as the loop proceeds. Hope you get me
Now, I have left my hope with the std C library. I have been trying to manipulate the terminal with the ncurses library. As far as I've known yet I can do it like
getsxy(); /* get current cursor pos */
print 3 lines;
setsxy(); /* set curr cursor pos (only modifies the data structure)*/
wclrtobot(); /* clr from cursor to end of screen */
doupdate(); /* display the updated buffer */
Now, problem is, somehow, the linker throws undefined reference errors for getsxy and setsxy although not for the other functions from the library ( am compiling with gcc -lncurses )
Can someone help me out? This is first time am dealing with the curses library.
btw, here's the program am working on ::
https://evilzone.org/c-c/(c)-matrix-effect-printing-text/msg44011/#msg44011