Skip to content
This repository
Newer
Older
100644 43 lines (36 sloc) 0.892 kb
2b3007c2 »
2010-08-21 Highlight escape sequences in input line
1 #pragma once
fcf94957 »
2010-08-15 Refactored .quirc and cmdline parsing; other refactoring
2 /*
003269ba »
2011-01-02 wrote render_buffer(); untested
3 quIRC - simple terminal-based IRC client
4e3364b8 »
2013-05-24 Nudge copyright year to 2013
4 Copyright (C) 2010-13 Edward Cree
003269ba »
2011-01-02 wrote render_buffer(); untested
5
fcf94957 »
2010-08-15 Refactored .quirc and cmdline parsing; other refactoring
6 See quirc.c for license information
7 colour: defined colours & mirc-colour-compat
8 */
9
ac506d8f »
2010-08-15 Generate the default colours from an awk script
10 #include <stdlib.h>
11 #include <stdbool.h>
dbc7d09b »
2010-07-27 Framework ready for custom colours
12
13 typedef struct
14 {
15 int fore;
16 int back;
17 bool hi;
18 bool ul;
19 }
20 colour;
21
95ecd639 »
2012-07-17 Fix the bug with input-line overrun from magic \%03o codes
22 bool eq_colour(colour, colour);
003269ba »
2011-01-02 wrote render_buffer(); untested
23 int setcolour(colour); // wrapper for setcol
e808d4d8 »
2012-07-12 Make strbuf and callers use size_t instead of int
24 int s_setcolour(colour, char **, size_t *, size_t *); // wrapper for s_setcol
94183bcf »
2010-07-29 Decode (and optionally use for display) mIRC colour codes
25 colour c_mirc(int, int);
df6473d1 »
2013-08-04 Improved handling of mirc formatting codes; we now recognise ^B ^O ^R ^U
26 colour reverse_colours(colour, bool);
ac506d8f »
2010-08-15 Generate the default colours from an awk script
27 int c_init(void);
c3982808 »
2010-07-27 Custom colours, tab completion of nicks
28
5cef4d42 »
2010-09-01 Don't put c_list on the heap
29 colour c_list[19];
ac506d8f »
2010-08-15 Generate the default colours from an awk script
30
31 // These should really be generated procedurally
32 #define c_msg c_list
33 #define c_notice (c_list+2)
34 #define c_join (c_list+4)
35 #define c_part (c_list+6)
36 #define c_quit (c_list+8)
37 #define c_nick (c_list+10)
38 #define c_actn (c_list+12)
39 #define c_status c_list[14]
40 #define c_err c_list[15]
41 #define c_unk c_list[16]
42 #define c_unn c_list[17]
Something went wrong with that request. Please try again.