mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-02 11:07:57 +00:00
I have no idea which one of the existing pypi modules is best for these, and given that we're using just two escape codes, I think it makes sense not to bother with a more capable third-party module just for two magic strings.
13 lines
211 B
Python
13 lines
211 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
'''
|
|
gnpy.core.ansi_escapes
|
|
======================
|
|
|
|
A random subset of ANSI terminal escape codes for colored messages
|
|
'''
|
|
|
|
red = '\x1b[1;31;40m'
|
|
reset = '\x1b[0m'
|