![]() |
#1 |
New Member
Join Date: Nov 2014
Location: Deepest Wiltshire, UK
Home MUD: WoTMUD
Posts: 15
![]() |
![]() Looking through the client I code for issues list - I found someone wanting to display text that the MUD Game server has intentionally (but not irreversibly) hidden from the player by setting the foreground colour to be the same as the background one . I am also aware of the SGR codes 8 / 28 to conceal/reveal text.
This got me thinking back to the days of teletext on analogue television in the UK (I used to design the hardware for them and have messed around with a teletext generator which was loaded with pages via a serial communications port!) That had a similar feature that was used for quizzes / jokes and the like where the answer or punchline was conceal (foreground colour artificially rendered in the background colour) until a specific (dedicated to that function) button was pressed on the remote control that would cancel the concealment and show the previously hidden text. Does anyone have any thoughts about how this could be replicated in the client in a non-client specific manner. Some other clients reveal the text when it is selected - for Mudlet the end-user has to, currently, copy the text to, say, a GUI text editor. I am considering at present:However both of these options would be specific to this client. I was wondering whether any other client's coders wish to propose, say, a currently spare ESC SGR code or an out-of-band protocol that MUD servers could utilise to change/toggle the showing or hiding of concealed text. Importantly for the Mudlet client case it does not allow the Server to change text data that has already been received by it - so what is wanted is something that would say "go and show" or "go and hide" the text that has previously been marked to be concealed (either by the SGR 8 m code or by being painted in the same fire and background colour). I suppose one option would be to use an OSC (operating system command) type code - perhaps something along the lines of to conceal the text and where <ST> is the normal "String Terminator" {i.e. <ESC> followed by \ (backslash) which is the proper characters (bytes) to end an <OSC> command}... |
![]() |
![]() |