1. Why won't my screen clear?
- Posted by ST Qu Man <STQuMan at AOL.COM> May 11, 1998
- 638 views
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
2. Re: Why won't my screen clear?
- Posted by Irv <irv at ELLIJAY.COM> May 11, 1998
- 612 views
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
3. Re: Why won't my screen clear?
- Posted by Robert B Pilkington <bpilkington at JUNO.COM> May 11, 1998
- 651 views
- Last edited May 12, 1998
>>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]
4. Re: Why won't my screen clear?
- Posted by Ad Rienks <Ad_Rienks at COMPUSERVE.COM> May 12, 1998
- 614 views
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