mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
eabb519605
commands and options for network limiting works very well e.g. for 50 KiB/sec up and down ToS (QoS) flag peer number limit TODO some spikes in ingress/download TODO problems when other up and down limit added "otshell utils" - simple logging (with colors, text files channels)
73 lines
1.6 KiB
C++
73 lines
1.6 KiB
C++
// ccolor.hpp
|
|
|
|
// from http://stackoverflow.com/questions/2616906/how-do-i-output-coloured-text-to-a-linux-terminal
|
|
// from http://wiznet.gr/src/ccolor.zip
|
|
// edited by rfree - as part of https://github.com/rfree/Open-Transactions/
|
|
|
|
#ifndef INCLUDE_OT_ccolor
|
|
#define INCLUDE_OT_ccolor
|
|
|
|
#include <iostream>
|
|
#include <stdio.h>
|
|
|
|
namespace zkr
|
|
{
|
|
class cc
|
|
{
|
|
public:
|
|
|
|
class fore
|
|
{
|
|
public:
|
|
static const char *black;
|
|
static const char *blue;
|
|
static const char *red;
|
|
static const char *magenta;
|
|
static const char *green;
|
|
static const char *cyan;
|
|
static const char *yellow;
|
|
static const char *white;
|
|
static const char *console;
|
|
|
|
static const char *lightblack;
|
|
static const char *lightblue;
|
|
static const char *lightred;
|
|
static const char *lightmagenta;
|
|
static const char *lightgreen;
|
|
static const char *lightcyan;
|
|
static const char *lightyellow;
|
|
static const char *lightwhite;
|
|
};
|
|
|
|
class back
|
|
{
|
|
public:
|
|
static const char *black;
|
|
static const char *blue;
|
|
static const char *red;
|
|
static const char *magenta;
|
|
static const char *green;
|
|
static const char *cyan;
|
|
static const char *yellow;
|
|
static const char *white;
|
|
static const char *console;
|
|
|
|
static const char *lightblack;
|
|
static const char *lightblue;
|
|
static const char *lightred;
|
|
static const char *lightmagenta;
|
|
static const char *lightgreen;
|
|
static const char *lightcyan;
|
|
static const char *lightyellow;
|
|
static const char *lightwhite;
|
|
};
|
|
|
|
static char *color(int attr, int fg, int bg);
|
|
static const char *console;
|
|
static const char *underline;
|
|
static const char *bold;
|
|
};
|
|
}
|
|
|
|
#endif
|
|
|