summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/pc98/cbus/scterm-sck.c6
-rw-r--r--sys/pc98/pc98/scterm-sck.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/sys/pc98/cbus/scterm-sck.c b/sys/pc98/cbus/scterm-sck.c
index 57b959d..f00250b 100644
--- a/sys/pc98/cbus/scterm-sck.c
+++ b/sys/pc98/cbus/scterm-sck.c
@@ -179,8 +179,10 @@ scterm_init(scr_stat *scp, void **softc, int code)
tcp->esc = 0;
tcp->saved_xpos = -1;
tcp->saved_ypos = -1;
+#if 0
tcp->std_color = tcp->dflt_std_color;
tcp->rev_color = tcp->dflt_rev_color;
+#endif
tcp->cur_color = tcp->std_color;
tcp->cur_attr = mask2attr(tcp);
break;
@@ -550,6 +552,7 @@ scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c)
break;
case 'C': /* set cursor type & shape */
+ i = spltty();
if (!ISGRAPHSC(sc->cur_scp))
sc_remove_cursor_image(sc->cur_scp);
if (tcp->num_param == 1) {
@@ -572,11 +575,10 @@ scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c)
* are affected. Update the cursor in the current console...
*/
if (!ISGRAPHSC(sc->cur_scp)) {
- i = spltty();
sc_set_cursor_image(sc->cur_scp);
sc_draw_cursor_image(sc->cur_scp);
- splx(i);
}
+ splx(i);
break;
case 'F': /* set ansi foreground */
diff --git a/sys/pc98/pc98/scterm-sck.c b/sys/pc98/pc98/scterm-sck.c
index 57b959d..f00250b 100644
--- a/sys/pc98/pc98/scterm-sck.c
+++ b/sys/pc98/pc98/scterm-sck.c
@@ -179,8 +179,10 @@ scterm_init(scr_stat *scp, void **softc, int code)
tcp->esc = 0;
tcp->saved_xpos = -1;
tcp->saved_ypos = -1;
+#if 0
tcp->std_color = tcp->dflt_std_color;
tcp->rev_color = tcp->dflt_rev_color;
+#endif
tcp->cur_color = tcp->std_color;
tcp->cur_attr = mask2attr(tcp);
break;
@@ -550,6 +552,7 @@ scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c)
break;
case 'C': /* set cursor type & shape */
+ i = spltty();
if (!ISGRAPHSC(sc->cur_scp))
sc_remove_cursor_image(sc->cur_scp);
if (tcp->num_param == 1) {
@@ -572,11 +575,10 @@ scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c)
* are affected. Update the cursor in the current console...
*/
if (!ISGRAPHSC(sc->cur_scp)) {
- i = spltty();
sc_set_cursor_image(sc->cur_scp);
sc_draw_cursor_image(sc->cur_scp);
- splx(i);
}
+ splx(i);
break;
case 'F': /* set ansi foreground */
OpenPOWER on IntegriCloud