cursor question

This is a discussion on cursor question within the C Programming forums, part of the General Programming Boards category; In my program i have a loop making some *'s scrol around some text, like a border, i have done ...

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    10

    Question cursor question

    In my program i have a loop making some *'s scrol around some text, like a border, i have done it using gotoxy(x,y); to move the cursor and replace whats there to make it scroll but the little white cursor follows it and makes it look bad.
    that being said my question is this, is there a way to remove the little flashing cursor?
    any help would be greatly appreciated.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,663
    Which OS/Compiler?
    Are you using a screen library like ncurses?
    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
    Registered User
    Join Date
    Jun 2004
    Posts
    10
    windows xp
    borland c++ 5.02

    using stdio, conio, ctype, stdlib, windows header files.

  4. #4
    Casual Visitor
    Join Date
    Oct 2001
    Posts
    350
    In older Borland versions, conio.h had a function called _setcursortype(int mode).

    mode: _NOCURSOR, _SOLIDCURSOR, _MORMALCURSOR

    I dunno how well it would work with BC 5.02, if at all.
    I haven't used a compiler in ages, so please be gentle as I try to reacclimate myself. :P

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