/* vctype.c (emx+gcc) -- Copyright (c) 1987-1993 by Eberhard Mattes */

#include <stdlib.h>
#include <dos.h>
#define INCL_VIO
#include <os2emx.h>
#include <sys/video.h>
#include "video2.h"

void v_ctype (int start, int end)
{
  static VIOCURSORINFO cinfo;

  if ((unsigned)start < 0x20 && (unsigned)end < 0x20)
    if (_osmode == OS2_MODE)
      {
        cinfo.yStart = start + 1;
        cinfo.cEnd = end + 1;
        cinfo.cx = 0;             /* Default width */
        cinfo.attr = 0;           /* Current attribute */
        VioSetCurType (&cinfo, 0);
      }
    else
      {
        union REGS r;

        r.h.ah = 0x01;
        r.h.cl = end;
        r.h.ch = start;
        _int86 (0x10, &r, &r);
      }
}
