Date: Fri, 18 Aug 2017 10:38:49 +0000 (UTC) From: Bruce Evans <bde@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r322651 - in head/sys: dev/syscons teken Message-ID: <201708181038.v7IAcn5j069283@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bde Date: Fri Aug 18 10:38:49 2017 New Revision: 322651 URL: https://svnweb.freebsd.org/changeset/base/322651 Log: Fix missing syscons escape sequence for setting the border color. Modified: head/sys/dev/syscons/scterm-teken.c head/sys/teken/sequences head/sys/teken/teken.h head/sys/teken/teken_subr_compat.h Modified: head/sys/dev/syscons/scterm-teken.c ============================================================================== --- head/sys/dev/syscons/scterm-teken.c Fri Aug 18 08:05:33 2017 (r322650) +++ head/sys/dev/syscons/scterm-teken.c Fri Aug 18 10:38:49 2017 (r322651) @@ -676,6 +676,11 @@ scteken_param(void *arg, int cmd, unsigned int value) scr_stat *scp = arg; switch (cmd) { + case TP_SETBORDER: + scp->border = value & 0xff; + if (scp == scp->sc->cur_scp) + sc_set_border(scp, scp->border); + break; case TP_SHOWCURSOR: if (value) { sc_change_cursor_shape(scp, Modified: head/sys/teken/sequences ============================================================================== --- head/sys/teken/sequences Fri Aug 18 08:05:33 2017 (r322650) +++ head/sys/teken/sequences Fri Aug 18 10:38:49 2017 (r322651) @@ -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 Modified: head/sys/teken/teken.h ============================================================================== --- head/sys/teken/teken.h Fri Aug 18 08:05:33 2017 (r322650) +++ head/sys/teken/teken.h Fri Aug 18 10:38:49 2017 (r322651) @@ -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 { Modified: head/sys/teken/teken_subr_compat.h ============================================================================== --- head/sys/teken/teken_subr_compat.h Fri Aug 18 08:05:33 2017 (r322650) +++ head/sys/teken/teken_subr_compat.h Fri Aug 18 10:38:49 2017 (r322651) @@ -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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708181038.v7IAcn5j069283>