Checking Logic

Post Reply
davidwiththenicehat
Posts: 23
Joined: Tue Jul 02, 2019 4:29 pm

Checking Logic

Post 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.

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: Checking Logic

Post by Vadi »

450 characters in a line should be fine. Try it out!

davidwiththenicehat
Posts: 23
Joined: Tue Jul 02, 2019 4:29 pm

Re: Checking Logic

Post 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?

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: Checking Logic

Post 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.

Post Reply