mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-01 21:00:16 +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
126 lines
7.2 KiB
Text
126 lines
7.2 KiB
Text
qbs *_FUNC_TYPE2SYMBOL_STRING_TYPE2SYMBOL=NULL;
|
|
if (!_FUNC_TYPE2SYMBOL_STRING_TYPE2SYMBOL)_FUNC_TYPE2SYMBOL_STRING_TYPE2SYMBOL=qbs_new(0,0);
|
|
qbs*oldstr3009=NULL;
|
|
if(_FUNC_TYPE2SYMBOL_STRING_TYP->tmp||_FUNC_TYPE2SYMBOL_STRING_TYP->fixed||_FUNC_TYPE2SYMBOL_STRING_TYP->readonly){
|
|
oldstr3009=_FUNC_TYPE2SYMBOL_STRING_TYP;
|
|
if (oldstr3009->cmem_descriptor){
|
|
_FUNC_TYPE2SYMBOL_STRING_TYP=qbs_new_cmem(oldstr3009->len,0);
|
|
}else{
|
|
_FUNC_TYPE2SYMBOL_STRING_TYP=qbs_new(oldstr3009->len,0);
|
|
}
|
|
memcpy(_FUNC_TYPE2SYMBOL_STRING_TYP->chr,oldstr3009->chr,oldstr3009->len);
|
|
}
|
|
qbs *_FUNC_TYPE2SYMBOL_STRING_T=NULL;
|
|
if (!_FUNC_TYPE2SYMBOL_STRING_T)_FUNC_TYPE2SYMBOL_STRING_T=qbs_new(0,0);
|
|
int32 *_FUNC_TYPE2SYMBOL_LONG_I=NULL;
|
|
if(_FUNC_TYPE2SYMBOL_LONG_I==NULL){
|
|
_FUNC_TYPE2SYMBOL_LONG_I=(int32*)mem_static_malloc(4);
|
|
*_FUNC_TYPE2SYMBOL_LONG_I=0;
|
|
}
|
|
int64 fornext_value3011;
|
|
int64 fornext_finalvalue3011;
|
|
int64 fornext_step3011;
|
|
uint8 fornext_step_negative3011;
|
|
byte_element_struct *byte_element_3012=NULL;
|
|
if (!byte_element_3012){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3012=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3012=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
qbs *_FUNC_TYPE2SYMBOL_STRING_E=NULL;
|
|
if (!_FUNC_TYPE2SYMBOL_STRING_E)_FUNC_TYPE2SYMBOL_STRING_E=qbs_new(0,0);
|
|
qbs *_FUNC_TYPE2SYMBOL_STRING_T2=NULL;
|
|
if (!_FUNC_TYPE2SYMBOL_STRING_T2)_FUNC_TYPE2SYMBOL_STRING_T2=qbs_new(0,0);
|
|
qbs *_FUNC_TYPE2SYMBOL_STRING_S=NULL;
|
|
if (!_FUNC_TYPE2SYMBOL_STRING_S)_FUNC_TYPE2SYMBOL_STRING_S=qbs_new(0,0);
|
|
byte_element_struct *byte_element_3013=NULL;
|
|
if (!byte_element_3013){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3013=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3013=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3014=NULL;
|
|
if (!byte_element_3014){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3014=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3014=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3015=NULL;
|
|
if (!byte_element_3015){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3015=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3015=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3016=NULL;
|
|
if (!byte_element_3016){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3016=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3016=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3017=NULL;
|
|
if (!byte_element_3017){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3017=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3017=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3018=NULL;
|
|
if (!byte_element_3018){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3018=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3018=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3019=NULL;
|
|
if (!byte_element_3019){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3019=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3019=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3020=NULL;
|
|
if (!byte_element_3020){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3020=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3020=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3021=NULL;
|
|
if (!byte_element_3021){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3021=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3021=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3022=NULL;
|
|
if (!byte_element_3022){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3022=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3022=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3023=NULL;
|
|
if (!byte_element_3023){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3023=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3023=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3024=NULL;
|
|
if (!byte_element_3024){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3024=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3024=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3025=NULL;
|
|
if (!byte_element_3025){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3025=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3025=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3026=NULL;
|
|
if (!byte_element_3026){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3026=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3026=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3027=NULL;
|
|
if (!byte_element_3027){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3027=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3027=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3028=NULL;
|
|
if (!byte_element_3028){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3028=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3028=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3029=NULL;
|
|
if (!byte_element_3029){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3029=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3029=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3030=NULL;
|
|
if (!byte_element_3030){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3030=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3030=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3031=NULL;
|
|
if (!byte_element_3031){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3031=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3031=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3032=NULL;
|
|
if (!byte_element_3032){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3032=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3032=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3033=NULL;
|
|
if (!byte_element_3033){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3033=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3033=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_FUNC_TYPE2SYMBOL_LONG_V=NULL;
|
|
if(_FUNC_TYPE2SYMBOL_LONG_V==NULL){
|
|
_FUNC_TYPE2SYMBOL_LONG_V=(int32*)mem_static_malloc(4);
|
|
*_FUNC_TYPE2SYMBOL_LONG_V=0;
|
|
}
|
|
byte_element_struct *byte_element_3034=NULL;
|
|
if (!byte_element_3034){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3034=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3034=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|