Solved

Hiding Cursor In Text Mode

Posted on 1998-08-06
3
246 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This article outlines the process to identify and resolve account lockout in an Active Directory environment.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

773 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