Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/wscons PR kern/53245 - support SGR 39 (default foreg...
details: https://anonhg.NetBSD.org/src/rev/fbba13c86f22
branches: trunk
changeset: 323251:fbba13c86f22
user: uwe <uwe%NetBSD.org@localhost>
date: Tue Jun 05 21:11:50 2018 +0000
description:
PR kern/53245 - support SGR 39 (default foreground) and 49 (background).
diffstat:
sys/dev/wscons/wsemul_vt100_subr.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r 0c4b114e87e6 -r fbba13c86f22 sys/dev/wscons/wsemul_vt100_subr.c
--- a/sys/dev/wscons/wsemul_vt100_subr.c Tue Jun 05 20:02:42 2018 +0000
+++ b/sys/dev/wscons/wsemul_vt100_subr.c Tue Jun 05 21:11:50 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsemul_vt100_subr.c,v 1.21 2017/05/19 19:22:33 macallan Exp $ */
+/* $NetBSD: wsemul_vt100_subr.c,v 1.22 2018/06/05 21:11:50 uwe Exp $ */
/*
* Copyright (c) 1998
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsemul_vt100_subr.c,v 1.21 2017/05/19 19:22:33 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsemul_vt100_subr.c,v 1.22 2018/06/05 21:11:50 uwe Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -516,12 +516,18 @@
flags |= WSATTR_WSCOLORS;
fgcol = ARG(edp, n) - 30;
break;
+ case 39:
+ fgcol = edp->msgattrs.default_fg;
+ break;
case 40: case 41: case 42: case 43:
case 44: case 45: case 46: case 47:
/* bg color */
flags |= WSATTR_WSCOLORS;
bgcol = ARG(edp, n) - 40;
break;
+ case 49:
+ bgcol = edp->msgattrs.default_bg;
+ break;
default:
#ifdef VT100_PRINTUNKNOWN
printf("CSI%dm unknown\n", ARG(edp, n));
Home |
Main Index |
Thread Index |
Old Index