File: colours.py

package info (click to toggle)
python-stomp 8.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 632 kB
  • sloc: python: 4,176; makefile: 248; xml: 42; sh: 1
file content (18 lines) | stat: -rw-r--r-- 277 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Colour 'constants' used by the command line client.
"""

import platform


if platform.system().lower() != "windows":
    GREEN = "\33[32m"
    RED = "\33[31m"
    NO_COLOUR = "\33[0m"

    BOLD = "\33[1m"
else:
    GREEN = ""
    NO_COLOUR = ""
    RED = ""

    BOLD = ""