mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-22 11:25:08 +00:00
Window's CONSOLE support has been extended so that: CSRLIN support added. POS(0) support added. LOCATE support added. (Works with optional parameters.) COLOR support added. SCREEN support added to get both character and color information of any point on the console. tab() glitch fixed. (Which could cause an endless loop when printing with comma spaced text/numbers.) _WIDTH support added. _HEIGHT support added. WIDTH support added, with 2 new parameters added so we can set the buffer width and buffer height also. CLS support semi-added. (Doesn't accept colored backgrounds; it clears the screen black. I'm getting tired of working up console stuff which I probably won't ever use myself...) SLEEP support added. END support added so we now end with any keypress and not just enter. _CONSOLEINPUT added, so we can tell the difference in mouse and keyboard input. _CINP(toggle) support added, which allows us to get single character keystrokes from the console. _CONSOLEFONT FontName, FontSize support added, which allows us to change the font and font size we use for the console. _CONSOLECURSOR _SHOW|_HIDE, cursorsize support added, which allows us to show or hide the cursor in the console, and to change its size (from 0 to 100), as desired. New keyboard commands added: _CAPSLOCK -- returns 1 if caps lock is on, 0 if it isn't. _NUMLOCK -- as above, but for num lock _SCROLLOCK -- as above, but for scroll lock _TOGGLE_CAPSLOCK -- toggles the caps lock state for us. _TOGGLE_NUMLOCK -- same, but for num lock _TOGGLE_SCROLLOCK -- same, but for scroll lock
166 lines
7.4 KiB
Text
166 lines
7.4 KiB
Text
qbs *_FUNC_EVALUATETOTYP_STRING_EVALUATETOTYP=NULL;
|
|
if (!_FUNC_EVALUATETOTYP_STRING_EVALUATETOTYP)_FUNC_EVALUATETOTYP_STRING_EVALUATETOTYP=qbs_new(0,0);
|
|
qbs*oldstr2495=NULL;
|
|
if(_FUNC_EVALUATETOTYP_STRING_A2->tmp||_FUNC_EVALUATETOTYP_STRING_A2->fixed||_FUNC_EVALUATETOTYP_STRING_A2->readonly){
|
|
oldstr2495=_FUNC_EVALUATETOTYP_STRING_A2;
|
|
if (oldstr2495->cmem_descriptor){
|
|
_FUNC_EVALUATETOTYP_STRING_A2=qbs_new_cmem(oldstr2495->len,0);
|
|
}else{
|
|
_FUNC_EVALUATETOTYP_STRING_A2=qbs_new(oldstr2495->len,0);
|
|
}
|
|
memcpy(_FUNC_EVALUATETOTYP_STRING_A2->chr,oldstr2495->chr,oldstr2495->len);
|
|
}
|
|
qbs *_FUNC_EVALUATETOTYP_STRING_A=NULL;
|
|
if (!_FUNC_EVALUATETOTYP_STRING_A)_FUNC_EVALUATETOTYP_STRING_A=qbs_new(0,0);
|
|
qbs *_FUNC_EVALUATETOTYP_STRING_E=NULL;
|
|
if (!_FUNC_EVALUATETOTYP_STRING_E)_FUNC_EVALUATETOTYP_STRING_E=qbs_new(0,0);
|
|
int32 *_FUNC_EVALUATETOTYP_LONG_SOURCETYP=NULL;
|
|
if(_FUNC_EVALUATETOTYP_LONG_SOURCETYP==NULL){
|
|
_FUNC_EVALUATETOTYP_LONG_SOURCETYP=(int32*)mem_static_malloc(4);
|
|
*_FUNC_EVALUATETOTYP_LONG_SOURCETYP=0;
|
|
}
|
|
int32 *_FUNC_EVALUATETOTYP_LONG_IDNUMBER=NULL;
|
|
if(_FUNC_EVALUATETOTYP_LONG_IDNUMBER==NULL){
|
|
_FUNC_EVALUATETOTYP_LONG_IDNUMBER=(int32*)mem_static_malloc(4);
|
|
*_FUNC_EVALUATETOTYP_LONG_IDNUMBER=0;
|
|
}
|
|
int32 *_FUNC_EVALUATETOTYP_LONG_I=NULL;
|
|
if(_FUNC_EVALUATETOTYP_LONG_I==NULL){
|
|
_FUNC_EVALUATETOTYP_LONG_I=(int32*)mem_static_malloc(4);
|
|
*_FUNC_EVALUATETOTYP_LONG_I=0;
|
|
}
|
|
byte_element_struct *byte_element_2496=NULL;
|
|
if (!byte_element_2496){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2496=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2496=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_FUNC_EVALUATETOTYP_LONG_U=NULL;
|
|
if(_FUNC_EVALUATETOTYP_LONG_U==NULL){
|
|
_FUNC_EVALUATETOTYP_LONG_U=(int32*)mem_static_malloc(4);
|
|
*_FUNC_EVALUATETOTYP_LONG_U=0;
|
|
}
|
|
byte_element_struct *byte_element_2497=NULL;
|
|
if (!byte_element_2497){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2497=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2497=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_2498=NULL;
|
|
if (!byte_element_2498){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2498=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2498=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
qbs *_FUNC_EVALUATETOTYP_STRING_O=NULL;
|
|
if (!_FUNC_EVALUATETOTYP_STRING_O)_FUNC_EVALUATETOTYP_STRING_O=qbs_new(0,0);
|
|
qbs *_FUNC_EVALUATETOTYP_STRING_N=NULL;
|
|
if (!_FUNC_EVALUATETOTYP_STRING_N)_FUNC_EVALUATETOTYP_STRING_N=qbs_new(0,0);
|
|
qbs *_FUNC_EVALUATETOTYP_STRING_DST=NULL;
|
|
if (!_FUNC_EVALUATETOTYP_STRING_DST)_FUNC_EVALUATETOTYP_STRING_DST=qbs_new(0,0);
|
|
qbs *_FUNC_EVALUATETOTYP_STRING_BYTES=NULL;
|
|
if (!_FUNC_EVALUATETOTYP_STRING_BYTES)_FUNC_EVALUATETOTYP_STRING_BYTES=qbs_new(0,0);
|
|
int32 pass2499;
|
|
int32 pass2500;
|
|
int32 pass2501;
|
|
int32 pass2502;
|
|
int32 pass2503;
|
|
int32 pass2504;
|
|
int32 pass2505;
|
|
int32 pass2506;
|
|
int32 pass2507;
|
|
int32 *_FUNC_EVALUATETOTYP_LONG_SIZE=NULL;
|
|
if(_FUNC_EVALUATETOTYP_LONG_SIZE==NULL){
|
|
_FUNC_EVALUATETOTYP_LONG_SIZE=(int32*)mem_static_malloc(4);
|
|
*_FUNC_EVALUATETOTYP_LONG_SIZE=0;
|
|
}
|
|
byte_element_struct *byte_element_2508=NULL;
|
|
if (!byte_element_2508){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2508=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2508=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_2509=NULL;
|
|
if (!byte_element_2509){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2509=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2509=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_2510=NULL;
|
|
if (!byte_element_2510){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2510=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2510=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 pass2511;
|
|
int32 *_FUNC_EVALUATETOTYP_LONG_T1=NULL;
|
|
if(_FUNC_EVALUATETOTYP_LONG_T1==NULL){
|
|
_FUNC_EVALUATETOTYP_LONG_T1=(int32*)mem_static_malloc(4);
|
|
*_FUNC_EVALUATETOTYP_LONG_T1=0;
|
|
}
|
|
int32 pass2512;
|
|
int32 *_FUNC_EVALUATETOTYP_LONG_T=NULL;
|
|
if(_FUNC_EVALUATETOTYP_LONG_T==NULL){
|
|
_FUNC_EVALUATETOTYP_LONG_T=(int32*)mem_static_malloc(4);
|
|
*_FUNC_EVALUATETOTYP_LONG_T=0;
|
|
}
|
|
qbs *_FUNC_EVALUATETOTYP_STRING_LK=NULL;
|
|
if (!_FUNC_EVALUATETOTYP_STRING_LK)_FUNC_EVALUATETOTYP_STRING_LK=qbs_new(0,0);
|
|
int32 pass2513;
|
|
int32 pass2514;
|
|
int32 pass2515;
|
|
int32 pass2516;
|
|
int32 pass2517;
|
|
int32 pass2518;
|
|
byte_element_struct *byte_element_2519=NULL;
|
|
if (!byte_element_2519){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2519=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2519=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_2520=NULL;
|
|
if (!byte_element_2520){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2520=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2520=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_2521=NULL;
|
|
if (!byte_element_2521){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2521=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2521=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 pass2522;
|
|
int32 pass2523;
|
|
int32 *_FUNC_EVALUATETOTYP_LONG_TSIZE=NULL;
|
|
if(_FUNC_EVALUATETOTYP_LONG_TSIZE==NULL){
|
|
_FUNC_EVALUATETOTYP_LONG_TSIZE=(int32*)mem_static_malloc(4);
|
|
*_FUNC_EVALUATETOTYP_LONG_TSIZE=0;
|
|
}
|
|
qbs *_FUNC_EVALUATETOTYP_STRING_INDEX=NULL;
|
|
if (!_FUNC_EVALUATETOTYP_STRING_INDEX)_FUNC_EVALUATETOTYP_STRING_INDEX=qbs_new(0,0);
|
|
byte_element_struct *byte_element_2524=NULL;
|
|
if (!byte_element_2524){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2524=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2524=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 pass2525;
|
|
int32 pass2526;
|
|
int32 *_FUNC_EVALUATETOTYP_LONG_BYTES=NULL;
|
|
if(_FUNC_EVALUATETOTYP_LONG_BYTES==NULL){
|
|
_FUNC_EVALUATETOTYP_LONG_BYTES=(int32*)mem_static_malloc(4);
|
|
*_FUNC_EVALUATETOTYP_LONG_BYTES=0;
|
|
}
|
|
int32 pass2527;
|
|
int32 pass2528;
|
|
byte_element_struct *byte_element_2529=NULL;
|
|
if (!byte_element_2529){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2529=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2529=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_2530=NULL;
|
|
if (!byte_element_2530){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2530=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2530=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_2531=NULL;
|
|
if (!byte_element_2531){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2531=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2531=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 pass2532;
|
|
int32 pass2533;
|
|
byte_element_struct *byte_element_2534=NULL;
|
|
if (!byte_element_2534){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2534=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2534=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 pass2535;
|
|
int32 pass2536;
|
|
int32 pass2537;
|
|
int32 pass2538;
|
|
int32 pass2539;
|
|
int32 pass2540;
|
|
int32 pass2541;
|
|
int32 *_FUNC_EVALUATETOTYP_LONG_BITS=NULL;
|
|
if(_FUNC_EVALUATETOTYP_LONG_BITS==NULL){
|
|
_FUNC_EVALUATETOTYP_LONG_BITS=(int32*)mem_static_malloc(4);
|
|
*_FUNC_EVALUATETOTYP_LONG_BITS=0;
|
|
}
|