Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 41 lines (34 sloc) 0.74 kb
2b3007c Highlight escape sequences in input line
Sound and Fury authored
1 #pragma once
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored
2 /*
3 quIRC - simple terminal-based IRC client
4 Copyright (C) 2010 Edward Cree
5
6 See quirc.c for license information
7 colour: defined colours & mirc-colour-compat
8 */
9
ac506d8 Generate the default colours from an awk script
Sound and Fury authored
10 #include <stdlib.h>
11 #include <stdbool.h>
dbc7d09 Framework ready for custom colours
Sound and Fury authored
12 #include "ttyesc.h"
13
14 typedef struct
15 {
16 int fore;
17 int back;
18 bool hi;
19 bool ul;
20 }
21 colour;
22
23 int setcolour(colour);
94183bc Decode (and optionally use for display) mIRC colour codes
Sound and Fury authored
24 colour c_mirc(int, int);
ac506d8 Generate the default colours from an awk script
Sound and Fury authored
25 int c_init(void);
c398280 Custom colours, tab completion of nicks
Sound and Fury authored
26
ac506d8 Generate the default colours from an awk script
Sound and Fury authored
27 colour * c_list;
28
29 // These should really be generated procedurally
30 #define c_msg c_list
31 #define c_notice (c_list+2)
32 #define c_join (c_list+4)
33 #define c_part (c_list+6)
34 #define c_quit (c_list+8)
35 #define c_nick (c_list+10)
36 #define c_actn (c_list+12)
37 #define c_status c_list[14]
38 #define c_err c_list[15]
39 #define c_unk c_list[16]
40 #define c_unn c_list[17]
Something went wrong with that request. Please try again.