File Manager V1.5

[SYSTEM@ROOT]: /usr/share/doc/python3-colorama/examples/
INJECT_FILE:
NEW_ENTRY:

FILE_CONTENT: demo08.py

from __future__ import print_function
import fixpath
from colorama import colorama_text, Fore


def main():
    """automatically reset stdout"""
    with colorama_text():
        print(Fore.GREEN + 'text is green')
        print(Fore.RESET + 'text is back to normal')

    print('text is back to stdout')

if __name__ == '__main__':
    main()
[ KEMBALI ]