aboutsummaryrefslogtreecommitdiff
path: root/sys/teken
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2017-08-18 10:38:49 +0000
committerBruce Evans <bde@FreeBSD.org>2017-08-18 10:38:49 +0000
commitdd833891dee4a0ad070dca53c257b744b7e4cff1 (patch)
tree2e23630a0b5d572fd83351b412907e61bd614b91 /sys/teken
parent19a9c3df5e37c2462e6d906d1b684aaa0faab0da (diff)
downloadsrc-dd833891dee4a0ad070dca53c257b744b7e4cff1.tar.gz
src-dd833891dee4a0ad070dca53c257b744b7e4cff1.zip
Fix missing syscons escape sequence for setting the border color.
Notes
Notes: svn path=/head/; revision=322651
Diffstat (limited to 'sys/teken')
-rw-r--r--sys/teken/sequences1
-rw-r--r--sys/teken/teken.h1
-rw-r--r--sys/teken/teken_subr_compat.h7
3 files changed, 9 insertions, 0 deletions
diff --git a/sys/teken/sequences b/sys/teken/sequences
index a8ee5282e8d9..1e4133a5e072 100644
--- a/sys/teken/sequences
+++ b/sys/teken/sequences
@@ -101,6 +101,7 @@ TBC Tab Clear ^[ [ g r
VPA Vertical Position Absolute ^[ [ d n
# Cons25 compatibility sequences
+C25ADX Cons25 set adapter border ^[ [ = A r
C25ADBG Cons25 set adapter background ^[ [ = G r
C25ADFG Cons25 set adapter foreground ^[ [ = F r
C25BLPD Cons25 set bell pitch duration ^[ [ = B r r
diff --git a/sys/teken/teken.h b/sys/teken/teken.h
index 7e3716bec55a..e1ea13673554 100644
--- a/sys/teken/teken.h
+++ b/sys/teken/teken.h
@@ -101,6 +101,7 @@ typedef void tf_param_t(void *, int, unsigned int);
#define TP_SETBELLPD_PITCH(pd) ((pd) >> 16)
#define TP_SETBELLPD_DURATION(pd) ((pd) & 0xffff)
#define TP_MOUSE 6
+#define TP_SETBORDER 7
typedef void tf_respond_t(void *, const void *, size_t);
typedef struct {
diff --git a/sys/teken/teken_subr_compat.h b/sys/teken/teken_subr_compat.h
index 22dc126b7ab1..f528be3b4601 100644
--- a/sys/teken/teken_subr_compat.h
+++ b/sys/teken/teken_subr_compat.h
@@ -27,6 +27,13 @@
*/
static void
+teken_subr_cons25_set_adapter_border(teken_t *t, unsigned int c)
+{
+
+ teken_funcs_param(t, TP_SETBORDER, c);
+}
+
+static void
teken_subr_cons25_set_cursor_type(teken_t *t, unsigned int type)
{