blob: ac74add2cd1afc316096f7d0605c647ed4caa2c7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/env python
import pyfarbpracht
def test():
ret = pyfarbpracht.printc('green', 'green test with newline', enable_color=True)
print(ret)
ret = pyfarbpracht.printc('cyan', 'cyan but enable_color=False', enable_color=False)
print(ret)
ret = pyfarbpracht.printc('magenta', 'magenta no newline', enable_color=True, no_newline=True)
print(ret)
print(ret)
print('')
print('')
print(pyfarbpracht.colored('green', 'print(colored(... test in green'))
print(pyfarbpracht.colored( \
'green', 'print(colored(... test in green no newline'), end='')
if __name__ == '__main__':
test()
|
in each repos: see "about"-tab (if existing) for more details / README.
dark theme is a modded version of: https://gist.github.com/Yoplitein/f4b671a2ec70c9e743fa