Thread: Dos cursors

  1. #1
    Breebo
    Guest

    Post Dos cursors

    I am writing a DOS text editing program, and my program handles cursors on its own. How do you hide the default blinking cursor?

  2. #2
    I'm Back
    Join Date
    Dec 2001
    Posts
    556
    I use the the _setcursortype(_NOCURSOR) command in C++ to remove the blinking cursor.

    Its in conio.h and my compiler is borland 3,. If that doesn't works then there is a similar question in the C board you could check out.
    Last edited by ihsir; 04-02-2002 at 11:46 PM.
    -

  3. #3
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630
    I believe this was just asked in the C or C++ forum seach for "cursor" and you will find it. It was just asked like a day or two ago, and theres an example for hiding it using Win32 API if your not using a Borland Compiler b/c most compilers wont have what you need in conio.h
    "only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein

  4. #4
    Breebo
    Guest
    Great. Thanks a lot.

  5. #5
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    How did you get the x,y coordinates of the mouse in order to handle the cursor on your own, I mean, where is the mouse support for you to set it up yourself?

  6. #6
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Well I don't think he is talking about the mouse but here is how you get the cursor position for it


    mov ax,03h
    int 33h

    BX=button pushed
    01h - LMB
    02h - RMB
    03h - MMB
    CX=cursor position (column on text,x on graphics)
    For modes below 640 in graphics, divide CX by 2 or CX>>1
    DX=row position (row on text,y on graphics)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File systems?? (Winxp -> DOS)
    By Shadow in forum Tech Board
    Replies: 4
    Last Post: 01-06-2003, 09:08 PM
  2. winver, winminor, winmajor can it be found from dos?
    By ronin in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 10-02-2002, 10:32 AM
  3. real mode dos & win dos
    By scott27349 in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 08-19-2002, 06:15 AM
  4. DOS program versus DOS console program
    By scromer in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-10-2002, 01:42 PM
  5. Shut off DOS screen automatically to Windows
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 11-08-2001, 07:14 PM