123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- /**
- * ANSI Color definitiont - The Quick6502 Project
- * include/color.h
- *
- * Created by Manoel Trapier on 25/06/10
- * Copyright 2010 986 Corp. All rights reserved.
- *
- * $LastChangedDate:$
- * $Author:$
- * $HeadURL:$
- * $Revision:$
- *
- */
- #ifndef COLOR_H
- #define COLOR_H
- #define ALLOW_COLORS
- #ifdef ALLOW_COLORS
- #define __C(c) "\x1B[" c "m"
- #else
- #define __C(c) ""
- #endif
- #define ANSI_COLOR __C
- #define FBLACK ANSI_COLOR("30")
- #define FRED ANSI_COLOR("31")
- #define FGREEN ANSI_COLOR("32")
- #define FYELLOW ANSI_COLOR("33")
- #define FBLUE ANSI_COLOR("34")
- #define FMAGENTA ANSI_COLOR("35")
- #define FCYAN ANSI_COLOR("36")
- #define FWHITE ANSI_COLOR("37")
- #define BBLACK ANSI_COLOR("40")
- #define BRED ANSI_COLOR("41")
- #define BGREEN ANSI_COLOR("42")
- #define BYELLOW ANSI_COLOR("43")
- #define BBLUE ANSI_COLOR("44")
- #define BMAGENTA ANSI_COLOR("45")
- #define BCYAN ANSI_COLOR("46")
- #define BWHITE ANSI_COLOR("47")
- #define CNORMAL ANSI_COLOR("0")
- #endif /* COLOR_H */
|