how to set console cursor position for a program running in sun machine


we developped a p2p c++ console application running on sun machines, am wondering how to set console cursor position in the terminal we used to run the program, want to have a static manu on top and the bottom display chat room messages, of which should be dynamic. i am a beginner, so it would help alot if you would be more specific and tell me the library name and actual function to use. thanks  alot
Who is Participating?
rstaveleyConnect With a Mentor Commented:
Use the curses library - see
lakshman_ceConnect With a Mentor Commented:
You can try to use the API

The SetConsoleCursorPosition function sets the cursor position in the specified console screen buffer.

BOOL SetConsoleCursorPosition(
  HANDLE hConsoleOutput,
  COORD dwCursorPosition

Declared in Wincon.h; include Windows.h

Plz refer to the following links also

Are you using XWindows?
Please give a little more details on your developement environment.
mwong1216Author Commented:
using Sun Solaris 8, develop by typing code into the xemacs editor, no graphic just command lines,  nothing fancy, using terminal to compile and execute. so setting the cursor also means setting the display position for the terminal. am wondering the above metioned API works for Sun Solaris? or just for Windows? thanks alot
The Microsoft links are Windows-specific
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.