Found a different way of emulating a telnet style terminal for the game