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
180 lines
6.9 KiB
Text
180 lines
6.9 KiB
Text
qbs *_SUB_IDEDRAWOBJ_STRING1_SEP=NULL;
|
|
if(_SUB_IDEDRAWOBJ_STRING1_SEP==NULL){
|
|
_SUB_IDEDRAWOBJ_STRING1_SEP=qbs_new_fixed((uint8*)mem_static_malloc(1),1,0);
|
|
memset(_SUB_IDEDRAWOBJ_STRING1_SEP->chr,0,1);
|
|
}
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_X=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_X==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_X=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_X=0;
|
|
}
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_Y=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_Y==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_Y=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_Y=0;
|
|
}
|
|
qbs *_SUB_IDEDRAWOBJ_STRING_A=NULL;
|
|
if (!_SUB_IDEDRAWOBJ_STRING_A)_SUB_IDEDRAWOBJ_STRING_A=qbs_new(0,0);
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_X2=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_X2==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_X2=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_X2=0;
|
|
}
|
|
int32 pass4467;
|
|
int32 pass4468;
|
|
int32 pass4469;
|
|
byte_element_struct *byte_element_4470=NULL;
|
|
if (!byte_element_4470){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4470=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4470=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_4471=NULL;
|
|
if (!byte_element_4471){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4471=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4471=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_CX=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_CX==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_CX=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_CX=0;
|
|
}
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_TX=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_TX==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_TX=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_TX=0;
|
|
}
|
|
byte_element_struct *byte_element_4472=NULL;
|
|
if (!byte_element_4472){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4472=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4472=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_SX1=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_SX1==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_SX1=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_SX1=0;
|
|
}
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_SX2=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_SX2==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_SX2=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_SX2=0;
|
|
}
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_COLORCHAR=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_COLORCHAR==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_COLORCHAR=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_COLORCHAR=0;
|
|
}
|
|
int64 fornext_value4475;
|
|
int64 fornext_finalvalue4475;
|
|
int64 fornext_step4475;
|
|
uint8 fornext_step_negative4475;
|
|
byte_element_struct *byte_element_4476=NULL;
|
|
if (!byte_element_4476){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4476=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4476=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 pass4478;
|
|
int32 pass4479;
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_W=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_W==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_W=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_W=0;
|
|
}
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_M=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_M==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_M=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_M=0;
|
|
}
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_S=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_S==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_S=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_S=0;
|
|
}
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_N=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_N==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_N=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_N=0;
|
|
}
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_V1=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_V1==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_V1=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_V1=0;
|
|
}
|
|
qbs *_SUB_IDEDRAWOBJ_STRING_A3=NULL;
|
|
if (!_SUB_IDEDRAWOBJ_STRING_A3)_SUB_IDEDRAWOBJ_STRING_A3=qbs_new(0,0);
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_I2=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_I2==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_I2=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_I2=0;
|
|
}
|
|
int64 fornext_value4481;
|
|
int64 fornext_finalvalue4481;
|
|
int64 fornext_step4481;
|
|
uint8 fornext_step_negative4481;
|
|
byte_element_struct *byte_element_4482=NULL;
|
|
if (!byte_element_4482){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4482=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4482=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
qbs *_SUB_IDEDRAWOBJ_STRING_A2=NULL;
|
|
if (!_SUB_IDEDRAWOBJ_STRING_A2)_SUB_IDEDRAWOBJ_STRING_A2=qbs_new(0,0);
|
|
byte_element_struct *byte_element_4483=NULL;
|
|
if (!byte_element_4483){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4483=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4483=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_TNUM=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_TNUM==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_TNUM=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_TNUM=0;
|
|
}
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_TSEL=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_TSEL==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_TSEL=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_TSEL=0;
|
|
}
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_Q=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_Q==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_Q=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_Q=0;
|
|
}
|
|
int32 pass4486;
|
|
int32 pass4487;
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_C=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_C==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_C=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_C=0;
|
|
}
|
|
int64 fornext_value4489;
|
|
int64 fornext_finalvalue4489;
|
|
int64 fornext_step4489;
|
|
uint8 fornext_step_negative4489;
|
|
byte_element_struct *byte_element_4490=NULL;
|
|
if (!byte_element_4490){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4490=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4490=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_WHITESPACE=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_WHITESPACE==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_WHITESPACE=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_WHITESPACE=0;
|
|
}
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_SPACING=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_SPACING==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_SPACING=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_SPACING=0;
|
|
}
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_F2=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_F2==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_F2=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_F2=0;
|
|
}
|
|
int32 *_SUB_IDEDRAWOBJ_LONG_N2=NULL;
|
|
if(_SUB_IDEDRAWOBJ_LONG_N2==NULL){
|
|
_SUB_IDEDRAWOBJ_LONG_N2=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEDRAWOBJ_LONG_N2=0;
|
|
}
|
|
int64 fornext_value4492;
|
|
int64 fornext_finalvalue4492;
|
|
int64 fornext_step4492;
|
|
uint8 fornext_step_negative4492;
|
|
byte_element_struct *byte_element_4493=NULL;
|
|
if (!byte_element_4493){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4493=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4493=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_4494=NULL;
|
|
if (!byte_element_4494){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4494=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4494=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|