summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons/scvidctl.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1998-09-29 02:00:57 +0000
committerache <ache@FreeBSD.org>1998-09-29 02:00:57 +0000
commitc7a892bf97b69c4e93ad57d32f9a7334dd374505 (patch)
tree74fea1e3ca9217adb9d1a605b5e1ac2a32156c4a /sys/dev/syscons/scvidctl.c
parent3ed49ce3db774caf71c4222b7360ef9a9b061326 (diff)
downloadFreeBSD-src-c7a892bf97b69c4e93ad57d32f9a7334dd374505.zip
FreeBSD-src-c7a892bf97b69c4e93ad57d32f9a7334dd374505.tar.gz
Fix destructive cursor shape after text mode switch.
This is only for standard modes, I don't check vesa modes yet.
Diffstat (limited to 'sys/dev/syscons/scvidctl.c')
-rw-r--r--sys/dev/syscons/scvidctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/syscons/scvidctl.c b/sys/dev/syscons/scvidctl.c
index d1d55d1..e29c209 100644
--- a/sys/dev/syscons/scvidctl.c
+++ b/sys/dev/syscons/scvidctl.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: scvidctl.c,v 1.2 1998/09/23 09:59:00 yokota Exp $
+ * $Id: scvidctl.c,v 1.3 1998/09/25 11:55:46 yokota Exp $
*/
#include "sc.h"
@@ -49,6 +49,7 @@ extern scr_stat *cur_console;
extern int fonts_loaded;
extern int sc_history_size;
extern u_char palette[];
+extern int sc_flags;
int
sc_set_text_mode(scr_stat *scp, struct tty *tp, int mode, int xsize, int ysize,
@@ -121,6 +122,8 @@ sc_set_text_mode(scr_stat *scp, struct tty *tp, int mode, int xsize, int ysize,
if (scp == cur_console)
set_mode(scp);
scp->status &= ~UNKNOWN_MODE;
+ if (ISTEXTSC(scp) && (sc_flags & CHAR_CURSOR))
+ set_destructive_cursor(scp);
if (tp == NULL)
return 0;
OpenPOWER on IntegriCloud