-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
kaysen
committed
Mar 13, 2017
1 parent
060a95d
commit 7293bb3
Showing
4 changed files
with
58 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env python | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env python | ||
# -*- coding:utf-8 -*- | ||
import sys, ctypes | ||
|
||
def set_cmd_text_color(color, handle=ctypes.windll.kernel32.GetStdHandle(-11)): | ||
Bool = ctypes.windll.kernel32.SetConsoleTextAttribute(handle, color) | ||
return Bool | ||
|
||
|
||
def resetColor(): | ||
set_cmd_text_color(0x0f) | ||
|
||
|
||
def printDarkGray(mess): | ||
set_cmd_text_color(0x08) | ||
sys.stdout.write(mess) | ||
resetColor() | ||
|
||
|
||
def printDarkGreen(mess): | ||
set_cmd_text_color(0x02) | ||
sys.stdout.write(mess) | ||
resetColor() | ||
|
||
|
||
def printDarkYellow(mess): | ||
set_cmd_text_color(0x06) | ||
sys.stdout.write(mess) | ||
resetColor() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters