-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcolour.h
42 lines (36 loc) · 899 Bytes
/
colour.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
/*
quIRC - simple terminal-based IRC client
Copyright (C) 2010-13 Edward Cree
See quirc.c for license information
colour: defined colours & mirc-colour-compat
*/
#include <stdlib.h>
#include <stdbool.h>
typedef struct
{
int fore;
int back;
bool hi;
bool ul;
}
colour;
bool eq_colour(colour, colour);
int setcolour(colour); // wrapper for setcol
int s_setcolour(colour, char **, size_t *, size_t *); // wrapper for s_setcol
colour c_mirc(int, int);
colour reverse_colours(colour, bool);
int c_init(void);
extern colour c_list[19];
// These should really be generated procedurally
#define c_msg c_list
#define c_notice (c_list+2)
#define c_join (c_list+4)
#define c_part (c_list+6)
#define c_quit (c_list+8)
#define c_nick (c_list+10)
#define c_actn (c_list+12)
#define c_status c_list[14]
#define c_err c_list[15]
#define c_unk c_list[16]
#define c_unn c_list[17]