You don't use a C program just to change your prompt. You're overcomplicating. Edit: Also, presumably, system() creates a new process (though I'm not sure about this). It'd be weird, in the code for a shell to use system() to change the prompt; surely you'd have some code that changes it and displays a new prompt..
Last edited by Nylex; 09-11-2011 at 05:11 AM.