built in command to change prompt in custom linux/unix shell

I have looked all over google and I find how to change in the bash config files, but my project requires a built in command to change the prompt.

I declared char pointer outside any function, my command modifies it, but when the function returns (int to continue a do while loop) and the prompt is displayed again, it is blank.

I have tried using a structure, union, and even a second char pointer and got the same issue.

I thought using a global char pointer that could be accessed and modified in any function would be the solution to this part of my project.

I would appreciate and will try any response.


Source: c#

Leave a Reply