@@ -104,13 +104,15 @@ extern vtattrib attrib, cmdattrib;
104104extern bool cursoron [], cursorena [],scrollflag [], scrollstatus [], flipscrnflag [] ;
105105extern TID tidTermScrnUpd ;
106106
107+ #ifndef KUI
107108extern
108109#ifdef NT
109110HANDLE
110111#else
111112HVIO
112113#endif
113114VioHandle ;
115+ #endif /* ! KUI */
114116
115117#ifdef OS2MOUSE
116118extern int tt_mouse ;
@@ -143,9 +145,15 @@ int pwidth, pheight; /* Physical screen width, height */
143145int ttgcwsz (); /* ckocon.c */
144146int os2settitle (char * , int ); /* ckotio.c */
145147
148+ #ifndef KUI
146149/*---------------------------------------------------------------------------*/
147150/* ReadCellStr */
148151/*---------------------------------------------------------------------------*/
152+ /* In practice this is only ever used for one thing: during startup to set the
153+ * command screen colour to the existing console screen colour. The only other
154+ * reference is reversescreen but only when ONETERMUPD is not defined, which
155+ * probably hasn't been the case since the mid 90s.
156+ */
149157USHORT
150158ReadCellStr ( viocell * CellStr , PUSHORT Length , USHORT Row , USHORT Column )
151159{
@@ -277,7 +285,9 @@ ReadCellStr( viocell * CellStr, PUSHORT Length, USHORT Row, USHORT Column )
277285 return VioReadCellStr ( (PCH ) CellStr , Length , Row , Column , VioHandle ) ;
278286#endif /* NT */
279287}
288+ #endif /* KUI */
280289
290+ #ifndef KUI
281291/*---------------------------------------------------------------------------*/
282292/* WrtCellStr */
283293/*---------------------------------------------------------------------------*/
@@ -514,7 +524,7 @@ WrtCellStr( viocell * CellStr, USHORT Length, USHORT Row, USHORT Column )
514524 return VioWrtCellStr ( (PCH ) CellStr , Length * sizeof (viocell ), Row , Column , VioHandle ) ;
515525#endif /* NT */
516526}
517-
527+ #endif /* ! KUI */
518528
519529
520530
@@ -533,6 +543,7 @@ VscrnForceFullUpdate(void)
533543 os2settitle (NULL ,1 ); /* Force a Title update */
534544}
535545
546+ #ifndef KUI
536547USHORT
537548WrtCellStrDiff ( viocell * CellStr , USHORT Length , USHORT Row , USHORT Column ,
538549 USHORT Height , USHORT Width )
@@ -618,6 +629,7 @@ WrtCellStrDiff( viocell * CellStr, USHORT Length, USHORT Row, USHORT Column,
618629 return rc ;
619630
620631}
632+ #endif /* ! KUI */
621633
622634#ifndef KUI
623635/*---------------------------------------------------------------------------*/
@@ -760,6 +772,7 @@ WrtNCell( viocell Cell, USHORT Times, USHORT Row, USHORT Column )
760772}
761773#endif /* KUI */
762774
775+ #ifndef ONETERMUPD
763776/*---------------------------------------------------------------------------*/
764777/* WrtCharStrAtt */
765778/*---------------------------------------------------------------------------*/
@@ -900,6 +913,7 @@ WrtCharStrAtt( PCH CharStr, USHORT Length, USHORT Row, USHORT Column,
900913 return VioWrtCharStrAtt ( CharStr , Length , Row , Column , Attr , VioHandle ) ;
901914#endif /* NT */
902915}
916+ #endif /* ! ONETERMUPD */
903917
904918#ifndef KUI
905919/*---------------------------------------------------------------------------*/
@@ -1311,6 +1325,7 @@ SetMode( PCK_VIDEOMODEINFO ModeData )
13111325}
13121326#endif /* KUI */
13131327
1328+ #ifndef KUI
13141329/*---------------------------------------------------------------------------*/
13151330/* GetCurPos */
13161331/*---------------------------------------------------------------------------*/
@@ -1340,7 +1355,9 @@ USHORT GetCurPos( PUSHORT Row, PUSHORT Column )
13401355 return VioGetCurPos ( Row , Column , VioHandle ) ;
13411356#endif /* NT */
13421357}
1358+ #endif /* !KUI */
13431359
1360+ #ifndef KUI
13441361/*---------------------------------------------------------------------------*/
13451362/* SetCurPos */
13461363/*---------------------------------------------------------------------------*/
@@ -1367,7 +1384,9 @@ USHORT SetCurPos( USHORT Row, USHORT Column )
13671384 return VioSetCurPos ( Row , Column , VioHandle ) ;
13681385#endif /* NT */
13691386}
1387+ #endif /* ! KUI */
13701388
1389+ #ifndef KUI
13711390/*---------------------------------------------------------------------------*/
13721391/* GetCurType */
13731392/*---------------------------------------------------------------------------*/
@@ -1445,6 +1464,7 @@ USHORT SetCurType( PCK_CURSORINFO CursorData )
14451464#endif /* NT */
14461465 return rc ;
14471466}
1467+ #endif /* !KUI */
14481468
14491469BOOL
14501470IsOS2FullScreen ( void )
@@ -4385,6 +4405,7 @@ IsCellPartOfURL( BYTE mode, USHORT row, USHORT col )
43854405 */
43864406#define URLMINCNT 4096
43874407#define NEW_EXCLUSIVE 1
4408+
43884409void
43894410TermScrnUpd ( void * threadinfo )
43904411{
@@ -5245,6 +5266,9 @@ os2ResetFont( void )
52455266/*---------------------------------------------------------------------------*/
52465267void
52475268killcursor ( BYTE vmode ) {
5269+ #ifdef KUI
5270+ cursoron [vmode ] = FALSE;
5271+ #else
52485272 CK_CURSORINFO crsr_info ;
52495273 debug (F100 ,"killcursor" ,"" ,0 );
52505274 if (!cursoron [vmode ]) /* It's already off */
@@ -5255,13 +5279,17 @@ killcursor( BYTE vmode ) {
52555279 {
52565280 cursoron [vmode ] = FALSE;
52575281 }
5282+ #endif /* ! KUI */
52585283}
52595284
52605285/*---------------------------------------------------------------------------*/
52615286/* newcursor */
52625287/*---------------------------------------------------------------------------*/
52635288void
52645289newcursor ( BYTE vmode ) {
5290+ #ifdef KUI
5291+ cursoron [vmode ] = TRUE;
5292+ #else KUI
52655293 CK_CURSORINFO vci ;
52665294
52675295 debug (F100 ,"newcursor" ,"" ,0 );
@@ -5303,6 +5331,7 @@ newcursor( BYTE vmode ) {
53035331 cursoron [vmode ] = TRUE;
53045332 VscrnIsDirty (vmode );
53055333 }
5334+ #endif /* ! KUI */
53065335}
53075336
53085337/*---------------------------------------------------------------------------*/
0 commit comments