From 609d51b348b06d8dde7c1d880f5658f22c7cf498 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Wed, 11 Aug 2004 00:40:24 +0000
Subject: [PATCH] Turn cursor off while redrawing input line.

---
 src/uifc/uifc32.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/uifc/uifc32.c b/src/uifc/uifc32.c
index 32f6352d8a..3d486f0b17 100644
--- a/src/uifc/uifc32.c
+++ b/src/uifc/uifc32.c
@@ -1520,6 +1520,7 @@ void umsg(char *str)
 /***************************************/
 void getstrupd(int left, int top, int width, char *outstr, int cursoffset, int *scrnoffset)
 {
+	_setcursortype(_NOCURSOR);
 	if(cursoffset<*scrnoffset)
 		*scrnoffset=cursoffset;
 
@@ -1529,6 +1530,7 @@ void getstrupd(int left, int top, int width, char *outstr, int cursoffset, int *
 	gotoxy(left,top);
 	cprintf("%-*.*s",width,width,outstr+*scrnoffset);
 	gotoxy(left+(cursoffset-*scrnoffset),top);
+	_setcursortype(_NORMALCURSOR);
 }
 
 /****************************************************************************/
-- 
GitLab