summaryrefslogtreecommitdiffstats
path: root/sys/dev/vt/vt.h
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2014-06-30 09:59:23 +0000
committermarius <marius@FreeBSD.org>2014-06-30 09:59:23 +0000
commit618ac05759258204b881c19e2ddbe3955e5a1140 (patch)
tree490faff01aad74d3bbd5571161ecea69857c7cae /sys/dev/vt/vt.h
parentfa72c237e4d9a4d5abcedfa528f932e33fbfecdf (diff)
downloadFreeBSD-src-618ac05759258204b881c19e2ddbe3955e5a1140.zip
FreeBSD-src-618ac05759258204b881c19e2ddbe3955e5a1140.tar.gz
MFC: r267978
In order to get vt(4) a bit closer to the feature set provided by sc(4), implement options TERMINAL_{KERN,NORM}_ATTR. These are aliased to SC_{KERNEL_CONS,NORM}_ATTR and like these latter, allow to change the default colors of normal and kernel text respectively. Note on the naming: Although affecting the output of vt(4), technically kern/subr_terminal.c is primarily concerned with changing default colors so it would be inconsistent to term these options VT_{KERN,NORM}_ATTR. Actually, if the architecture and abstraction of terminal+teken+vt would be perfect, dev/vt/* wouldn't be touched by this commit at all. Reviewed by: emaste Sponsored by: Bally Wulff Games & Entertainment GmbH
Diffstat (limited to 'sys/dev/vt/vt.h')
-rw-r--r--sys/dev/vt/vt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vt/vt.h b/sys/dev/vt/vt.h
index 87a57a2..176c053 100644
--- a/sys/dev/vt/vt.h
+++ b/sys/dev/vt/vt.h
@@ -230,7 +230,7 @@ void vtbuf_extract_marked(struct vt_buf *vb, term_char_t *buf, int sz);
((mask)->vbm_row & ((uint64_t)1 << ((row) % 64)))
#define VTBUF_DIRTYCOL(mask, col) \
((mask)->vbm_col & ((uint64_t)1 << ((col) % 64)))
-#define VTBUF_SPACE_CHAR (' ' | TC_WHITE << 26 | TC_BLACK << 29)
+#define VTBUF_SPACE_CHAR(attr) (' ' | (attr))
#define VHS_SET 0
#define VHS_CUR 1
OpenPOWER on IntegriCloud