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
101 lines
4.2 KiB
Text
101 lines
4.2 KiB
Text
int32 *_FUNC_IDE_LONG_IDE=NULL;
|
|
if(_FUNC_IDE_LONG_IDE==NULL){
|
|
_FUNC_IDE_LONG_IDE=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDE_LONG_IDE=0;
|
|
}
|
|
int32 *_FUNC_IDE_LONG_CMD=NULL;
|
|
if(_FUNC_IDE_LONG_CMD==NULL){
|
|
_FUNC_IDE_LONG_CMD=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDE_LONG_CMD=0;
|
|
}
|
|
byte_element_struct *byte_element_3633=NULL;
|
|
if (!byte_element_3633){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3633=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3633=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_FUNC_IDE_LONG_L=NULL;
|
|
if(_FUNC_IDE_LONG_L==NULL){
|
|
_FUNC_IDE_LONG_L=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDE_LONG_L=0;
|
|
}
|
|
byte_element_struct *byte_element_3634=NULL;
|
|
if (!byte_element_3634){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3634=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3634=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_FUNC_IDE_LONG_I=NULL;
|
|
if(_FUNC_IDE_LONG_I==NULL){
|
|
_FUNC_IDE_LONG_I=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDE_LONG_I=0;
|
|
}
|
|
int64 fornext_value3636;
|
|
int64 fornext_finalvalue3636;
|
|
int64 fornext_step3636;
|
|
uint8 fornext_step_negative3636;
|
|
int32 *_FUNC_IDE_LONG_INDENT=NULL;
|
|
if(_FUNC_IDE_LONG_INDENT==NULL){
|
|
_FUNC_IDE_LONG_INDENT=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDE_LONG_INDENT=0;
|
|
}
|
|
byte_element_struct *byte_element_3637=NULL;
|
|
if (!byte_element_3637){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3637=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3637=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
qbs *_FUNC_IDE_STRING_LAYOUT2=NULL;
|
|
if (!_FUNC_IDE_STRING_LAYOUT2)_FUNC_IDE_STRING_LAYOUT2=qbs_new(0,0);
|
|
int32 *_FUNC_IDE_LONG_I2=NULL;
|
|
if(_FUNC_IDE_LONG_I2==NULL){
|
|
_FUNC_IDE_LONG_I2=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDE_LONG_I2=0;
|
|
}
|
|
int32 *_FUNC_IDE_LONG_IGNORESP=NULL;
|
|
if(_FUNC_IDE_LONG_IGNORESP==NULL){
|
|
_FUNC_IDE_LONG_IGNORESP=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDE_LONG_IGNORESP=0;
|
|
}
|
|
int64 fornext_value3639;
|
|
int64 fornext_finalvalue3639;
|
|
int64 fornext_step3639;
|
|
uint8 fornext_step_negative3639;
|
|
byte_element_struct *byte_element_3640=NULL;
|
|
if (!byte_element_3640){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3640=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3640=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_FUNC_IDE_LONG_A=NULL;
|
|
if(_FUNC_IDE_LONG_A==NULL){
|
|
_FUNC_IDE_LONG_A=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDE_LONG_A=0;
|
|
}
|
|
byte_element_struct *byte_element_3641=NULL;
|
|
if (!byte_element_3641){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3641=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3641=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int64 fornext_value3643;
|
|
int64 fornext_finalvalue3643;
|
|
int64 fornext_step3643;
|
|
uint8 fornext_step_negative3643;
|
|
qbs *_FUNC_IDE_STRING_INDENT=NULL;
|
|
if (!_FUNC_IDE_STRING_INDENT)_FUNC_IDE_STRING_INDENT=qbs_new(0,0);
|
|
byte_element_struct *byte_element_3644=NULL;
|
|
if (!byte_element_3644){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3644=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3644=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int64 fornext_value3646;
|
|
int64 fornext_finalvalue3646;
|
|
int64 fornext_step3646;
|
|
uint8 fornext_step_negative3646;
|
|
byte_element_struct *byte_element_3647=NULL;
|
|
if (!byte_element_3647){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3647=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3647=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
qbs *_FUNC_IDE_STRING_STATUS__ASCII_CHR_046__PROGRESS=NULL;
|
|
if (!_FUNC_IDE_STRING_STATUS__ASCII_CHR_046__PROGRESS)_FUNC_IDE_STRING_STATUS__ASCII_CHR_046__PROGRESS=qbs_new(0,0);
|
|
int32 pass3648;
|
|
byte_element_struct *byte_element_3649=NULL;
|
|
if (!byte_element_3649){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3649=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3649=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 pass3650;
|
|
byte_element_struct *byte_element_3651=NULL;
|
|
if (!byte_element_3651){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3651=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3651=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 pass3652;
|