* color.c (color_table): Make static. Only use in text edition.
* xtty.h: Remove unused definitions.
Этот коммит содержится в:
родитель
c603d50193
Коммит
869afff53c
@ -1,5 +1,8 @@
|
||||
2001-06-13 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* color.c (color_table): Make static. Only use in text edition.
|
||||
* xtty.h: Remove unused definitions.
|
||||
|
||||
* slint.c (slang_init): Check screen dimensions and exit if they
|
||||
are abnormal. This may happen due to a S-Lang bug when the TERM
|
||||
is set to a value not listed in termcap or terminfo.
|
||||
|
@ -120,7 +120,8 @@ struct color_table_s {
|
||||
};
|
||||
|
||||
|
||||
struct color_table_s color_table [] = {
|
||||
#ifndef HAVE_X
|
||||
static struct color_table_s color_table [] = {
|
||||
{ "black", COLOR_BLACK },
|
||||
{ "gray", COLOR_BLACK | A_BOLD },
|
||||
{ "red", COLOR_RED },
|
||||
@ -139,6 +140,7 @@ struct color_table_s color_table [] = {
|
||||
{ "white", COLOR_WHITE | A_BOLD },
|
||||
{ "default", 0 } /* hack for transparent background */
|
||||
};
|
||||
#endif /* !HAVE_X */
|
||||
|
||||
#ifdef HAVE_GNOME
|
||||
void get_color (char *cpp, CTYPE *colp);
|
||||
|
13
src/xtty.h
13
src/xtty.h
@ -2,16 +2,3 @@
|
||||
|
||||
#define LINES 0
|
||||
#define COLS 0
|
||||
#define ERR -1
|
||||
|
||||
enum {
|
||||
COLOR_BLACK, COLOR_RED, COLOR_GREEN, COLOR_YELLOW,
|
||||
COLOR_BLUE, COLOR_MAGENTA, COLOR_CYAN, COLOR_WHITE
|
||||
};
|
||||
|
||||
#define A_NORMAL 0
|
||||
#define A_BOLD 0x40
|
||||
#define A_UNDERLINE 0x40
|
||||
#define A_REVERSE 0x20
|
||||
#define A_BOLD_REVERSE 0x21
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user