Skip to content

Commit 6607375

Browse files
Update osinfo,py
Adding bold font to the output
1 parent e8e8108 commit 6607375

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

‎osinfo.py‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,19 @@
3030
'version',
3131
]
3232

33+
classbcolors:
34+
HEADER='\033[95m'
35+
OKBLUE='\033[94m'
36+
OKGREEN='\033[92m'
37+
WARNING='\033[93m'
38+
FAIL='\033[91m'
39+
ENDC='\033[0m'
40+
BOLD='\033[1m'
41+
UNDERLINE='\033[4m'
42+
3343

3444

3545
forkeyinprofile:
3646
ifhasattr(pl,key):
37-
print(key+": "+str(getattr(pl,key)()))
47+
print(key+bcolors.BOLD+": "+str(getattr(pl,key)())+bcolors.ENDC)
3848

0 commit comments

Comments
(0)