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
289 lines
12 KiB
Text
289 lines
12 KiB
Text
qbs *_FUNC_IDECHANGE_STRING_IDECHANGE=NULL;
|
|
if (!_FUNC_IDECHANGE_STRING_IDECHANGE)_FUNC_IDECHANGE_STRING_IDECHANGE=qbs_new(0,0);
|
|
ptrszint *_FUNC_IDECHANGE_ARRAY_STRING_SEARCHHISTORY=NULL;
|
|
if (!_FUNC_IDECHANGE_ARRAY_STRING_SEARCHHISTORY){
|
|
_FUNC_IDECHANGE_ARRAY_STRING_SEARCHHISTORY=(ptrszint*)mem_static_malloc(9*ptrsz);
|
|
new_mem_lock();
|
|
mem_lock_tmp->type=4;
|
|
((ptrszint*)_FUNC_IDECHANGE_ARRAY_STRING_SEARCHHISTORY)[8]=(ptrszint)mem_lock_tmp;
|
|
_FUNC_IDECHANGE_ARRAY_STRING_SEARCHHISTORY[2]=0;
|
|
_FUNC_IDECHANGE_ARRAY_STRING_SEARCHHISTORY[4]=2147483647;
|
|
_FUNC_IDECHANGE_ARRAY_STRING_SEARCHHISTORY[5]=0;
|
|
_FUNC_IDECHANGE_ARRAY_STRING_SEARCHHISTORY[6]=0;
|
|
_FUNC_IDECHANGE_ARRAY_STRING_SEARCHHISTORY[0]=(ptrszint)¬hingstring;
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_FOCUS=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_FOCUS==NULL){
|
|
_FUNC_IDECHANGE_LONG_FOCUS=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_FOCUS=0;
|
|
}
|
|
void *_FUNC_IDECHANGE_UDT_P=NULL;
|
|
if(_FUNC_IDECHANGE_UDT_P==NULL){
|
|
_FUNC_IDECHANGE_UDT_P=(void*)mem_static_malloc(20);
|
|
memset(_FUNC_IDECHANGE_UDT_P,0,20);
|
|
}
|
|
ptrszint *_FUNC_IDECHANGE_ARRAY_UDT_O=NULL;
|
|
if (!_FUNC_IDECHANGE_ARRAY_UDT_O){
|
|
_FUNC_IDECHANGE_ARRAY_UDT_O=(ptrszint*)mem_static_malloc(9*ptrsz);
|
|
new_mem_lock();
|
|
mem_lock_tmp->type=4;
|
|
((ptrszint*)_FUNC_IDECHANGE_ARRAY_UDT_O)[8]=(ptrszint)mem_lock_tmp;
|
|
_FUNC_IDECHANGE_ARRAY_UDT_O[2]=0;
|
|
_FUNC_IDECHANGE_ARRAY_UDT_O[4]=2147483647;
|
|
_FUNC_IDECHANGE_ARRAY_UDT_O[5]=0;
|
|
_FUNC_IDECHANGE_ARRAY_UDT_O[6]=0;
|
|
_FUNC_IDECHANGE_ARRAY_UDT_O[0]=(ptrszint)nothingvalue;
|
|
}
|
|
qbs *_FUNC_IDECHANGE_STRING1_SEP=NULL;
|
|
if(_FUNC_IDECHANGE_STRING1_SEP==NULL){
|
|
_FUNC_IDECHANGE_STRING1_SEP=qbs_new_fixed((uint8*)mem_static_malloc(1),1,0);
|
|
memset(_FUNC_IDECHANGE_STRING1_SEP->chr,0,1);
|
|
}
|
|
qbs *_FUNC_IDECHANGE_STRING_A=NULL;
|
|
if (!_FUNC_IDECHANGE_STRING_A)_FUNC_IDECHANGE_STRING_A=qbs_new(0,0);
|
|
qbs *_FUNC_IDECHANGE_STRING_A2=NULL;
|
|
if (!_FUNC_IDECHANGE_STRING_A2)_FUNC_IDECHANGE_STRING_A2=qbs_new(0,0);
|
|
int32 *_FUNC_IDECHANGE_LONG_SX1=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_SX1==NULL){
|
|
_FUNC_IDECHANGE_LONG_SX1=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_SX1=0;
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_SX2=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_SX2==NULL){
|
|
_FUNC_IDECHANGE_LONG_SX2=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_SX2=0;
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_X=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_X==NULL){
|
|
_FUNC_IDECHANGE_LONG_X=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_X=0;
|
|
}
|
|
int64 fornext_value4409;
|
|
int64 fornext_finalvalue4409;
|
|
int64 fornext_step4409;
|
|
uint8 fornext_step_negative4409;
|
|
byte_element_struct *byte_element_4410=NULL;
|
|
if (!byte_element_4410){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4410=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4410=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_LN=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_LN==NULL){
|
|
_FUNC_IDECHANGE_LONG_LN=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_LN=0;
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_FH=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_FH==NULL){
|
|
_FUNC_IDECHANGE_LONG_FH=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_FH=0;
|
|
}
|
|
byte_element_struct *byte_element_4411=NULL;
|
|
if (!byte_element_4411){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4411=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4411=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_4412=NULL;
|
|
if (!byte_element_4412){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4412=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4412=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_AI=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_AI==NULL){
|
|
_FUNC_IDECHANGE_LONG_AI=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_AI=0;
|
|
}
|
|
qbs *_FUNC_IDECHANGE_STRING_F=NULL;
|
|
if (!_FUNC_IDECHANGE_STRING_F)_FUNC_IDECHANGE_STRING_F=qbs_new(0,0);
|
|
byte_element_struct *byte_element_4414=NULL;
|
|
if (!byte_element_4414){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4414=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4414=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_4415=NULL;
|
|
if (!byte_element_4415){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4415=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4415=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_I=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_I==NULL){
|
|
_FUNC_IDECHANGE_LONG_I=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_I=0;
|
|
}
|
|
int32 pass4416;
|
|
int32 pass4417;
|
|
int32 *_FUNC_IDECHANGE_LONG_PREVFOCUS=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_PREVFOCUS==NULL){
|
|
_FUNC_IDECHANGE_LONG_PREVFOCUS=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_PREVFOCUS=0;
|
|
}
|
|
byte_element_struct *byte_element_4418=NULL;
|
|
if (!byte_element_4418){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4418=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4418=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_4419=NULL;
|
|
if (!byte_element_4419){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4419=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4419=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_4420=NULL;
|
|
if (!byte_element_4420){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4420=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4420=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_4421=NULL;
|
|
if (!byte_element_4421){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4421=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4421=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int64 fornext_value4423;
|
|
int64 fornext_finalvalue4423;
|
|
int64 fornext_step4423;
|
|
uint8 fornext_step_negative4423;
|
|
int32 *_FUNC_IDECHANGE_LONG_F=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_F==NULL){
|
|
_FUNC_IDECHANGE_LONG_F=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_F=0;
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_CX=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_CX==NULL){
|
|
_FUNC_IDECHANGE_LONG_CX=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_CX=0;
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_CY=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_CY==NULL){
|
|
_FUNC_IDECHANGE_LONG_CY=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_CY=0;
|
|
}
|
|
int64 fornext_value4426;
|
|
int64 fornext_finalvalue4426;
|
|
int64 fornext_step4426;
|
|
uint8 fornext_step_negative4426;
|
|
int32 *_FUNC_IDECHANGE_LONG_LASTFOCUS=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_LASTFOCUS==NULL){
|
|
_FUNC_IDECHANGE_LONG_LASTFOCUS=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_LASTFOCUS=0;
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_CHANGE=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_CHANGE==NULL){
|
|
_FUNC_IDECHANGE_LONG_CHANGE=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_CHANGE=0;
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_MOUSEDOWN=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_MOUSEDOWN==NULL){
|
|
_FUNC_IDECHANGE_LONG_MOUSEDOWN=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_MOUSEDOWN=0;
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_MOUSEUP=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_MOUSEUP==NULL){
|
|
_FUNC_IDECHANGE_LONG_MOUSEUP=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_MOUSEUP=0;
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_ALT=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_ALT==NULL){
|
|
_FUNC_IDECHANGE_LONG_ALT=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_ALT=0;
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_OLDALT=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_OLDALT==NULL){
|
|
_FUNC_IDECHANGE_LONG_OLDALT=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_OLDALT=0;
|
|
}
|
|
qbs *_FUNC_IDECHANGE_STRING_ALTLETTER=NULL;
|
|
if (!_FUNC_IDECHANGE_STRING_ALTLETTER)_FUNC_IDECHANGE_STRING_ALTLETTER=qbs_new(0,0);
|
|
byte_element_struct *byte_element_4428=NULL;
|
|
if (!byte_element_4428){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4428=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4428=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_K=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_K==NULL){
|
|
_FUNC_IDECHANGE_LONG_K=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_K=0;
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_INFO=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_INFO==NULL){
|
|
_FUNC_IDECHANGE_LONG_INFO=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_INFO=0;
|
|
}
|
|
int64 fornext_value4430;
|
|
int64 fornext_finalvalue4430;
|
|
int64 fornext_step4430;
|
|
uint8 fornext_step_negative4430;
|
|
int32 *_FUNC_IDECHANGE_LONG_T=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_T==NULL){
|
|
_FUNC_IDECHANGE_LONG_T=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_T=0;
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_FOCUSOFFSET=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_FOCUSOFFSET==NULL){
|
|
_FUNC_IDECHANGE_LONG_FOCUSOFFSET=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_FOCUSOFFSET=0;
|
|
}
|
|
byte_element_struct *byte_element_4431=NULL;
|
|
if (!byte_element_4431){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4431=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4431=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_4432=NULL;
|
|
if (!byte_element_4432){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4432=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4432=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_4433=NULL;
|
|
if (!byte_element_4433){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4433=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4433=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
qbs *_FUNC_IDECHANGE_STRING_S=NULL;
|
|
if (!_FUNC_IDECHANGE_STRING_S)_FUNC_IDECHANGE_STRING_S=qbs_new(0,0);
|
|
int32 *_FUNC_IDECHANGE_LONG_CHANGED=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_CHANGED==NULL){
|
|
_FUNC_IDECHANGE_LONG_CHANGED=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_CHANGED=0;
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_Y=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_Y==NULL){
|
|
_FUNC_IDECHANGE_LONG_Y=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_Y=0;
|
|
}
|
|
int64 fornext_value4435;
|
|
int64 fornext_finalvalue4435;
|
|
int64 fornext_step4435;
|
|
uint8 fornext_step_negative4435;
|
|
qbs *_FUNC_IDECHANGE_STRING_L=NULL;
|
|
if (!_FUNC_IDECHANGE_STRING_L)_FUNC_IDECHANGE_STRING_L=qbs_new(0,0);
|
|
qbs *_FUNC_IDECHANGE_STRING_L2=NULL;
|
|
if (!_FUNC_IDECHANGE_STRING_L2)_FUNC_IDECHANGE_STRING_L2=qbs_new(0,0);
|
|
int32 *_FUNC_IDECHANGE_LONG_X1=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_X1==NULL){
|
|
_FUNC_IDECHANGE_LONG_X1=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_X1=0;
|
|
}
|
|
qbs *_FUNC_IDECHANGE_STRING_L3=NULL;
|
|
if (!_FUNC_IDECHANGE_STRING_L3)_FUNC_IDECHANGE_STRING_L3=qbs_new(0,0);
|
|
int32 *_FUNC_IDECHANGE_LONG_WHOLE=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_WHOLE==NULL){
|
|
_FUNC_IDECHANGE_LONG_WHOLE=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_WHOLE=0;
|
|
}
|
|
int32 *_FUNC_IDECHANGE_LONG_C=NULL;
|
|
if(_FUNC_IDECHANGE_LONG_C==NULL){
|
|
_FUNC_IDECHANGE_LONG_C=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECHANGE_LONG_C=0;
|
|
}
|
|
byte_element_struct *byte_element_4436=NULL;
|
|
if (!byte_element_4436){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4436=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4436=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_4437=NULL;
|
|
if (!byte_element_4437){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4437=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4437=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_4438=NULL;
|
|
if (!byte_element_4438){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4438=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4438=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_4439=NULL;
|
|
if (!byte_element_4439){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4439=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4439=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_4440=NULL;
|
|
if (!byte_element_4440){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4440=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4440=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_4441=NULL;
|
|
if (!byte_element_4441){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4441=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4441=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_4442=NULL;
|
|
if (!byte_element_4442){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4442=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4442=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|