1. Why won't my screen clear?

I am making a program that makes trivia games, when it's done, the last 3
lines are:
if graphics_mode(-1) then
end if
cursor(UNDERLINE_CURSOR)
abort(0)...

WHY WON"T IT CLEAR THE SCREEN? It just puts the DOS prompt at the currect
cursor location.  Those last lines are in a procedure, does that matter?

Thanks
STQUMAN

new topic     » topic index » view message » categorize

2. Re: Why won't my screen clear?

At 07:19 PM 5/11/98 EDT,  ST Qu Man wrote:

>I am making a program that makes trivia games, when it's done, >the last 3
lines are:
>if graphics_mode(-1) then
>end if
>cursor(UNDERLINE_CURSOR)
>abort(0)...

>WHY WON"T IT CLEAR THE SCREEN? It just puts the DOS >prompt at the currect
>cursor location.  Those last lines are in a procedure, does that >matter?

No.
I think you may have this confused with the system() call.
Graphics_mode(-1) changes back to the previous mode,
there's no mention of clearing the screen.
The documentation says that if it leaves junk on the screen,
you should use the DOS command CLS.
I think you could also put a clear_screen() right after the "then".

Irv

new topic     » goto parent     » topic index » view message » categorize

3. Re: Why won't my screen clear?

>>I am making a program that makes trivia games, when it's done,
>>the last 3 lines are:
>>if graphics_mode(-1) then
>>end if
>>cursor(UNDERLINE_CURSOR)
>>abort(0)...
>
>>WHY WON"T IT CLEAR THE SCREEN? It just puts the DOS
>>prompt at the currect cursor location.  Those last lines
>>are in a procedure, does that matter?
>
>No.
>I think you may have this confused with the system() call.
>Graphics_mode(-1) changes back to the previous mode,
>there's no mention of clearing the screen.
>The documentation says that if it leaves junk on the screen,
>you should use the DOS command CLS.
>I think you could also put a clear_screen() right after the "then".

AFAIK, the screen will only clear the the graphics mode changes. If you
are already in text mode, the graphics mode won't change, and the screen
won't clear. That's been my experience.

_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]

new topic     » goto parent     » topic index » view message » categorize

4. Re: Why won't my screen clear?

Just insert clear_screen() right before the abort(0) statement.
The 'text screen' will be cleared and the cursor will be in the top left.=


Ad

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu