1239696Sgonzo/*- 2239696Sgonzo * Copyright (c) 2003 Jake Burkholder. 3239696Sgonzo * All rights reserved. 4239696Sgonzo * 5239696Sgonzo * Redistribution and use in source and binary forms, with or without 6239696Sgonzo * modification, are permitted provided that the following conditions 7239696Sgonzo * are met: 8239696Sgonzo * 1. Redistributions of source code must retain the above copyright 9239696Sgonzo * notice, this list of conditions and the following disclaimer. 10239696Sgonzo * 2. Redistributions in binary form must reproduce the above copyright 11239696Sgonzo * notice, this list of conditions and the following disclaimer in the 12239696Sgonzo * documentation and/or other materials provided with the distribution. 13239696Sgonzo * 14239696Sgonzo * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15239696Sgonzo * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16239696Sgonzo * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17239696Sgonzo * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18239696Sgonzo * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19239696Sgonzo * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20239696Sgonzo * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21239696Sgonzo * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22239696Sgonzo * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23239696Sgonzo * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24239696Sgonzo * SUCH DAMAGE. 25239696Sgonzo * 26239696Sgonzo * $FreeBSD$ 27239696Sgonzo */ 28239696Sgonzo 29239696Sgonzo#ifndef _MACHINE_SC_MACHDEP_H_ 30239696Sgonzo#define _MACHINE_SC_MACHDEP_H_ 31239696Sgonzo 32239696Sgonzo/* Color attributes for foreground text */ 33239696Sgonzo 34239696Sgonzo#define FG_BLACK 0x0 35239696Sgonzo#define FG_BLUE 0x1 36239696Sgonzo#define FG_GREEN 0x2 37239696Sgonzo#define FG_CYAN 0x3 38239696Sgonzo#define FG_RED 0x4 39239696Sgonzo#define FG_MAGENTA 0x5 40239696Sgonzo#define FG_BROWN 0x6 41239696Sgonzo#define FG_LIGHTGREY 0x7 /* aka white */ 42239696Sgonzo#define FG_DARKGREY 0x8 43239696Sgonzo#define FG_LIGHTBLUE 0x9 44239696Sgonzo#define FG_LIGHTGREEN 0xa 45239696Sgonzo#define FG_LIGHTCYAN 0xb 46239696Sgonzo#define FG_LIGHTRED 0xc 47239696Sgonzo#define FG_LIGHTMAGENTA 0xd 48239696Sgonzo#define FG_YELLOW 0xe 49239696Sgonzo#define FG_WHITE 0xf /* aka bright white */ 50239696Sgonzo#define FG_BLINK 0x80 51239696Sgonzo 52239696Sgonzo/* Color attributes for text background */ 53239696Sgonzo 54239696Sgonzo#define BG_BLACK 0x00 55239696Sgonzo#define BG_BLUE 0x10 56239696Sgonzo#define BG_GREEN 0x20 57239696Sgonzo#define BG_CYAN 0x30 58239696Sgonzo#define BG_RED 0x40 59239696Sgonzo#define BG_MAGENTA 0x50 60239696Sgonzo#define BG_BROWN 0x60 61239696Sgonzo#define BG_LIGHTGREY 0x70 62239696Sgonzo#define BG_DARKGREY 0x80 63239696Sgonzo#define BG_LIGHTBLUE 0x90 64239696Sgonzo#define BG_LIGHTGREEN 0xa0 65239696Sgonzo#define BG_LIGHTCYAN 0xb0 66239696Sgonzo#define BG_LIGHTRED 0xc0 67239696Sgonzo#define BG_LIGHTMAGENTA 0xd0 68239696Sgonzo#define BG_YELLOW 0xe0 69239696Sgonzo#define BG_WHITE 0xf0 70239696Sgonzo 71239696Sgonzo#endif /* !_MACHINE_SC_MACHDEP_H_ */ 72