Thread: BGI and text cursor

  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    2

    BGI and text cursor

    Hello, I'm new here. I need help on a DOS program I am working on, I am using the Borland C++ 3.1 compiler.

    My problem is that I need to work with regular text and graphics at the same time. I have been able to do this with BGI, but what I need now is the cursor to be displayed while the user does input, for example (I mean the regular shell cursor, NOT the mouse cursor.)

    I suppose the cursor won't show because of the BGI's screen mode, but I am hoping that BGI has a command (showcursor(), or whatever) that allows me to display the "text cursor". I've already tried with _setcursortype() and even ASM, but still no luck.

    I'm clueless here, and I'm not an expert on C++, so any help related to the subject would be much appreciated. Thanks a lot.


  2. #2
    Registered User
    Join Date
    Feb 2002
    Posts
    329
    Just print an underscore at the end of the string. That will work unless you require a blibking cursor...

  3. #3
    Registered User
    Join Date
    Jan 2004
    Posts
    2
    Yeh, I thought of that but I do need the blinking cursor.
    Or maybe some code that emulates "console text" under BGI. The ideal thing would be to find how to display the normal cursor.
    Thanks

  4. #4
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    Question "Caret"?

    I don't use BGI, but in Win32, the text-cursor is called a "caret." All of the "cursor" functions are for the mouse-cursor.

    So you might check your documentation for "caret".

  5. #5
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,164

    Re: "Caret"?

    Originally posted by DougDbug
    I don't use BGI, but in Win32, the text-cursor is called a "caret." All of the "cursor" functions are for the mouse-cursor.

    So you might check your documentation for "caret".
    Not in BGI. BGI was written before M$ decided to rename the cursor to caret
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

Popular pages Recent additions subscribe to a feed