Alternatives to System(Title) or other system functions

I want to make my project work for any O.S.
I need a general purpose alternative to System("any") functions.

Example
for System("PAUSE") i can use

void syspause(){
cout << "Press Enter for terminate"
cin.sync;
cin.ignore;}

but how with system("title Windows Header Name")??

P.S. = I'm italian ,sorry for my bad eng grammar.
You need to decide whether you want your program to be a command line program (in which case it should never assume it even has a window at all) or a windowed program (in which case it should never assume it even has a console at all).

The console window provided on some platforms is a convenience for interacting with non-windowed programs. The console is different on every platform/OS and you should never assume you will have the same size console or even the same ability to set colors, cursor position, or title.
Last edited on
You want the Curses library.

NCurses on *nixen.
PDCurses on Windows.

Google the one for your system to download and install. See http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/ to get started using it.

I have many, many old posts relating to this. Here's one with some links to simple examples to get you started.
http://www.cplusplus.com/forum/general/51564/#msg280396

Hope this helps.
Topic archived. No new replies allowed.