When I close the "popup box" I need to restore what was originally behind it (if there was something).
Is there an ANSI way of doing this (ie: CSI control codes), or do I need to repaint what I overwrote (and therefore I need to know what I'll overwrite before placing the popup box)? If the later, is there an ANSI CSI way of knowing what is on the screen already before overwriting it?
I am rendering an ANSI page - I then want to render a "popup box" on the page - a little similar to what occurs when you press ESC in mystic and the "Editor Commands" popup appears.
Is there an ANSI way of doing this (ie: CSI control codes), or do I need to repaint what I overwrote (and therefore I need to know what I'll overwrite before placing the popup box)? If the later, is there an ANSI CSI way of knowing what is on the screen already before overwriting it?
Failing that, you'd
basically need to create your own display-management thing.
I am writing a door game, and I have Pop-Up Menu's. When the menu is closed, I simply have the program Re-draw the screen behind the popup.
is placed where. (I was hoping that I could leverage the client to help me to an extent - seems I cant ...)
So I have a question that hopefully somebody can help me with.
I am rendering an ANSI page - I then want to render a "popup box" on the page - a little similar to what occurs when you press ESC in mystic and the "Editor Commands" popup appears.
When I close the "popup box" I need to restore what was originally
behind it (if there was something).
Is there an ANSI way of doing this (ie: CSI control codes), or do I need to repaint what I overwrote (and therefore I need to know what I'll overwrite before placing the popup box)? If the later, is there an ANSI CSI way of knowing what is on the screen already before overwriting it?
Mystic has two relevant MCI codes for this. <pipe>SS and <pipe>RS. SS will save the contents of the terminal screen, and RS will restor the contents of the terminal screen.
I am rendering an ANSI page - I then want to render a "popup box" on the page - a little similar to what occurs when you press ESC in mystic and the "Editor Commands" popup appears.
When I close the "popup box" I need to restore what was originally
behind it (if there was something).
Are you using Mystic?
On 12/18/18, Gryphon said the following...
Mystic has two relevant MCI codes for this. <pipe>SS and <pipe>RS. will save the contents of the terminal screen, and RS will restor the contents of the terminal screen.
I assume this is implemented server side, ie: it is the server knowing to repaint the screen, not instructions sent to the client to "remember" and then "paste"?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 45:41:20 |
Calls: | 6,648 |
Files: | 12,197 |
Messages: | 5,329,775 |