Input Lines

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Syntac
Forum Contributor
Posts: 327
Joined: Sun Sep 14, 2008 7:59 pm

Input Lines

Post by Syntac »

I'm writing a command-line PHP chat system. All the little details, nonblocking stdin, all that, are working fine. However: When one client (call him Joe) writes a message and another client (Bob) is in the middle of typing something, Bob's message-in-progress gets clobbered.

I've done an extensive search and found nothing on this. It may be possible to use escape sequences (surprisingly, they work in PHP), but I'd rather have a less hacky, more software-independent solution.
Post Reply