Thread: cursor question

  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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    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.

  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