By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 860 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

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

P: 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
Share this Question
Share on Google+
3 Replies


P: 3
You have got help here, but needed some effort form you :)

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

P: 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

P: 2
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.