Thread: Cursor 2

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    16

    Question Cursor 2

    How do you hide the cursor in dos using C/CPP also a function prototype?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Try setcursortype in conio.h
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    What cursor? Mouse, text?

    For mouse:

    Code:
    union REGS regs;
    regs.ax=0x02
    int86(0x33, & regs, & regs);
    No spaces in int86 - board still messing up my ampersands.

  4. #4
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    regs.x.ax=0x02;

    I really should preview these short posts......

  5. #5
    Disagreeably Disagreeable
    Join Date
    Aug 2001
    Posts
    711
    _setcursortype(_NOCURSOR);

    It's defined in conio.h.

Popular pages Recent additions subscribe to a feed