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
129 lines
1.6 KiB
Text
129 lines
1.6 KiB
Text
if (next_return_point){
|
|
next_return_point--;
|
|
switch(return_point[next_return_point]){
|
|
case 0:
|
|
error(3);
|
|
break;
|
|
case 292:
|
|
goto RETURN_292;
|
|
break;
|
|
case 293:
|
|
goto RETURN_293;
|
|
break;
|
|
case 294:
|
|
goto RETURN_294;
|
|
break;
|
|
case 295:
|
|
goto RETURN_295;
|
|
break;
|
|
case 296:
|
|
goto RETURN_296;
|
|
break;
|
|
case 297:
|
|
goto RETURN_297;
|
|
break;
|
|
case 298:
|
|
goto RETURN_298;
|
|
break;
|
|
case 299:
|
|
goto RETURN_299;
|
|
break;
|
|
case 300:
|
|
goto RETURN_300;
|
|
break;
|
|
case 301:
|
|
goto RETURN_301;
|
|
break;
|
|
case 302:
|
|
goto RETURN_302;
|
|
break;
|
|
case 303:
|
|
goto RETURN_303;
|
|
break;
|
|
case 304:
|
|
goto RETURN_304;
|
|
break;
|
|
case 305:
|
|
goto RETURN_305;
|
|
break;
|
|
case 306:
|
|
goto RETURN_306;
|
|
break;
|
|
case 307:
|
|
goto RETURN_307;
|
|
break;
|
|
case 308:
|
|
goto RETURN_308;
|
|
break;
|
|
case 309:
|
|
goto RETURN_309;
|
|
break;
|
|
case 310:
|
|
goto RETURN_310;
|
|
break;
|
|
case 311:
|
|
goto RETURN_311;
|
|
break;
|
|
case 312:
|
|
goto RETURN_312;
|
|
break;
|
|
case 313:
|
|
goto RETURN_313;
|
|
break;
|
|
case 314:
|
|
goto RETURN_314;
|
|
break;
|
|
case 315:
|
|
goto RETURN_315;
|
|
break;
|
|
case 316:
|
|
goto RETURN_316;
|
|
break;
|
|
case 317:
|
|
goto RETURN_317;
|
|
break;
|
|
case 318:
|
|
goto RETURN_318;
|
|
break;
|
|
case 319:
|
|
goto RETURN_319;
|
|
break;
|
|
case 320:
|
|
goto RETURN_320;
|
|
break;
|
|
case 321:
|
|
goto RETURN_321;
|
|
break;
|
|
case 322:
|
|
goto RETURN_322;
|
|
break;
|
|
case 323:
|
|
goto RETURN_323;
|
|
break;
|
|
case 324:
|
|
goto RETURN_324;
|
|
break;
|
|
case 325:
|
|
goto RETURN_325;
|
|
break;
|
|
case 326:
|
|
goto RETURN_326;
|
|
break;
|
|
case 327:
|
|
goto RETURN_327;
|
|
break;
|
|
case 328:
|
|
goto RETURN_328;
|
|
break;
|
|
case 329:
|
|
goto RETURN_329;
|
|
break;
|
|
case 330:
|
|
goto RETURN_330;
|
|
break;
|
|
case 331:
|
|
goto RETURN_331;
|
|
break;
|
|
}
|
|
}
|
|
error(3);
|