0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-14 22:11:06 +01:00
construct/include/ircd/color.h

50 lines
1.2 KiB
C
Raw Normal View History

2018-02-04 03:22:01 +01:00
// Matrix Construct
//
2018-01-12 12:21:58 +01:00
// Copyright (C) Matrix Construct Developers, Authors & Contributors
2018-02-04 03:22:01 +01:00
// Copyright (C) 2016-2018 Jason Volk <jason@zemos.net>
2018-01-12 12:21:58 +01:00
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
2018-02-04 03:22:01 +01:00
// copyright notice and this permission notice is present in all copies. The
// full license for this software is available in the LICENSE file.
#pragma once
#define HAVE_IRCD_COLOR_H
/// Legacy mIRC color swatch
namespace ircd::color
{
2018-01-12 12:21:58 +01:00
enum mode :uint8_t;
enum class fg;
enum class bg;
}
2018-01-12 12:21:58 +01:00
enum ircd::color::mode
:uint8_t
{
OFF = 0x0f,
BOLD = 0x02,
COLOR = 0x03,
ITALIC = 0x09,
STRIKE = 0x13,
UNDER = 0x15,
UNDER2 = 0x1f,
REVERSE = 0x16,
};
enum class ircd::color::fg
{
WHITE, BLACK, BLUE, GREEN,
LRED, RED, MAGENTA, ORANGE,
YELLOW, LGREEN, CYAN, LCYAN,
LBLUE, LMAGENTA, GRAY, LGRAY
};
enum class ircd::color::bg
{
LGRAY_BLINK, BLACK, BLUE, GREEN,
RED_BLINK, RED, MAGENTA, ORANGE,
ORANGE_BLINK, GREEN_BLINK, CYAN, CYAN_BLINK,
BLUE_BLINK, MAGENTA_BLINK, BLACK_BLINK, LGRAY,
};