Open GoogleCodeExporter opened 9 years ago
IAC GA shouldn't be a newline, it should be handled differently. Treating it as
a newline would be a reasonable fallback option, but correct prompt handling
would involve squirreling the prompt away and holding it at the bottom of the
display even as more lines of text come in.
I've attached an image that demonstrates the default behaviour (simply
stripping the TELNET codes, top half of the image), and fully correct behaviour
(saving the prompt and attaching it to inputted text, bottom half of image). It
is rather more complicated to code this way, but it is quite handy. But failing
that, treating them as newlines would be a reasonable alternative.
Original comment by rosuav@gmail.com
on 18 Dec 2010 at 11:37
Attachments:
It gets complicated on different MUDs with different drivers. If you'd like,
you can peek at Mudlets handling, which went through this stage and is adapted
for several engines already:
http://mudlet.git.sourceforge.net/git/gitweb.cgi?p=mudlet/mudlet;a=blob;f=src/ct
elnet.cpp;h=74ab0007ef65f5e1501b4912bf1250a5e39c141c;hb=HEAD
Original comment by vadi.lu...@gmail.com
on 19 Dec 2010 at 1:46
Original issue reported on code.google.com by
vadi.lu...@gmail.com
on 24 Aug 2010 at 8:45