M
MudletSlySven ☕

Area 51

@ArmageDOOOM In the PTBs (but not in the last release) there is an "improvement" that stores each separate commandline's history (up to a specified number of most recently used commands) for each profile within the profile's data and restores them when the profile is next loaded. (It is possible to switch this off for any particular command line - or for ALL of them in a profile - should that be desired.) https://github.com/Mudlet/Mudlet/pull/6767 Ah, it looks like I never documented the Lua API functions that that added - not even in Area51 https://wiki.mudlet.org/w/Area_51 * setSaveCommandHistory(["commandLineName", ] saveHistory) - first argument is optional and is the name of the command line (the main one is the one referred to if omitted) - second argument is whether to save the history between sessions (true) or not (false). Returns true on success or nil plus an error message on failure. * getSaveCommandHistory(["commandLineName"]) - argument is the name of the command line (the main one if omitted) - returns: true or false indicating whether the command history is saved between sessions AND (if true) a message about the number of most recently used commands save or (if false) why a history is not saved. The number of lines to be saved is one of a fixed (logarithmic) scale of numbers that can be configured for ALL command lines in a profile at once (for those who have it enabled) by the profile preferences OR the getConfig/setConfig Lua functions with the commandLineHistorySaveSize argument.
Mudlet
Area 51
This page is for the development of documentation for Lua API functions that are currently being worked on. Ideally the entries here can be created in the same format as will be eventually used in Lua Functions and its sub-sites.
UU
Unknown User82d ago