Coder Social home page Coder Social logo

Parts of output are missing. about blightmud HOT 6 CLOSED

blightmud avatar blightmud commented on September 24, 2024
Parts of output are missing.

from blightmud.

Comments (6)

LiquidityC avatar LiquidityC commented on September 24, 2024

It's not missing really. Looking at your output you can see that the line that is 'incomplete' is an identical prefix to the line below. This is because all the data is not sent in one continuous stream, rather it's truncated.

This testserver doesn't send IAC,GA commands so we have to guess if we have a prompt or not. When we're not certain, we guess that it's a prompt but keep the contents in buffer, just in case there is more data to get.

So what you are seeing is the received chunk followed by a guess at a prompt. We then instantly receive more data and prepend it with what we thought was a prompt on the last line. So data isn't lost. It's just a visual artifact.

If you have more info on how to correctly guess what's a prompt I'd love to hear it because I have no clue what else to do if we don't get a IAC,GA command.

from blightmud.

LiquidityC avatar LiquidityC commented on September 24, 2024

I have one solution after some testing that helps a tad. If we peek the stream before assuming we have a prompt to make sure there isn't more data coming then we get more accurate guessing. It's not perfect but it solves this particular case. Not sure how it would perform in other instances.

from blightmud.

LiquidityC avatar LiquidityC commented on September 24, 2024

Ignore my "potential" solution I mentioned above. It's not a solid option at all. 🤣

from blightmud.

lisdude avatar lisdude commented on September 24, 2024

Ah, I'm not very observant I guess!

MOOs don't have a prompt, so could we just say: /set prompt=off ?

Then there's no need to guess what's a prompt because it's 100% certain that there isn't one. Or uh. I guess /set is global, so maybe a Lua toggle? (A bit sleep deprived here, thinking is hard work.)

from blightmud.

LiquidityC avatar LiquidityC commented on September 24, 2024

Not any easy problem. We have modes for "UnterminatedPrompt" eg. no IAC,GA, "TerminatedPrompt" eg. sends IAC,GA guess we could try to capture a 3:rd option "EmptyPrompt". But I don't want the user to have to bother about this crap. I want it to just work out of the box. Shouldn't be too hard to guess. But we really do need to avoid false positives.

I'll leave this one up for discussion.

from blightmud.

LiquidityC avatar LiquidityC commented on September 24, 2024

I've implemented a third "telnet mode" for the client which is the "NoPrompt" mode. This should provide nicer behavior on MOO's and remove the artifact mentioned in this issue. Should be in shortly.

from blightmud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.