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
149 lines
6.4 KiB
Text
149 lines
6.4 KiB
Text
int32 *_FUNC_VALIDLABEL_LONG_VALIDLABEL=NULL;
|
|
if(_FUNC_VALIDLABEL_LONG_VALIDLABEL==NULL){
|
|
_FUNC_VALIDLABEL_LONG_VALIDLABEL=(int32*)mem_static_malloc(4);
|
|
*_FUNC_VALIDLABEL_LONG_VALIDLABEL=0;
|
|
}
|
|
qbs*oldstr3050=NULL;
|
|
if(_FUNC_VALIDLABEL_STRING_LABEL2->tmp||_FUNC_VALIDLABEL_STRING_LABEL2->fixed||_FUNC_VALIDLABEL_STRING_LABEL2->readonly){
|
|
oldstr3050=_FUNC_VALIDLABEL_STRING_LABEL2;
|
|
if (oldstr3050->cmem_descriptor){
|
|
_FUNC_VALIDLABEL_STRING_LABEL2=qbs_new_cmem(oldstr3050->len,0);
|
|
}else{
|
|
_FUNC_VALIDLABEL_STRING_LABEL2=qbs_new(oldstr3050->len,0);
|
|
}
|
|
memcpy(_FUNC_VALIDLABEL_STRING_LABEL2->chr,oldstr3050->chr,oldstr3050->len);
|
|
}
|
|
int32 *_FUNC_VALIDLABEL_LONG_CREATE=NULL;
|
|
if(_FUNC_VALIDLABEL_LONG_CREATE==NULL){
|
|
_FUNC_VALIDLABEL_LONG_CREATE=(int32*)mem_static_malloc(4);
|
|
*_FUNC_VALIDLABEL_LONG_CREATE=0;
|
|
}
|
|
byte_element_struct *byte_element_3051=NULL;
|
|
if (!byte_element_3051){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3051=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3051=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
qbs *_FUNC_VALIDLABEL_STRING_CLABEL=NULL;
|
|
if (!_FUNC_VALIDLABEL_STRING_CLABEL)_FUNC_VALIDLABEL_STRING_CLABEL=qbs_new(0,0);
|
|
qbs *_FUNC_VALIDLABEL_STRING_LABEL=NULL;
|
|
if (!_FUNC_VALIDLABEL_STRING_LABEL)_FUNC_VALIDLABEL_STRING_LABEL=qbs_new(0,0);
|
|
int32 *_FUNC_VALIDLABEL_LONG_N=NULL;
|
|
if(_FUNC_VALIDLABEL_LONG_N==NULL){
|
|
_FUNC_VALIDLABEL_LONG_N=(int32*)mem_static_malloc(4);
|
|
*_FUNC_VALIDLABEL_LONG_N=0;
|
|
}
|
|
int32 *_FUNC_VALIDLABEL_LONG_HASHRES=NULL;
|
|
if(_FUNC_VALIDLABEL_LONG_HASHRES==NULL){
|
|
_FUNC_VALIDLABEL_LONG_HASHRES=(int32*)mem_static_malloc(4);
|
|
*_FUNC_VALIDLABEL_LONG_HASHRES=0;
|
|
}
|
|
int32 pass3052;
|
|
int32 *_FUNC_VALIDLABEL_LONG_HASHRESFLAGS=NULL;
|
|
if(_FUNC_VALIDLABEL_LONG_HASHRESFLAGS==NULL){
|
|
_FUNC_VALIDLABEL_LONG_HASHRESFLAGS=(int32*)mem_static_malloc(4);
|
|
*_FUNC_VALIDLABEL_LONG_HASHRESFLAGS=0;
|
|
}
|
|
int32 *_FUNC_VALIDLABEL_LONG_HASHRESREF=NULL;
|
|
if(_FUNC_VALIDLABEL_LONG_HASHRESREF==NULL){
|
|
_FUNC_VALIDLABEL_LONG_HASHRESREF=(int32*)mem_static_malloc(4);
|
|
*_FUNC_VALIDLABEL_LONG_HASHRESREF=0;
|
|
}
|
|
int32 *_FUNC_VALIDLABEL_LONG_ONECOMMANDSUB=NULL;
|
|
if(_FUNC_VALIDLABEL_LONG_ONECOMMANDSUB==NULL){
|
|
_FUNC_VALIDLABEL_LONG_ONECOMMANDSUB=(int32*)mem_static_malloc(4);
|
|
*_FUNC_VALIDLABEL_LONG_ONECOMMANDSUB=0;
|
|
}
|
|
qbs *_FUNC_VALIDLABEL_STRING_A=NULL;
|
|
if (!_FUNC_VALIDLABEL_STRING_A)_FUNC_VALIDLABEL_STRING_A=qbs_new(0,0);
|
|
int32 *_FUNC_VALIDLABEL_LONG_B=NULL;
|
|
if(_FUNC_VALIDLABEL_LONG_B==NULL){
|
|
_FUNC_VALIDLABEL_LONG_B=(int32*)mem_static_malloc(4);
|
|
*_FUNC_VALIDLABEL_LONG_B=0;
|
|
}
|
|
int32 *_FUNC_VALIDLABEL_LONG_X=NULL;
|
|
if(_FUNC_VALIDLABEL_LONG_X==NULL){
|
|
_FUNC_VALIDLABEL_LONG_X=(int32*)mem_static_malloc(4);
|
|
*_FUNC_VALIDLABEL_LONG_X=0;
|
|
}
|
|
int64 fornext_value3055;
|
|
int64 fornext_finalvalue3055;
|
|
int64 fornext_step3055;
|
|
uint8 fornext_step_negative3055;
|
|
byte_element_struct *byte_element_3056=NULL;
|
|
if (!byte_element_3056){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3056=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3056=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_FUNC_VALIDLABEL_LONG_A=NULL;
|
|
if(_FUNC_VALIDLABEL_LONG_A==NULL){
|
|
_FUNC_VALIDLABEL_LONG_A=(int32*)mem_static_malloc(4);
|
|
*_FUNC_VALIDLABEL_LONG_A=0;
|
|
}
|
|
byte_element_struct *byte_element_3057=NULL;
|
|
if (!byte_element_3057){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3057=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3057=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
qbs *_FUNC_VALIDLABEL_STRING_T=NULL;
|
|
if (!_FUNC_VALIDLABEL_STRING_T)_FUNC_VALIDLABEL_STRING_T=qbs_new(0,0);
|
|
byte_element_struct *byte_element_3058=NULL;
|
|
if (!byte_element_3058){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3058=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3058=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
qbs *_FUNC_VALIDLABEL_STRING_ADDSYMBOL=NULL;
|
|
if (!_FUNC_VALIDLABEL_STRING_ADDSYMBOL)_FUNC_VALIDLABEL_STRING_ADDSYMBOL=qbs_new(0,0);
|
|
byte_element_struct *byte_element_3059=NULL;
|
|
if (!byte_element_3059){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3059=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3059=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_FUNC_VALIDLABEL_LONG_DP=NULL;
|
|
if(_FUNC_VALIDLABEL_LONG_DP==NULL){
|
|
_FUNC_VALIDLABEL_LONG_DP=(int32*)mem_static_malloc(4);
|
|
*_FUNC_VALIDLABEL_LONG_DP=0;
|
|
}
|
|
int64 fornext_value3061;
|
|
int64 fornext_finalvalue3061;
|
|
int64 fornext_step3061;
|
|
uint8 fornext_step_negative3061;
|
|
byte_element_struct *byte_element_3062=NULL;
|
|
if (!byte_element_3062){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3062=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3062=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3063=NULL;
|
|
if (!byte_element_3063){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3063=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3063=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_FUNC_VALIDLABEL_LONG_I=NULL;
|
|
if(_FUNC_VALIDLABEL_LONG_I==NULL){
|
|
_FUNC_VALIDLABEL_LONG_I=(int32*)mem_static_malloc(4);
|
|
*_FUNC_VALIDLABEL_LONG_I=0;
|
|
}
|
|
byte_element_struct *byte_element_3064=NULL;
|
|
if (!byte_element_3064){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3064=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3064=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_FUNC_VALIDLABEL_LONG_NX=NULL;
|
|
if(_FUNC_VALIDLABEL_LONG_NX==NULL){
|
|
_FUNC_VALIDLABEL_LONG_NX=(int32*)mem_static_malloc(4);
|
|
*_FUNC_VALIDLABEL_LONG_NX=0;
|
|
}
|
|
int64 fornext_value3066;
|
|
int64 fornext_finalvalue3066;
|
|
int64 fornext_step3066;
|
|
uint8 fornext_step_negative3066;
|
|
int32 *_FUNC_VALIDLABEL_LONG_C=NULL;
|
|
if(_FUNC_VALIDLABEL_LONG_C==NULL){
|
|
_FUNC_VALIDLABEL_LONG_C=(int32*)mem_static_malloc(4);
|
|
*_FUNC_VALIDLABEL_LONG_C=0;
|
|
}
|
|
qbs *_FUNC_VALIDLABEL_STRING_LABEL3=NULL;
|
|
if (!_FUNC_VALIDLABEL_STRING_LABEL3)_FUNC_VALIDLABEL_STRING_LABEL3=qbs_new(0,0);
|
|
int64 fornext_value3068;
|
|
int64 fornext_finalvalue3068;
|
|
int64 fornext_step3068;
|
|
uint8 fornext_step_negative3068;
|
|
int64 fornext_value3070;
|
|
int64 fornext_finalvalue3070;
|
|
int64 fornext_step3070;
|
|
uint8 fornext_step_negative3070;
|
|
byte_element_struct *byte_element_3071=NULL;
|
|
if (!byte_element_3071){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3071=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3071=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|