cls and fullscreen in console mode
-
- Posts: 10
- Joined: Feb 25, 2006 1:04
- Location: Australia
cls and fullscreen in console mode
for x = 1 to 150
print x
next x
print" change to fullscreen now"
sleep
cls
print "why doesn't cls clear the whole screen and what would?"
sleep
print x
next x
print" change to fullscreen now"
sleep
cls
print "why doesn't cls clear the whole screen and what would?"
sleep
-
- Posts: 5494
- Joined: Sep 12, 2005 20:06
- Location: California
-
- Posts: 10
- Joined: Feb 25, 2006 1:04
- Location: Australia
No, I just ran this code straight through the ide and clicked on the top righthand thingy to maximise the console window.
This is how it looks on my box:
http://www.geocities.com/gartenzwergs/Untitled-1.jpg
This is how it looks on my box:
http://www.geocities.com/gartenzwergs/Untitled-1.jpg
If you notice, even without going to full screen, the CLS only repositions the cursor to the top of the current 80x24 "screen". You can still scroll (with scroll bars) the screen up and see the previous numbers up as far as your console buffer will allow.
The "full screen" alt+enter on my pc goes to a total of 50 lines buffered and the CLS function only clears about half of that.
The "full screen" alt+enter on my pc goes to a total of 50 lines buffered and the CLS function only clears about half of that.
-
- Posts: 10
- Joined: Feb 25, 2006 1:04
- Location: Australia
-
- Posts: 10
- Joined: Feb 25, 2006 1:04
- Location: Australia
and what about the colour:
color 14,25
cls
for x=1 to 150
print x
next x
print" change to fullscreen now"
sleep
cls
print "why doesn't cls clear the whole screen and what would?"
print "and how do I get the whole window with a blue background?"
sleep
same story here, it only sets the background for a 24x80 screen, even when in fullscreen mode. Is there a workaround?
color 14,25
cls
for x=1 to 150
print x
next x
print" change to fullscreen now"
sleep
cls
print "why doesn't cls clear the whole screen and what would?"
print "and how do I get the whole window with a blue background?"
sleep
same story here, it only sets the background for a 24x80 screen, even when in fullscreen mode. Is there a workaround?
Ain't it obvious? Dump 300 blank lines. :)SyntaxError wrote:hmm, I see...
There seem to be 300 lines in the buffer, what's a good way of clearing it?
All I really want to achieve is to not have any leftovers on the console screen.
Seriously, there's no real need to worry about what goes on in the history of a console session. I play roguelike games, and they still have command line history above them if I scroll up. The ideaology is that the user shouldn't need to scroll upwards to use whatever program you're devising. The history shouldn't matter; essentially doesn't exist.
The history's there for the user's benefit, not for you to change on a whim.
I agree. If I want to set my buffer to 99,999 lines so that I can scroll back and cut-paste sections of the console to a text file, then thats my priority.tunginobi wrote:The history's there for the user's benefit, not for you to change on a whim.
If you want to switch to full-screen and have precise control, then use the text options in one of the gfxlib screens.
-
- Posts: 10
- Joined: Feb 25, 2006 1:04
- Location: Australia
-
- Posts: 10
- Joined: Feb 25, 2006 1:04
- Location: Australia
-
- Posts: 605
- Joined: Feb 18, 2006 13:30
- Location: Alexandria / Egypt
- Contact:
Code: Select all
for x = 1 to 150
print x
next x
print" change to fullscreen now"
sleep
'-------------
print
'-------------
cls
print "why doesn't cls clear the whole screen and what would?"
sleep
the extra print command will refresh things up ;)