Page 1 of 1

Checking Logic

Posted: Mon Aug 19, 2019 5:43 am
by davidwiththenicehat
With a previous client I worked on sending communications to a 'mini-console' was difficult due to need for multi line support...
With mudlet I can control the number of characters that are in a line.
Also I am using a filter function that wraps text that is shown to screen. So it is always wrapped already... Even if there are issues getting character size of a console is easy with lua.

My question, will setting a very high (wrap lines at x characters) cause issues.
I was thinking about making it what ever 5 lines is. Not certain but probably 450?

Thanks for reading.

Re: Checking Logic

Posted: Mon Aug 19, 2019 7:31 am
by Vadi
450 characters in a line should be fine. Try it out!

Re: Checking Logic

Posted: Tue Aug 20, 2019 1:21 am
by davidwiththenicehat
Certainly misunderstood that setting. Was just the word wrap for main console.
Does mudlet decide socket read length or does the host?
I mean to say does mudlet say give me 75 characters or does the server say here is 75 characters for this line?

Re: Checking Logic

Posted: Tue Aug 20, 2019 5:51 am
by Vadi
Yes, it is the word wrap for the main console (and you can also set it per-miniconsole if you wish). It has nothing to do with how much data is read in: that is a low-level implementation detail that players don't have to mess around with, Mudlet makes it "just work" out of the box :)

Mudlet reads in whatever data is sent in from the server, that is how the telnet protocol works.