Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Console: cursor and screen size.
#1
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.
Reply
#2
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
Reply
#3
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.
Reply
#4
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]
Reply
#5
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.
Reply
#6
LOCATE , , 1 turns cursor on
LOCATE , , 0 turns cursor off
hen they say it can't be done, THAT's when they call me ;-).

[Image: kaffee.gif]
[Image: mystikshadows.png]

need hosting: http://www.jc-hosting.net
All about ASCII: http://www.ascii-world.com
Reply
#7
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.
Reply
#8
Read what he said.

Quote:really would like it to be console-based, not graphics
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)