Posts: 3,616
Threads: 287
Joined: Jan 2003
Two questions:
a) Is there any way to hide the cursor in the console...I'm trying to make a textmode game and it gets in the way.
b) How can I make the console fullscreen automatically, without pressing ALT+ENTER at runtime?
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Posts: 29
Threads: 0
Joined: Dec 2005
The two commands that should work on that(which you probably already know) don't work.
If it's possible for you to be able to do it in graphics mode...
SCREEN 18,,,1' 640X480 in full screen
SETMOUSE 1,1,0 ' Puts the mouse at x1,y1 and makes it invisible.
Those two commands not working in the console might be bugs. You might also want to ask at Freebasic.net
Posts: 488
Threads: 19
Joined: Sep 2005
Quote:The two commands that should work on that(which you probably already know) don't work.
If it's possible for you to be able to do it in graphics mode...
SCREEN 18,,,1' 640X480 in full screen
SETMOUSE 1,1,0 ' Puts the mouse at x1,y1 and makes it invisible.
Those two commands not working in the console might be bugs. You might also want to ask at Freebasic.net
Both of those are correct, the 1 in the SCREEN command sets the screen to fullscreen if the users videocard supports it which it should. The SETMOUSE command is also correct, but you can easily just go SETMOUSE ,,0 since no position is really needed since it won't be used.
Posts: 1,080
Threads: 87
Joined: Feb 2002
Hmm, hes talking about console and cursor, so I think he means the
blinking thing following the text...
In QB you would use locate like this:
Quote: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.
But FreeBASIC doesn't support the start stop thingy:
Quote:LOCATE Statement (diff: there are no start and stop optional arguments)
So, you can hide it, but not change the size.
Code: 'To hide it:
locate ,,0
/post]
Posts: 3,616
Threads: 287
Joined: Jan 2003
Thanks folks. Yes, I'm talking about the text cursor, not the mouse.
As for fullscreen...well, really would like it to be console-based, not graphics. Any ideas?
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Posts: 525
Threads: 23
Joined: Oct 2004
LOCATE , , 1 turns cursor on
LOCATE , , 0 turns cursor off
Posts: 488
Threads: 19
Joined: Sep 2005
Sorry, I thought you meant the mouse cursor, as for the fullscreen, why not just use graphics mode and compile using the -s gui switch to get rid of the console window, then you have window that you can print normally in, and you can use alot more colors for the text, colored text still counts as text.
Posts: 254
Threads: 8
Joined: Apr 2005
Read what he said.
Quote:really would like it to be console-based, not graphics
|