C Chat Room
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.
Thanks for your help. I got a lot of it working now, but I am having a problem figuring out how to read from the chat log (update screen) while still allowing user input. I read that I could use cbreak or halfdelay but that seems to only work with single character input.
I think I found my answer on the FAQ eventually.
I guess I have to getch and append to a buffer.
I'm still not sure how cbreak() comes into play, however.
I did this once on windows. Yes, you would have to use something like getch(0 for this. I updated the screen by using an array of pointers.
If you need an example, let me know.