Having worked on a MUD client myself years ago, I'd recommend thinking about a parser:-)

MUDs tend to send not just data but escape sequences, etc and you will need to keep track of state.

Cheers,
_