Resets the console attribute state to the console default. Args: encoding: Reset to this encoding instead of the default. ascii -- ASCII. This is the default. utf8 -- UTF-8 unicode. win -- Windows code page 437. Returns: The global ConsoleAttr state object.
(encoding=None)
| 662 | |
| 663 | |
| 664 | def ResetConsoleAttr(encoding=None): |
| 665 | """Resets the console attribute state to the console default. |
| 666 | |
| 667 | Args: |
| 668 | encoding: Reset to this encoding instead of the default. |
| 669 | ascii -- ASCII. This is the default. |
| 670 | utf8 -- UTF-8 unicode. |
| 671 | win -- Windows code page 437. |
| 672 | |
| 673 | Returns: |
| 674 | The global ConsoleAttr state object. |
| 675 | """ |
| 676 | return GetConsoleAttr(encoding=encoding, reset=True) |
| 677 | |
| 678 | |
| 679 | def GetCharacterDisplayWidth(char): |
nothing calls this directly
no test coverage detected