468,497 Members | 1,897 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,497 developers. It's quick & easy.

What's a substitute of gotoxy in C/C++ on Linux Platform

9
Hi All,

I would like to plot some point on screen in C++. I am working on Linux platform and unable to use gotoxy(row,col); Which would have reduced my work.

Any ways, Do anybody know how do I plot some points on screen on a Linux Platform using C++

Help Appreciated!!!

Thanks,
Oct 11 '06 #1
3 12204
You have got help here, but needed some effort form you :)

Basic Graphics Programming With The Xlib Library
Oct 12 '06 #2



Thanks,
int Gotoxy(int x, int y)
{
char essq[MAX_SCREEN_AREA]={0}; // String variable to hold the escape sequence
sprintf(essq, "\033[%d;%df", y,x);
printf("%s", essq);
return 0;
}
Feb 8 '07 #3
Hi All,

I would like to plot some point on screen in C++. I am working on Linux platform and unable to use gotoxy(row,col); Which would have reduced my work.

Any ways, Do anybody know how do I plot some points on screen on a Linux Platform using C++

Help Appreciated!!!

Thanks,
#define MAX_SCREEN_AREA 100
int Gotoxy(int x, int y)
{
char essq[MAX_SCREEN_AREA]={0}; // String variable to hold the escape sequence
sprintf(essq, "\033[%d;%df", y,x);
printf("%s", essq);
return 0;
}
Feb 8 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

92 posts views Thread by Reed L. O'Brien | last post: by
5 posts views Thread by google account | last post: by
1 post views Thread by Renato T. Forti | last post: by
21 posts views Thread by thomson | last post: by
14 posts views Thread by cat_dog_ass | last post: by
26 posts views Thread by Albert | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.