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
179 lines
7.1 KiB
Text
179 lines
7.1 KiB
Text
int32 *_SUB_IDEASCIIBOX_LONG_W=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_W==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_W=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_W=0;
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_H=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_H==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_H=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_H=0;
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_FONT=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_FONT==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_FONT=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_FONT=0;
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_TEMP=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_TEMP==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_TEMP=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_TEMP=0;
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_TEMP1=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_TEMP1==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_TEMP1=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_TEMP1=0;
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_WS=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_WS==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_WS=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_WS=0;
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_Y=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_Y==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_Y=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_Y=0;
|
|
}
|
|
int64 fornext_value5474;
|
|
int64 fornext_finalvalue5474;
|
|
int64 fornext_step5474;
|
|
uint8 fornext_step_negative5474;
|
|
int32 *_SUB_IDEASCIIBOX_LONG_X=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_X==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_X=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_X=0;
|
|
}
|
|
int64 fornext_value5476;
|
|
int64 fornext_finalvalue5476;
|
|
int64 fornext_step5476;
|
|
uint8 fornext_step_negative5476;
|
|
int32 *_SUB_IDEASCIIBOX_LONG_COUNTER=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_COUNTER==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_COUNTER=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_COUNTER=0;
|
|
}
|
|
int64 fornext_value5478;
|
|
int64 fornext_finalvalue5478;
|
|
int64 fornext_step5478;
|
|
uint8 fornext_step_negative5478;
|
|
int64 fornext_value5480;
|
|
int64 fornext_finalvalue5480;
|
|
int64 fornext_step5480;
|
|
uint8 fornext_step_negative5480;
|
|
qbs *_SUB_IDEASCIIBOX_STRING_TEXT=NULL;
|
|
if (!_SUB_IDEASCIIBOX_STRING_TEXT)_SUB_IDEASCIIBOX_STRING_TEXT=qbs_new(0,0);
|
|
byte_element_struct *byte_element_5481=NULL;
|
|
if (!byte_element_5481){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_5481=(byte_element_struct*)(mem_static_pointer-12); else byte_element_5481=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_OLDMOUSEX=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_OLDMOUSEX==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_OLDMOUSEX=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_OLDMOUSEX=0;
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_OLDMOUSEY=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_OLDMOUSEY==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_OLDMOUSEY=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_OLDMOUSEY=0;
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_OLDX=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_OLDX==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_OLDX=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_OLDX=0;
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_OLDY=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_OLDY==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_OLDY=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_OLDY=0;
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_NUM=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_NUM==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_NUM=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_NUM=0;
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_FLASHCOUNTER=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_FLASHCOUNTER==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_FLASHCOUNTER=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_FLASHCOUNTER=0;
|
|
}
|
|
byte_element_struct *byte_element_5485=NULL;
|
|
if (!byte_element_5485){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_5485=(byte_element_struct*)(mem_static_pointer-12); else byte_element_5485=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_TOGGLE=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_TOGGLE==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_TOGGLE=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_TOGGLE=0;
|
|
}
|
|
byte_element_struct *byte_element_5486=NULL;
|
|
if (!byte_element_5486){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_5486=(byte_element_struct*)(mem_static_pointer-12); else byte_element_5486=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_K1=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_K1==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_K1=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_K1=0;
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_MOUSECLICK=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_MOUSECLICK==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_MOUSECLICK=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_MOUSECLICK=0;
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_MOUSEEXIT=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_MOUSEEXIT==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_MOUSEEXIT=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_MOUSEEXIT=0;
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_DONOTHING=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_DONOTHING==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_DONOTHING=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_DONOTHING=0;
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_ATALL=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_ATALL==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_ATALL=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_ATALL=0;
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_EX=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_EX==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_EX=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_EX=0;
|
|
}
|
|
int16 *_SUB_IDEASCIIBOX_INTEGER_RET=NULL;
|
|
if(_SUB_IDEASCIIBOX_INTEGER_RET==NULL){
|
|
_SUB_IDEASCIIBOX_INTEGER_RET=(int16*)mem_static_malloc(2);
|
|
*_SUB_IDEASCIIBOX_INTEGER_RET=0;
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_L=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_L==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_L=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_L=0;
|
|
}
|
|
qbs *_SUB_IDEASCIIBOX_STRING_A=NULL;
|
|
if (!_SUB_IDEASCIIBOX_STRING_A)_SUB_IDEASCIIBOX_STRING_A=qbs_new(0,0);
|
|
qbs *_SUB_IDEASCIIBOX_STRING_L=NULL;
|
|
if (!_SUB_IDEASCIIBOX_STRING_L)_SUB_IDEASCIIBOX_STRING_L=qbs_new(0,0);
|
|
qbs *_SUB_IDEASCIIBOX_STRING_R=NULL;
|
|
if (!_SUB_IDEASCIIBOX_STRING_R)_SUB_IDEASCIIBOX_STRING_R=qbs_new(0,0);
|
|
byte_element_struct *byte_element_5488=NULL;
|
|
if (!byte_element_5488){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_5488=(byte_element_struct*)(mem_static_pointer-12); else byte_element_5488=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_SUB_IDEASCIIBOX_LONG_TEXTLEN=NULL;
|
|
if(_SUB_IDEASCIIBOX_LONG_TEXTLEN==NULL){
|
|
_SUB_IDEASCIIBOX_LONG_TEXTLEN=(int32*)mem_static_malloc(4);
|
|
*_SUB_IDEASCIIBOX_LONG_TEXTLEN=0;
|
|
}
|
|
byte_element_struct *byte_element_5489=NULL;
|
|
if (!byte_element_5489){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_5489=(byte_element_struct*)(mem_static_pointer-12); else byte_element_5489=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
qbs *_SUB_IDEASCIIBOX_STRING_M=NULL;
|
|
if (!_SUB_IDEASCIIBOX_STRING_M)_SUB_IDEASCIIBOX_STRING_M=qbs_new(0,0);
|
|
byte_element_struct *byte_element_5490=NULL;
|
|
if (!byte_element_5490){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_5490=(byte_element_struct*)(mem_static_pointer-12); else byte_element_5490=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_5491=NULL;
|
|
if (!byte_element_5491){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_5491=(byte_element_struct*)(mem_static_pointer-12); else byte_element_5491=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|