chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
@@@ tvec and tty mess
[mLib]
/
ui
/
tty.c
diff --git
a/ui/tty.c
b/ui/tty.c
index ff24256cb4b240a4054ee9e8cb6e54a92a1f6e7c..b65f6b744b00595319ef697719cdfe5d92185b4c 100644
(file)
--- a/
ui/tty.c
+++ b/
ui/tty.c
@@
-2565,13
+2565,13
@@
static struct tty *ansi_init(FILE *fp)
static const struct kw { const char *name; uint32 val; }
kw_colours[] = {
static const struct kw { const char *name; uint32 val; }
kw_colours[] = {
- { "no",
COLS_NO },
- { "8",
COLS_8 },
- { "16",
COLS_16 },
- { "88",
COLS_88 },
- { "256",
COLS_256 },
- { "16m",
COLS_16M },
- { 0,
0 }
+ { "no", COLS_NO },
+ { "8", COLS_8 },
+ { "16", COLS_16 },
+ { "88", COLS_88 },
+ { "256", COLS_256 },
+ { "16m", COLS_16M },
+ { 0, 0 }
};
static const struct enummap {
};
static const struct enummap {
@@
-2579,8
+2579,9
@@
static struct tty *ansi_init(FILE *fp)
uint32 mask;
const struct kw *kw;
} enummap[] = {
uint32 mask;
const struct kw *kw;
} enummap[] = {
- { "colours", TTACF_CSPCMASK, kw_colours },
- { 0, 0, 0 }
+ { "colours", TTACF_CSPCMASK | TTACF_FG | TTACF_BG,
+ kw_colours },
+ { 0, 0, 0 }
};
};
@@
-2807,9
+2808,15
@@
struct tty *tty_open(FILE *fp, unsigned f, const unsigned *backends)
const char *name; unsigned code;
struct tty *(*init)(FILE */*fp*/);
} betab[] = {
const char *name; unsigned code;
struct tty *(*init)(FILE */*fp*/);
} betab[] = {
+#ifdef HAVE_UNIBILIUM
{ "unibilium", TTBK_UNIBI, termunibi_init },
{ "unibilium", TTBK_UNIBI, termunibi_init },
+#endif
+#ifdef HAVE_TERMINFO
{ "terminfo", TTBK_TERMINFO, terminfo_init },
{ "terminfo", TTBK_TERMINFO, terminfo_init },
+#endif
+#ifdef HAVE_TERMCAP
{ "termcap", TTBK_TERMCAP, termcap_init },
{ "termcap", TTBK_TERMCAP, termcap_init },
+#endif
{ "ansi", TTBK_ANSI, ansi_init },
{ 0, 0, 0 }
};
{ "ansi", TTBK_ANSI, ansi_init },
{ 0, 0, 0 }
};