11 #define FB_COLOR_FG_DEFAULT &h00000001
12 #define FB_COLOR_BG_DEFAULT &h00000002
22 @FB_RTL_CONSOLEVIEW, NULL, _
23 FB_DATATYPE_LONG, FB_FUNCMODE_FBCALL, _
24 NULL, FB_RTL_OPT_NONE, _
27 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, TRUE, 0 ), _
28 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, TRUE, 0 ) _
38 @FB_RTL_CONSOLEREADXY, NULL, _
39 FB_DATATYPE_ULONG, FB_FUNCMODE_FBCALL, _
40 NULL, FB_RTL_OPT_NONE, _
43 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, FALSE ), _
44 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, FALSE ), _
45 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, TRUE, 0 ) _
54 @FB_RTL_WIDTH, NULL, _
55 FB_DATATYPE_LONG, FB_FUNCMODE_FBCALL, _
56 NULL, FB_RTL_OPT_NONE, _
59 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, TRUE, -1 ), _
60 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, TRUE, -1 ) _
65 @FB_RTL_WIDTHDEV, NULL, _
66 FB_DATATYPE_LONG, FB_FUNCMODE_FBCALL, _
67 NULL, FB_RTL_OPT_NONE, _
70 ( FB_DATATYPE_STRING, FB_PARAMMODE_BYREF, FALSE ), _
71 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, TRUE, -1 ) _
76 @FB_RTL_WIDTHFILE, NULL, _
77 FB_DATATYPE_LONG, FB_FUNCMODE_FBCALL, _
78 NULL, FB_RTL_OPT_NONE, _
81 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, FALSE ), _
82 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, TRUE, -1 ) _
94 @
"locate", @
"fb_Locate", _
95 FB_DATATYPE_LONG, FB_FUNCMODE_FBCALL, _
96 NULL, FB_RTL_OPT_NONE, _
99 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, TRUE,0 ), _
100 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, TRUE,0 ), _
101 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, TRUE, -1 ), _
102 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, TRUE, 0 ), _
103 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, TRUE, 0 ) _
108 @
"pos", @
"fb_GetX", _
109 FB_DATATYPE_LONG, FB_FUNCMODE_FBCALL, _
110 NULL, FB_RTL_OPT_OVER, _
116 FB_DATATYPE_LONG, FB_FUNCMODE_FBCALL, _
117 NULL, FB_RTL_OPT_OVER, _
120 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, FALSE ) _
125 @
"csrlin", @
"fb_GetY", _
126 FB_DATATYPE_LONG, FB_FUNCMODE_FBCALL, _
127 NULL, FB_RTL_OPT_NONE, _
133 FB_DATATYPE_VOID, FB_FUNCMODE_FBCALL, _
134 NULL, FB_RTL_OPT_NONE, _
137 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, TRUE, &hFFFF0000 ) _
147 @FB_RTL_COLOR, NULL, _
148 FB_DATATYPE_LONG, FB_FUNCMODE_FBCALL, _
149 NULL, FB_RTL_OPT_NONE, _
152 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, FALSE ), _
153 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, FALSE ), _
154 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, FALSE ) _
159 @
"inkey", @
"fb_Inkey", _
160 FB_DATATYPE_STRING, FB_FUNCMODE_FBCALL, _
161 @rtlMultinput_cb, FB_RTL_OPT_STRSUFFIX
or FB_RTL_OPT_NOQB, _
166 @
"inkey", @
"fb_InkeyQB", _
167 FB_DATATYPE_STRING, FB_FUNCMODE_FBCALL, _
168 @rtlMultinput_cb, FB_RTL_OPT_STRSUFFIX
or FB_RTL_OPT_QBONLY, _
173 @
"getkey", @
"fb_Getkey", _
174 FB_DATATYPE_LONG, FB_FUNCMODE_FBCALL, _
175 @rtlMultinput_cb, FB_RTL_OPT_NOQB, _
180 @
"pcopy", @
"fb_PageCopy", _
181 FB_DATATYPE_LONG, FB_FUNCMODE_FBCALL, _
182 NULL, FB_RTL_OPT_NONE, _
185 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, TRUE, -1 ), _
186 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, TRUE, -1 ) _
191 @FB_RTL_PAGESET, NULL, _
192 FB_DATATYPE_LONG, FB_FUNCMODE_FBCALL, _
193 NULL, FB_RTL_OPT_NONE, _
196 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, TRUE, -1 ), _
197 ( FB_DATATYPE_LONG, FB_PARAMMODE_BYVAL, TRUE, -1 ) _
223 byval topexpr
as ASTNODE
ptr, _
224 byval botexpr
as ASTNODE
ptr _
227 dim as ASTNODE
ptr proc =
any
232 proc =
astNewCALL( PROCLOOKUP( CONSOLEVIEW ) )
235 if(
astNewARG( proc, topexpr ) = NULL )
then
240 if(
astNewARG( proc, botexpr ) = NULL )
then
251 byval width_arg
as ASTNODE
ptr, _
252 byval height_arg
as ASTNODE
ptr, _
253 byval isfunc
as integer _
256 dim as ASTNODE
ptr proc =
any
264 if( width_arg = NULL )
then
267 if(
astNewARG( proc, width_arg ) = NULL )
then
272 if( height_arg = NULL )
then
275 if(
astNewARG( proc, height_arg ) = NULL )
then
279 if( isfunc = FALSE )
then
289 byval fexpr
as ASTNODE
ptr, _
290 byval bexpr
as ASTNODE
ptr, _
291 byval isfunc
as integer _
294 dim as ASTNODE
ptr proc =
any
295 dim as integer flags =
any
304 if( fexpr = NULL )
then
306 flags
or= FB_COLOR_FG_DEFAULT
308 if(
astNewARG( proc, fexpr ) = NULL )
then
313 if( bexpr = NULL )
then
315 flags
or= FB_COLOR_BG_DEFAULT
317 if(
astNewARG( proc, bexpr ) = NULL )
then
326 if( isfunc = FALSE )
then
337 byval active
as ASTNODE
ptr, _
338 byval visible
as ASTNODE
ptr, _
339 byval isfunc
as integer _
342 dim as ASTNODE
ptr proc =
any
350 if( active = NULL )
then
353 if(
astNewARG( proc, active ) = NULL )
then
358 if( visible = NULL )
then
361 if(
astNewARG( proc, visible ) = NULL )
then
365 if( isfunc = FALSE )
then
376 byval rowexpr
as ASTNODE
ptr, _
377 byval columnexpr
as ASTNODE
ptr, _
378 byval colorflagexpr
as ASTNODE
ptr _
381 dim as ASTNODE
ptr proc =
any
386 proc =
astNewCALL( PROCLOOKUP( CONSOLEREADXY ) )
389 if(
astNewARG( proc, columnexpr ) = NULL )
then
394 if(
astNewARG( proc, rowexpr ) = NULL )
then
399 if( colorflagexpr = NULL )
then
402 if(
astNewARG( proc, colorflagexpr ) = NULL )
then