Qbasicnews.com

Full Version: Blinking text cursor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When you have an input, or you're typing in a text editor in DOS, you see a little underscore-like thingamabob after the last character you typed. How do you set that to visible if you're not using an input command (pref. using an interrupt?). I'm making a different command.com for fun and I need to know how to get the blinking text cursor. Do NOT post code for an underscore with a colour of 31! I want the real thing. I want a lot really, a toilet made of gold, for instance. Anyway... If you can help I'll be happy! Thanks.
LOCATE Statement Details

Syntax
LOCATE [row][,[column][,[cursor][,[start,stop]]]]

Argument Description
[row] The number of a row on the screen; row is a numeric
expression returning an integer. If row is not specified,
then the line (row) does not change.
[column] The number of a column on the screen; column is
a numeric expression returning an integer.
If column is not specified, then the column
location does not change.
[cursor] A Boolean value indicating whether the cursor is visible
or not. A value of 0 (zero) indicates cursor off; a value
of 1 indicates cursor on.
[start] The starting scan line of cursor on the screen. It must
be a numeric expression returning an integer.
[stop] The ending scan line of cursor on the screen. It must be
a numeric expression returning an integer.

Read the discription of the cursor argument.
That might be what you're looking for.

Nemesis
How are you using to get the input?

I tried this using interrupt 21h, ah=1 and this displayed an underscore.
Are you using some keyboard handler of your own?

Anyway using LOCATE will turn this on using the interrupt i mentioned, if not you will have do it via an underscore
Thanks guys, that's all I need to know.