code = 0 Save the current graphic rendition attributes.
Takes a list of codes to save. If no parameters are specified all attributes are saved.
The current setting for each selected attribute is saved to a stack of implementation defined size. The topmost entry of the stack can be restored using restore rendition attributes.
| code | attribute |
|---|---|
| 1 | bold |
| 2 | faint |
| 3 | italic |
| 4 | underline |
| 5 | blink |
| 7 | inverse |
| 8 | invisible |
| 9 | strikethrough |
| 10 | foreground color |
| 11 | background color |
| 21 | double underline |
since: 345
🛈 The stack has a maximum size of 10 entries.
🛈 in version 344 there have been values for code 12 and 13 which have been "direct color foreground" and "direct color background". These have been removed. Usage of color save/restore in version 344 can lead to glitches.