Mudlet features and API requests
Re: Mudlet API requests
For 2.1, please, please, please can we improve the screenreader capabilities?
Re: Mudlet API requests
We'd certainly like to, but given absolutely zero feedback from people who use them, it's proven impossible to - so work on that stalled. It can't progress unless people actually interested in using the screenreader edition will be interested in making it happen.
Re: Mudlet features and API requests
A function to convert ANSI sequences to cecho-friendly codes, and/or support for echoing ANSI to a miniconsole.
I'm implementing GMCP and would like to have ANSI codes in some fields (equipment/inventory related, so the main code supplies pre-formatted data).
I know this could be done in Lua, but a C function seems better - and presumably 99% of the code already exists to support colour.
I'm implementing GMCP and would like to have ANSI codes in some fields (equipment/inventory related, so the main code supplies pre-formatted data).
I know this could be done in Lua, but a C function seems better - and presumably 99% of the code already exists to support colour.
Re: Mudlet features and API requests
For the main display, you can work out what is the rgb color of text with http://wiki.mudlet.org/w/Manual:UI_Functions#getFgColor. Otherwise, with GMCP being an out of band data protocol, I don't think ANSI should be mixed in, sorry.
Re: Mudlet features and API requests
The use case isn't hugely relevant to the function request; a routine to translate ANSI sequences is generic.
In general, I'd agree that mixing ANSI into GMCP could be bad, however I'm retrofitting an existing codebase, rather than starting from scratch, so some design compromises need to be made.
In general, I'd agree that mixing ANSI into GMCP could be bad, however I'm retrofitting an existing codebase, rather than starting from scratch, so some design compromises need to be made.
Re: Mudlet features and API requests
The use case I think is, since otherwise there's no point in adding what then becomes unused clutter. Mudlet also handles the ANSI sequences coming in from the MUD where they matter adequately, both retrieving and settings colors is also adequately handled.
Though to be fair, all this would involve is a table lookup in Lua, so it will not be that slow - if it even will be slower. Talking at minute frequencies, switching to the C context in Lua isn't fast either, so a C function that does minute work won't get you the advantage you think and might even be slower than a pure Lua function.
Though to be fair, all this would involve is a table lookup in Lua, so it will not be that slow - if it even will be slower. Talking at minute frequencies, switching to the C context in Lua isn't fast either, so a C function that does minute work won't get you the advantage you think and might even be slower than a pure Lua function.
Re: Mudlet features and API requests
I'd love if the onDisconnectionEvent was raised when it's the mud that closes the connection too (as a result of quitting or timing out), rather than only when you disconnect manually. If that's undesirable for some reason, another event that is raised then.
Another thing that would be great to have is a function that returns your current mouse cursor coordinates. The MousePress and MouseRelease events already give you that info when you click, but for some things (e.g. drag-and-drop of GUI elements) it would be useful to read the current mouse position at times where you aren't clicking too.
Another thing that would be great to have is a function that returns your current mouse cursor coordinates. The MousePress and MouseRelease events already give you that info when you click, but for some things (e.g. drag-and-drop of GUI elements) it would be useful to read the current mouse position at times where you aren't clicking too.
Re: Mudlet features and API requests
Thanks, onDisconnectionEvent will be fixed for 2.1.
Current mouse coordinates - fair enough. I guess you could track it on a timer.
Current mouse coordinates - fair enough. I guess you could track it on a timer.
Re: Mudlet features and API requests
Joining the support with the group requesting some semblance of hover method for labels.
setLabelHoverText(window, text) perhaps?
setLabelHoverText(window, text) perhaps?
Re: Mudlet features and API requests
Oh, libgit2 for Mudlet! *dreams*