Fix missing syscons escape sequence for setting the border color.

This commit is contained in:
Bruce Evans 2017-08-18 10:38:49 +00:00
parent 19a9c3df5e
commit dd833891de
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322651
4 changed files with 14 additions and 0 deletions

View File

@ -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,

View File

@ -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

View File

@ -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 {

View File

@ -26,6 +26,13 @@
* $FreeBSD$
*/
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)
{