#include <dos.h>

cursor(mode)
int   mode;
{
   union REGS regs;

   if (mode == 0)
      mode = 0x2000;
   else
      if (vidmode() == 7)
         mode = 0x0c0d;
      else
         mode = 0x0607;
   regs.h.ah = 1;
   regs.x.cx = mode;
   int86(0x10, &regs, &regs);
}
