-
Notifications
You must be signed in to change notification settings - Fork 9
UNDO clears screen if color enabled #15
Comments
|
The screen-clearing happens in RestoreColours() in parserm.h |
There appears to be no logical reason to do this screen-clearing. Both with and without the ClearScreen() call, the current colors are reset to the defaults when an UNDO is processed. With the ClearScreen() call disabled, earlier color changes remain intact:
My question now is this: What advantage is gained by doing ClearScreen() when processing RestoreColours()? |
This odd behavior is related to the fact that Glulx's style model is not entirely compatible with that of the Z-machine. One can give suggestions to the Glk layer about color, but you're not guaranteed to get it, monochrome mode notwithstanding. This from @vlaviano:
Therefore I'm going to leave this as-is until @erkyrath does something with the proposal for a Glulx style model. Discussions on this can be found http://www.intfiction.org/forum/viewtopic.php?f=7&t=15730&start=10#p78664 and http://www.intfiction.org/forum/viewtopic.php?f=7&t=19496 |
If a game has declared "Constant COLOUR;", then the screen will be cleared after an UNDO command is issued and before the UNDO is executed. This doesn't happen if color mode is not used. I'm not sure why this was done. Maybe something about undoing something that changed colors?
The text was updated successfully, but these errors were encountered: