/* ICE_LOGDVR.C - IceScreen Logical Device Driver Interfaces Last Modified: 06-13-90 Copyright (C) 1988, 1989, 1990 by T.A. Daneliuk */ #include <stdio.h> #include <dos.h> #include <graph.h> #include <ice_defs.h> /*============================ Low-Level Keyboard Read =======================*/ KEYSTR ice_getc() { union REGS inregs, outregs; inregs.h.ah = 7; intdos(&inregs, &outregs); return((KEYSTR) outregs.h.al); } /*============================ Position Cursor ===============================*/ void ice_rowcol(row, col) VCOORD row, col; { row += (col/80); /* Normalize Coordinates For 80 x 25 Screen */ col %= 80; row %= 25; col++; /* MSC Routines Are 1,1 Relative */ row++; _settextposition(row, col); } /*======================= Write String With Attribute ========================*/ void ice_aputs(str, attr) char *str; VATRB attr; { _settextcolor(attr); _outtext(str); }