Cursor 2

This is a discussion on Cursor 2 within the A Brief History of Cprogramming.com forums, part of the Community Boards category; How do you hide the cursor in dos using C/CPP also a function prototype?...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,333
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,584
    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
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,584
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21