I was hoping to make a unix/linux C chat room without sockets, just locally. I can't figure out how to keep the input at the bottom and output at the top. I was really just trying to do this for a self-lesson, hoping to learn some things.

I was hoping someone could point me in the right direction. I was able to move the cursor and get single characters but that is about all. Any links to tutorials would be appreciated, thanks.