Maybe my question is odd, or maybe already answered, but i didn't knew another way of searching a solution (the title i selected may get an idea of how weird is it)
Its quite simple, i'm creating an application that has a command prompt, this is, like ms-dos the C:\>_ , for this, my guess is by using a puts and a fgets (for not bufferoverflow my array) like this:
puts("SHELL>");
fgets(buffer,MAX_INPUT_LENGTH,stdin);
but this snippet throws me this on my console:
SHELL>
_
In the past time, i've been used terminal libraries like the infamous conio.h in turboc, but now i'm using gnu cc, and i don't know how to do this in C.
In C++ i may do this by using cout && cin
sorry if this looks like a dumb question, and thanks for the help!