fuzzball-muck / fuzzball

Ongoing development of the Fuzzball MUCK server software and associated functionality.
Other
46 stars 26 forks source link

Idea: categorize messages (including in-server) with prefix coding #692

Open wyld-sw opened 1 year ago

wyld-sw commented 1 year ago

Some MUCKs use muf words and mpi macros to visually separate messages to help identify success, failure, or unknown. I've seen this called "stoplights" as they're usually accompanied by a red/yellow/green color.

This seems to be used well on HLM, and having it built-in for server messages might be good too, in addition to the following MUF primitives and MPI functions:

Sysparms that could work with this include:

If color codes are accepted, we would need to add a reset code in case the prefix doesn't include it.

(names of sysparms, primitives, and functions not set in stone, of course!)

Thoughts?

tanabi commented 1 year ago

I see the utility here. These could be implemented as 'internal defines' for the MUF ones as really each one of these calls is just some strcat's and swap's.

I don't really see a need to make @tune parameters as that kind of neuters the point. It would be trivial for a MUCK to override the system defaults with their own defines if they wanted, or maybe msgmacs overrides for MPI (not sure if msgmacs can override an MPI macro, I've never tried ...)

Can always add the tunes later if there's a request from an operator for that, as well. Just keep it simple to begin with since this is kind of an experimental feature -- you know, we'd be adding this and seeing if anyone wants to use it rather than something a user has requested.

wyld-sw commented 1 year ago

Ok, makes sense about starting off with no @tunes.

HLM uses:

Are these good, or should we come up with our own? If these look good, I may pop into HLM to discuss our intentions.

tanabi commented 1 year ago

Those are fine. The 'good' one is a little weird to me but I don't have a better idea :)