forked from cartoon-raccoon/pridefetch
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Choose what stats are displayed (inital implementation) (#18)
Co-authored-by: Skyler <[email protected]>
- Loading branch information
1 parent
9ed33d7
commit 4a4e656
Showing
4 changed files
with
210 additions
and
39 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
__pycache__ | ||
__pycache__ | ||
.idea |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# ASCII color codes for text | ||
clear = "\033[0m\033[39m" | ||
bold = "\033[1m" | ||
red = "\033[31m" | ||
|
||
|
||
def color256(col: int, bg_fg: str) -> str: | ||
# Alias to avoid manually typing out escape codes every time for flags | ||
return f"\033[{48 if bg_fg == 'bg' else 38};5;{col}m" | ||
|
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