I need a pointer on how exactly I can use part of the terminal for inpit and another part for output.


Enter the next command> [my command]                                                   <other thread display some stuff>

Because I have a thread to display and a thread to read and I don't want to mix both outputs together.

Is there a way to do it in ANSI C/ posix ?

I just need a pointer to standard routines or library that I can use.


I dont think u can do that.
Its because the console is just a resource and the same resource cannot be shared by more than one process at a time.
When u are doing a read operation the console is reserved for that process and any write operation will only be executed when the read operation is complete and the resource is free.