Solved

Hiding Cursor In Text Mode

Posted on 1998-08-06
3
249 Views
Last Modified: 2010-04-16
I'm doing a program which uses only text/ASCII graphics and would like to know how to hide the blinking cursor.  I'm only using the CRT unit as well.
0
Comment
Question by:Corey080698
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
FuzzyLogic earned 100 total points
ID: 1217270
Here some assembler code for what you want.

Fuzzy
0
 
LVL 1

Expert Comment

by:FuzzyLogic
ID: 1217271
program Cursor;

var
  OldCursor:word;

begin;

  readln;

  asm
  { Save the old Cursor type }
    mov ah,03h
    mov bh,01h  { Screen page }
    int 10h
    mov word ptr OldCursor,cx

  { Set new cursor type }
    mov ah,01h
    mov cx,0FFFFh
    int 10h
  end;

  readln;

  asm
  { Restore the old Cursor type }
    mov ah,01h
    mov cx,OldCursor
    int 10h
  end;

  readln;

end.

0
 

Author Comment

by:Corey080698
ID: 1217272
Adjusted points to 100
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The business world is becoming increasingly integrated with tech. It’s not just for a select few anymore — but what about if you have a small business? It may be easier than you think to integrate technology into your small business, and it’s likely…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question