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
882 lines
10 KiB
Text
882 lines
10 KiB
Text
if (next_return_point){
|
|
next_return_point--;
|
|
switch(return_point[next_return_point]){
|
|
case 0:
|
|
return;
|
|
break;
|
|
case 1:
|
|
goto RETURN_1;
|
|
break;
|
|
case 2:
|
|
goto RETURN_2;
|
|
break;
|
|
case 3:
|
|
goto RETURN_3;
|
|
break;
|
|
case 4:
|
|
goto RETURN_4;
|
|
break;
|
|
case 5:
|
|
goto RETURN_5;
|
|
break;
|
|
case 6:
|
|
goto RETURN_6;
|
|
break;
|
|
case 7:
|
|
goto RETURN_7;
|
|
break;
|
|
case 8:
|
|
goto RETURN_8;
|
|
break;
|
|
case 9:
|
|
goto RETURN_9;
|
|
break;
|
|
case 10:
|
|
goto RETURN_10;
|
|
break;
|
|
case 11:
|
|
goto RETURN_11;
|
|
break;
|
|
case 12:
|
|
goto RETURN_12;
|
|
break;
|
|
case 13:
|
|
goto RETURN_13;
|
|
break;
|
|
case 14:
|
|
goto RETURN_14;
|
|
break;
|
|
case 15:
|
|
goto RETURN_15;
|
|
break;
|
|
case 16:
|
|
goto RETURN_16;
|
|
break;
|
|
case 17:
|
|
goto RETURN_17;
|
|
break;
|
|
case 18:
|
|
goto RETURN_18;
|
|
break;
|
|
case 19:
|
|
goto RETURN_19;
|
|
break;
|
|
case 20:
|
|
goto RETURN_20;
|
|
break;
|
|
case 21:
|
|
goto RETURN_21;
|
|
break;
|
|
case 22:
|
|
goto RETURN_22;
|
|
break;
|
|
case 23:
|
|
goto RETURN_23;
|
|
break;
|
|
case 24:
|
|
goto RETURN_24;
|
|
break;
|
|
case 25:
|
|
goto RETURN_25;
|
|
break;
|
|
case 26:
|
|
goto RETURN_26;
|
|
break;
|
|
case 27:
|
|
goto RETURN_27;
|
|
break;
|
|
case 28:
|
|
goto RETURN_28;
|
|
break;
|
|
case 29:
|
|
goto RETURN_29;
|
|
break;
|
|
case 30:
|
|
goto RETURN_30;
|
|
break;
|
|
case 31:
|
|
goto RETURN_31;
|
|
break;
|
|
case 32:
|
|
goto RETURN_32;
|
|
break;
|
|
case 33:
|
|
goto RETURN_33;
|
|
break;
|
|
case 34:
|
|
goto RETURN_34;
|
|
break;
|
|
case 35:
|
|
goto RETURN_35;
|
|
break;
|
|
case 36:
|
|
goto RETURN_36;
|
|
break;
|
|
case 37:
|
|
goto RETURN_37;
|
|
break;
|
|
case 38:
|
|
goto RETURN_38;
|
|
break;
|
|
case 39:
|
|
goto RETURN_39;
|
|
break;
|
|
case 40:
|
|
goto RETURN_40;
|
|
break;
|
|
case 41:
|
|
goto RETURN_41;
|
|
break;
|
|
case 42:
|
|
goto RETURN_42;
|
|
break;
|
|
case 43:
|
|
goto RETURN_43;
|
|
break;
|
|
case 44:
|
|
goto RETURN_44;
|
|
break;
|
|
case 45:
|
|
goto RETURN_45;
|
|
break;
|
|
case 46:
|
|
goto RETURN_46;
|
|
break;
|
|
case 47:
|
|
goto RETURN_47;
|
|
break;
|
|
case 48:
|
|
goto RETURN_48;
|
|
break;
|
|
case 49:
|
|
goto RETURN_49;
|
|
break;
|
|
case 50:
|
|
goto RETURN_50;
|
|
break;
|
|
case 51:
|
|
goto RETURN_51;
|
|
break;
|
|
case 52:
|
|
goto RETURN_52;
|
|
break;
|
|
case 53:
|
|
goto RETURN_53;
|
|
break;
|
|
case 54:
|
|
goto RETURN_54;
|
|
break;
|
|
case 55:
|
|
goto RETURN_55;
|
|
break;
|
|
case 56:
|
|
goto RETURN_56;
|
|
break;
|
|
case 57:
|
|
goto RETURN_57;
|
|
break;
|
|
case 58:
|
|
goto RETURN_58;
|
|
break;
|
|
case 59:
|
|
goto RETURN_59;
|
|
break;
|
|
case 60:
|
|
goto RETURN_60;
|
|
break;
|
|
case 61:
|
|
goto RETURN_61;
|
|
break;
|
|
case 62:
|
|
goto RETURN_62;
|
|
break;
|
|
case 63:
|
|
goto RETURN_63;
|
|
break;
|
|
case 64:
|
|
goto RETURN_64;
|
|
break;
|
|
case 65:
|
|
goto RETURN_65;
|
|
break;
|
|
case 66:
|
|
goto RETURN_66;
|
|
break;
|
|
case 67:
|
|
goto RETURN_67;
|
|
break;
|
|
case 68:
|
|
goto RETURN_68;
|
|
break;
|
|
case 69:
|
|
goto RETURN_69;
|
|
break;
|
|
case 70:
|
|
goto RETURN_70;
|
|
break;
|
|
case 71:
|
|
goto RETURN_71;
|
|
break;
|
|
case 72:
|
|
goto RETURN_72;
|
|
break;
|
|
case 73:
|
|
goto RETURN_73;
|
|
break;
|
|
case 74:
|
|
goto RETURN_74;
|
|
break;
|
|
case 75:
|
|
goto RETURN_75;
|
|
break;
|
|
case 76:
|
|
goto RETURN_76;
|
|
break;
|
|
case 77:
|
|
goto RETURN_77;
|
|
break;
|
|
case 78:
|
|
goto RETURN_78;
|
|
break;
|
|
case 79:
|
|
goto RETURN_79;
|
|
break;
|
|
case 80:
|
|
goto RETURN_80;
|
|
break;
|
|
case 81:
|
|
goto RETURN_81;
|
|
break;
|
|
case 82:
|
|
goto RETURN_82;
|
|
break;
|
|
case 83:
|
|
goto RETURN_83;
|
|
break;
|
|
case 84:
|
|
goto RETURN_84;
|
|
break;
|
|
case 85:
|
|
goto RETURN_85;
|
|
break;
|
|
case 86:
|
|
goto RETURN_86;
|
|
break;
|
|
case 87:
|
|
goto RETURN_87;
|
|
break;
|
|
case 88:
|
|
goto RETURN_88;
|
|
break;
|
|
case 89:
|
|
goto RETURN_89;
|
|
break;
|
|
case 90:
|
|
goto RETURN_90;
|
|
break;
|
|
case 91:
|
|
goto RETURN_91;
|
|
break;
|
|
case 92:
|
|
goto RETURN_92;
|
|
break;
|
|
case 93:
|
|
goto RETURN_93;
|
|
break;
|
|
case 94:
|
|
goto RETURN_94;
|
|
break;
|
|
case 95:
|
|
goto RETURN_95;
|
|
break;
|
|
case 96:
|
|
goto RETURN_96;
|
|
break;
|
|
case 97:
|
|
goto RETURN_97;
|
|
break;
|
|
case 98:
|
|
goto RETURN_98;
|
|
break;
|
|
case 99:
|
|
goto RETURN_99;
|
|
break;
|
|
case 100:
|
|
goto RETURN_100;
|
|
break;
|
|
case 101:
|
|
goto RETURN_101;
|
|
break;
|
|
case 102:
|
|
goto RETURN_102;
|
|
break;
|
|
case 103:
|
|
goto RETURN_103;
|
|
break;
|
|
case 104:
|
|
goto RETURN_104;
|
|
break;
|
|
case 105:
|
|
goto RETURN_105;
|
|
break;
|
|
case 106:
|
|
goto RETURN_106;
|
|
break;
|
|
case 107:
|
|
goto RETURN_107;
|
|
break;
|
|
case 108:
|
|
goto RETURN_108;
|
|
break;
|
|
case 109:
|
|
goto RETURN_109;
|
|
break;
|
|
case 110:
|
|
goto RETURN_110;
|
|
break;
|
|
case 111:
|
|
goto RETURN_111;
|
|
break;
|
|
case 112:
|
|
goto RETURN_112;
|
|
break;
|
|
case 113:
|
|
goto RETURN_113;
|
|
break;
|
|
case 114:
|
|
goto RETURN_114;
|
|
break;
|
|
case 115:
|
|
goto RETURN_115;
|
|
break;
|
|
case 116:
|
|
goto RETURN_116;
|
|
break;
|
|
case 117:
|
|
goto RETURN_117;
|
|
break;
|
|
case 118:
|
|
goto RETURN_118;
|
|
break;
|
|
case 119:
|
|
goto RETURN_119;
|
|
break;
|
|
case 120:
|
|
goto RETURN_120;
|
|
break;
|
|
case 121:
|
|
goto RETURN_121;
|
|
break;
|
|
case 122:
|
|
goto RETURN_122;
|
|
break;
|
|
case 123:
|
|
goto RETURN_123;
|
|
break;
|
|
case 124:
|
|
goto RETURN_124;
|
|
break;
|
|
case 125:
|
|
goto RETURN_125;
|
|
break;
|
|
case 126:
|
|
goto RETURN_126;
|
|
break;
|
|
case 127:
|
|
goto RETURN_127;
|
|
break;
|
|
case 128:
|
|
goto RETURN_128;
|
|
break;
|
|
case 129:
|
|
goto RETURN_129;
|
|
break;
|
|
case 130:
|
|
goto RETURN_130;
|
|
break;
|
|
case 131:
|
|
goto RETURN_131;
|
|
break;
|
|
case 132:
|
|
goto RETURN_132;
|
|
break;
|
|
case 133:
|
|
goto RETURN_133;
|
|
break;
|
|
case 134:
|
|
goto RETURN_134;
|
|
break;
|
|
case 135:
|
|
goto RETURN_135;
|
|
break;
|
|
case 136:
|
|
goto RETURN_136;
|
|
break;
|
|
case 137:
|
|
goto RETURN_137;
|
|
break;
|
|
case 138:
|
|
goto RETURN_138;
|
|
break;
|
|
case 139:
|
|
goto RETURN_139;
|
|
break;
|
|
case 140:
|
|
goto RETURN_140;
|
|
break;
|
|
case 141:
|
|
goto RETURN_141;
|
|
break;
|
|
case 142:
|
|
goto RETURN_142;
|
|
break;
|
|
case 143:
|
|
goto RETURN_143;
|
|
break;
|
|
case 144:
|
|
goto RETURN_144;
|
|
break;
|
|
case 145:
|
|
goto RETURN_145;
|
|
break;
|
|
case 146:
|
|
goto RETURN_146;
|
|
break;
|
|
case 147:
|
|
goto RETURN_147;
|
|
break;
|
|
case 148:
|
|
goto RETURN_148;
|
|
break;
|
|
case 149:
|
|
goto RETURN_149;
|
|
break;
|
|
case 150:
|
|
goto RETURN_150;
|
|
break;
|
|
case 151:
|
|
goto RETURN_151;
|
|
break;
|
|
case 152:
|
|
goto RETURN_152;
|
|
break;
|
|
case 153:
|
|
goto RETURN_153;
|
|
break;
|
|
case 154:
|
|
goto RETURN_154;
|
|
break;
|
|
case 155:
|
|
goto RETURN_155;
|
|
break;
|
|
case 156:
|
|
goto RETURN_156;
|
|
break;
|
|
case 157:
|
|
goto RETURN_157;
|
|
break;
|
|
case 158:
|
|
goto RETURN_158;
|
|
break;
|
|
case 159:
|
|
goto RETURN_159;
|
|
break;
|
|
case 160:
|
|
goto RETURN_160;
|
|
break;
|
|
case 161:
|
|
goto RETURN_161;
|
|
break;
|
|
case 162:
|
|
goto RETURN_162;
|
|
break;
|
|
case 163:
|
|
goto RETURN_163;
|
|
break;
|
|
case 164:
|
|
goto RETURN_164;
|
|
break;
|
|
case 165:
|
|
goto RETURN_165;
|
|
break;
|
|
case 166:
|
|
goto RETURN_166;
|
|
break;
|
|
case 167:
|
|
goto RETURN_167;
|
|
break;
|
|
case 168:
|
|
goto RETURN_168;
|
|
break;
|
|
case 169:
|
|
goto RETURN_169;
|
|
break;
|
|
case 170:
|
|
goto RETURN_170;
|
|
break;
|
|
case 171:
|
|
goto RETURN_171;
|
|
break;
|
|
case 172:
|
|
goto RETURN_172;
|
|
break;
|
|
case 173:
|
|
goto RETURN_173;
|
|
break;
|
|
case 174:
|
|
goto RETURN_174;
|
|
break;
|
|
case 175:
|
|
goto RETURN_175;
|
|
break;
|
|
case 176:
|
|
goto RETURN_176;
|
|
break;
|
|
case 177:
|
|
goto RETURN_177;
|
|
break;
|
|
case 178:
|
|
goto RETURN_178;
|
|
break;
|
|
case 179:
|
|
goto RETURN_179;
|
|
break;
|
|
case 180:
|
|
goto RETURN_180;
|
|
break;
|
|
case 181:
|
|
goto RETURN_181;
|
|
break;
|
|
case 182:
|
|
goto RETURN_182;
|
|
break;
|
|
case 183:
|
|
goto RETURN_183;
|
|
break;
|
|
case 184:
|
|
goto RETURN_184;
|
|
break;
|
|
case 185:
|
|
goto RETURN_185;
|
|
break;
|
|
case 186:
|
|
goto RETURN_186;
|
|
break;
|
|
case 187:
|
|
goto RETURN_187;
|
|
break;
|
|
case 188:
|
|
goto RETURN_188;
|
|
break;
|
|
case 189:
|
|
goto RETURN_189;
|
|
break;
|
|
case 190:
|
|
goto RETURN_190;
|
|
break;
|
|
case 191:
|
|
goto RETURN_191;
|
|
break;
|
|
case 192:
|
|
goto RETURN_192;
|
|
break;
|
|
case 193:
|
|
goto RETURN_193;
|
|
break;
|
|
case 194:
|
|
goto RETURN_194;
|
|
break;
|
|
case 195:
|
|
goto RETURN_195;
|
|
break;
|
|
case 196:
|
|
goto RETURN_196;
|
|
break;
|
|
case 197:
|
|
goto RETURN_197;
|
|
break;
|
|
case 198:
|
|
goto RETURN_198;
|
|
break;
|
|
case 199:
|
|
goto RETURN_199;
|
|
break;
|
|
case 200:
|
|
goto RETURN_200;
|
|
break;
|
|
case 201:
|
|
goto RETURN_201;
|
|
break;
|
|
case 202:
|
|
goto RETURN_202;
|
|
break;
|
|
case 203:
|
|
goto RETURN_203;
|
|
break;
|
|
case 204:
|
|
goto RETURN_204;
|
|
break;
|
|
case 205:
|
|
goto RETURN_205;
|
|
break;
|
|
case 206:
|
|
goto RETURN_206;
|
|
break;
|
|
case 207:
|
|
goto RETURN_207;
|
|
break;
|
|
case 208:
|
|
goto RETURN_208;
|
|
break;
|
|
case 209:
|
|
goto RETURN_209;
|
|
break;
|
|
case 210:
|
|
goto RETURN_210;
|
|
break;
|
|
case 211:
|
|
goto RETURN_211;
|
|
break;
|
|
case 212:
|
|
goto RETURN_212;
|
|
break;
|
|
case 213:
|
|
goto RETURN_213;
|
|
break;
|
|
case 214:
|
|
goto RETURN_214;
|
|
break;
|
|
case 215:
|
|
goto RETURN_215;
|
|
break;
|
|
case 216:
|
|
goto RETURN_216;
|
|
break;
|
|
case 217:
|
|
goto RETURN_217;
|
|
break;
|
|
case 218:
|
|
goto RETURN_218;
|
|
break;
|
|
case 219:
|
|
goto RETURN_219;
|
|
break;
|
|
case 220:
|
|
goto RETURN_220;
|
|
break;
|
|
case 221:
|
|
goto RETURN_221;
|
|
break;
|
|
case 222:
|
|
goto RETURN_222;
|
|
break;
|
|
case 223:
|
|
goto RETURN_223;
|
|
break;
|
|
case 224:
|
|
goto RETURN_224;
|
|
break;
|
|
case 225:
|
|
goto RETURN_225;
|
|
break;
|
|
case 226:
|
|
goto RETURN_226;
|
|
break;
|
|
case 227:
|
|
goto RETURN_227;
|
|
break;
|
|
case 228:
|
|
goto RETURN_228;
|
|
break;
|
|
case 229:
|
|
goto RETURN_229;
|
|
break;
|
|
case 230:
|
|
goto RETURN_230;
|
|
break;
|
|
case 231:
|
|
goto RETURN_231;
|
|
break;
|
|
case 232:
|
|
goto RETURN_232;
|
|
break;
|
|
case 233:
|
|
goto RETURN_233;
|
|
break;
|
|
case 234:
|
|
goto RETURN_234;
|
|
break;
|
|
case 235:
|
|
goto RETURN_235;
|
|
break;
|
|
case 236:
|
|
goto RETURN_236;
|
|
break;
|
|
case 237:
|
|
goto RETURN_237;
|
|
break;
|
|
case 238:
|
|
goto RETURN_238;
|
|
break;
|
|
case 239:
|
|
goto RETURN_239;
|
|
break;
|
|
case 240:
|
|
goto RETURN_240;
|
|
break;
|
|
case 241:
|
|
goto RETURN_241;
|
|
break;
|
|
case 242:
|
|
goto RETURN_242;
|
|
break;
|
|
case 243:
|
|
goto RETURN_243;
|
|
break;
|
|
case 244:
|
|
goto RETURN_244;
|
|
break;
|
|
case 245:
|
|
goto RETURN_245;
|
|
break;
|
|
case 246:
|
|
goto RETURN_246;
|
|
break;
|
|
case 247:
|
|
goto RETURN_247;
|
|
break;
|
|
case 248:
|
|
goto RETURN_248;
|
|
break;
|
|
case 249:
|
|
goto RETURN_249;
|
|
break;
|
|
case 250:
|
|
goto RETURN_250;
|
|
break;
|
|
case 251:
|
|
goto RETURN_251;
|
|
break;
|
|
case 252:
|
|
goto RETURN_252;
|
|
break;
|
|
case 253:
|
|
goto RETURN_253;
|
|
break;
|
|
case 254:
|
|
goto RETURN_254;
|
|
break;
|
|
case 255:
|
|
goto RETURN_255;
|
|
break;
|
|
case 256:
|
|
goto RETURN_256;
|
|
break;
|
|
case 257:
|
|
goto RETURN_257;
|
|
break;
|
|
case 258:
|
|
goto RETURN_258;
|
|
break;
|
|
case 259:
|
|
goto RETURN_259;
|
|
break;
|
|
case 260:
|
|
goto RETURN_260;
|
|
break;
|
|
case 261:
|
|
goto RETURN_261;
|
|
break;
|
|
case 262:
|
|
goto RETURN_262;
|
|
break;
|
|
case 263:
|
|
goto RETURN_263;
|
|
break;
|
|
case 264:
|
|
goto RETURN_264;
|
|
break;
|
|
case 265:
|
|
goto RETURN_265;
|
|
break;
|
|
case 266:
|
|
goto RETURN_266;
|
|
break;
|
|
case 267:
|
|
goto RETURN_267;
|
|
break;
|
|
case 268:
|
|
goto RETURN_268;
|
|
break;
|
|
case 269:
|
|
goto RETURN_269;
|
|
break;
|
|
case 270:
|
|
goto RETURN_270;
|
|
break;
|
|
case 271:
|
|
goto RETURN_271;
|
|
break;
|
|
case 272:
|
|
goto RETURN_272;
|
|
break;
|
|
case 273:
|
|
goto RETURN_273;
|
|
break;
|
|
case 274:
|
|
goto RETURN_274;
|
|
break;
|
|
case 275:
|
|
goto RETURN_275;
|
|
break;
|
|
case 276:
|
|
goto RETURN_276;
|
|
break;
|
|
case 277:
|
|
goto RETURN_277;
|
|
break;
|
|
case 278:
|
|
goto RETURN_278;
|
|
break;
|
|
case 279:
|
|
goto RETURN_279;
|
|
break;
|
|
case 280:
|
|
goto RETURN_280;
|
|
break;
|
|
case 281:
|
|
goto RETURN_281;
|
|
break;
|
|
case 282:
|
|
goto RETURN_282;
|
|
break;
|
|
case 283:
|
|
goto RETURN_283;
|
|
break;
|
|
case 284:
|
|
goto RETURN_284;
|
|
break;
|
|
case 285:
|
|
goto RETURN_285;
|
|
break;
|
|
case 286:
|
|
goto RETURN_286;
|
|
break;
|
|
case 287:
|
|
goto RETURN_287;
|
|
break;
|
|
case 288:
|
|
goto RETURN_288;
|
|
break;
|
|
case 289:
|
|
goto RETURN_289;
|
|
break;
|
|
case 290:
|
|
goto RETURN_290;
|
|
break;
|
|
case 291:
|
|
goto RETURN_291;
|
|
break;
|
|
}
|
|
}
|
|
error(3);
|