summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/teken/sequences1
-rw-r--r--sys/teken/teken_subr_compat.h14
2 files changed, 15 insertions, 0 deletions
diff --git a/sys/teken/sequences b/sys/teken/sequences
index cf720b0..a8ee528 100644
--- a/sys/teken/sequences
+++ b/sys/teken/sequences
@@ -106,6 +106,7 @@ C25ADFG Cons25 set adapter foreground ^[ [ = F r
C25BLPD Cons25 set bell pitch duration ^[ [ = B r r
C25CURS Cons25 set cursor type ^[ [ = S r
C25MODE Cons25 set terminal mode ^[ [ = T r
+C25SGR Cons25 set graphic rendition ^[ [ x r r
C25VTSW Cons25 switch virtual terminal ^[ [ z r
# VT52 compatibility
diff --git a/sys/teken/teken_subr_compat.h b/sys/teken/teken_subr_compat.h
index e937298..a79cdfb 100644
--- a/sys/teken/teken_subr_compat.h
+++ b/sys/teken/teken_subr_compat.h
@@ -88,6 +88,20 @@ teken_subr_cons25_set_bell_pitch_duration(teken_t *t, unsigned int pitch,
}
static void
+teken_subr_cons25_set_graphic_rendition(teken_t *t, unsigned int cmd,
+ unsigned int param __unused)
+{
+
+ switch (cmd) {
+ case 0: /* Reset. */
+ t->t_curattr = t->t_defattr;
+ break;
+ default:
+ teken_printf("unsupported attribute %u\n", cmd);
+ }
+}
+
+static void
teken_subr_cons25_set_terminal_mode(teken_t *t, unsigned int mode)
{
OpenPOWER on IntegriCloud