FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
io_viewhlp.c
Go to the documentation of this file.
1
/* view print helpers (console, no gfx) */
2
3
#include "
fb.h
"
4
5
static
int
view_toprow
= -1,
view_botrow
= -1;
6
7
/*:::::*/
8
int
fb_ConsoleGetTopRow
(
void
)
9
{
10
if
(
view_toprow
== -1 ) {
11
view_toprow
= 0;
12
}
13
return
view_toprow
;
14
}
15
16
/*:::::*/
17
int
fb_ConsoleGetBotRow
(
void
)
18
{
19
if
(
view_botrow
== -1 ) {
20
fb_GetSize
(
NULL
, &
view_botrow
);
21
if
(
view_botrow
!=0 ) {
22
--
view_botrow
;
23
}
else
{
24
view_botrow
=
FB_SCRN_DEFAULT_HEIGHT
- 1;
25
}
26
}
27
28
return
view_botrow
;
29
}
30
31
/*:::::*/
32
void
fb_ConsoleSetTopBotRows
(
int
top,
int
bot )
33
{
34
view_toprow
= top;
35
view_botrow
= bot;
36
}
37
38
/*:::::*/
39
void
fb_ConsoleGetView
(
int
*toprow,
int
*botrow )
40
{
41
*toprow =
fb_ConsoleGetTopRow
( ) + 1;
42
*botrow =
fb_ConsoleGetBotRow
( ) + 1;
43
}
44
45
rtlib
io_viewhlp.c
Generated on Thu Jan 23 2014 19:40:12 for FreeBASIC by
1.8.4