MCPcopy Index your code
hub / github.com/google/python-fire / ResetConsoleAttr

Function ResetConsoleAttr

fire/console/console_attr.py:664–676  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

662
663
664def 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
679def GetCharacterDisplayWidth(char):

Callers

nothing calls this directly

Calls 1

GetConsoleAttrFunction · 0.85

Tested by

no test coverage detected