1 /*
2     msg_attr.h:
3 
4     Copyright (C) 2005 Istvan Varga
5 
6     This file is part of Csound.
7 
8     The Csound Library is free software; you can redistribute it
9     and/or modify it under the terms of the GNU Lesser General Public
10     License as published by the Free Software Foundation; either
11     version 2.1 of the License, or (at your option) any later version.
12 
13     Csound is distributed in the hope that it will be useful,
14     but WITHOUT ANY WARRANTY; without even the implied warranty of
15     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16     GNU Lesser General Public License for more details.
17 
18     You should have received a copy of the GNU Lesser General Public
19     License along with Csound; if not, write to the Free Software
20     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21     02110-1301 USA
22 */
23 
24 #ifndef CSOUND_MSG_ATTR_H
25 #define CSOUND_MSG_ATTR_H
26 
27 /* message types (only one can be specified) */
28 
29 /* standard message */
30 #define CSOUNDMSG_DEFAULT       (0x0000)
31 /* error message (initerror, perferror, etc.) */
32 #define CSOUNDMSG_ERROR         (0x1000)
33 /* orchestra opcodes (e.g. printks) */
34 #define CSOUNDMSG_ORCH          (0x2000)
35 /* for progress display and heartbeat characters */
36 #define CSOUNDMSG_REALTIME      (0x3000)
37 /* warning messages */
38 #define CSOUNDMSG_WARNING       (0x4000)
39 /* stdount messages */
40 #define CSOUNDMSG_STDOUT        (0x5000)
41 
42 /* format attributes (colors etc.), use the bitwise OR of any of these: */
43 
44 #define CSOUNDMSG_FG_BLACK      (0x0100)
45 #define CSOUNDMSG_FG_RED        (0x0101)
46 #define CSOUNDMSG_FG_GREEN      (0x0102)
47 #define CSOUNDMSG_FG_YELLOW     (0x0103)
48 #define CSOUNDMSG_FG_BLUE       (0x0104)
49 #define CSOUNDMSG_FG_MAGENTA    (0x0105)
50 #define CSOUNDMSG_FG_CYAN       (0x0106)
51 #define CSOUNDMSG_FG_WHITE      (0x0107)
52 
53 #define CSOUNDMSG_FG_BOLD       (0x0008)
54 #define CSOUNDMSG_FG_UNDERLINE  (0x0080)
55 
56 #define CSOUNDMSG_BG_BLACK      (0x0200)
57 #define CSOUNDMSG_BG_RED        (0x0210)
58 #define CSOUNDMSG_BG_GREEN      (0x0220)
59 #define CSOUNDMSG_BG_ORANGE     (0x0230)
60 #define CSOUNDMSG_BG_BLUE       (0x0240)
61 #define CSOUNDMSG_BG_MAGENTA    (0x0250)
62 #define CSOUNDMSG_BG_CYAN       (0x0260)
63 #define CSOUNDMSG_BG_GREY       (0x0270)
64 
65  /* ------------------------------------------------------------------------ */
66 
67 #define CSOUNDMSG_TYPE_MASK     (0x7000)
68 #define CSOUNDMSG_FG_COLOR_MASK (0x0107)
69 #define CSOUNDMSG_FG_ATTR_MASK  (0x0088)
70 #define CSOUNDMSG_BG_COLOR_MASK (0x0270)
71 
72 #endif      /* CSOUND_MSG_ATTR_H */
73 
74