Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text Position Command 2

Status
Not open for further replies.

iceman2654

Programmer
Jul 9, 2003
53
CA
Hello, i'm new to C programming and I was wondering if there's a way to position text on the screen by giving it coordinates such as the LOCATE command in Qbasic
 
Yes.

That's all I can say about it, though, since it's platform-specific. The C language doesn't assume that a "screen" exists, which is good since there's no screen on a refrigerator or a Mars probe.


What operating system and compiler are you working with?

On Unix and Unix-like systems, you're probably looking for the ncurses library.

I don't know any specifics for Windows and other systems, but just say which you're looking for and I'm sure someone can tell you.
 
i'm using windows 2000 and it's not quite a compiler but i'm using quincy. I also have visual C++ 6.0

 
Well you'll probably need VC6 to get that kind of detailed control over the screen.

SetConsoleCursorPosition is one of many console functions available for controlling the output of information to a win32 console.

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top