multi_tools/console/colors.py
def enable_ansi(self):
        """
        Enable ansi codes for the command prompt (the console).
        **Only works on Windows**
        """
        if sys.platform == "win32":
            self.enabled = True
            import ctypes
            kernel32 = ctypes.WinDLL('kernel32')
            hStdOut = kernel32.GetStdHandle(-11)
            mode = ctypes.c_ulong()
            kernel32.GetConsoleMode(hStdOut, ctypes.byref(mode))
            mode.value |= 4
            kernel32.SetConsoleMode(hStdOut, mode)
        else:
            raise NotImplementedError("This function is only implemented on Windows!")

        Enable ansi codes for the command prompt (the console).
        **Only works on Windows**
        
Enable ansi codes for the command prompt (the console).
Only works on Windows
Enable ansi codes for the command prompt ( the console ) . Only works on Windows
def enable_ansi(self):
        if sys.platform == "win32":
            self.enabled = True
            import ctypes
            kernel32 = ctypes.WinDLL('kernel32')
            hStdOut = kernel32.GetStdHandle(-11)
            mode = ctypes.c_ulong()
            kernel32.GetConsoleMode(hStdOut, ctypes.byref(mode))
            mode.value |= 4
            kernel32.SetConsoleMode(hStdOut, mode)
        else:
            raise NotImplementedError("This function is only implemented on Windows!")
def enable_ansi ( self ) : if sys . platform == "win32" : self . enabled = True import ctypes kernel32 = ctypes . WinDLL ( 'kernel32' ) hStdOut = kernel32 . GetStdHandle ( - 11 ) mode = ctypes . c_ulong ( ) kernel32 . GetConsoleMode ( hStdOut , ctypes . byref ( mode ) ) mode . value |= 4 kernel32 . SetConsoleMode ( hStdOut , mode ) else : raise NotImplementedError ( "This function is only implemented on Windows!" )
Enable ansi codes for the command prompt (the console).
Enable ansi codes for the command prompt ( the console ) .
"""
        Enable ansi codes for the command prompt (the console).
        **Only works on Windows**
        """
self