csp 419 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; csp 420 src/dps8/dps8_console.c if (csp->attn_pressed) csp 422 src/dps8/dps8_console.c csp->attn_pressed = false; csp 436 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; csp 437 src/dps8/dps8_console.c csp->model = m6001; csp 438 src/dps8/dps8_console.c csp->auto_input = NULL; csp 439 src/dps8/dps8_console.c csp->autop = NULL; csp 440 src/dps8/dps8_console.c csp->attn_pressed = false; csp 441 src/dps8/dps8_console.c csp->simh_attn_pressed = false; csp 442 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 443 src/dps8/dps8_console.c strcpy (csp->console_access.pw, "MulticsRulez"); csp 445 src/dps8/dps8_console.c csp->autoaccept = 0; csp 446 src/dps8/dps8_console.c csp->noempty = 0; csp 447 src/dps8/dps8_console.c csp->attn_flush = 1; csp 448 src/dps8/dps8_console.c csp->carrierPosition = 1; csp 449 src/dps8/dps8_console.c csp->escapeSequence = 1; csp 450 src/dps8/dps8_console.c (void)memset (csp->tabStops, 0, sizeof (csp->tabStops)); csp 458 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; csp 459 src/dps8/dps8_console.c if (csp->auto_input) { csp 460 src/dps8/dps8_console.c FREE (csp->auto_input); csp 461 src/dps8/dps8_console.c csp->auto_input = NULL; csp 463 src/dps8/dps8_console.c if (csp->console_access.telnetp) { csp 464 src/dps8/dps8_console.c sim_warn ("console_exit freeing console %u telnetp %p\r\n", i, csp->console_access.telnetp); csp 465 src/dps8/dps8_console.c telnet_free (csp->console_access.telnetp); csp 466 src/dps8/dps8_console.c csp->console_access.telnetp = NULL; csp 475 src/dps8/dps8_console.c opc_state_t * csp = console_state + devUnitIdx; csp 480 src/dps8/dps8_console.c if (csp-> auto_input) csp 483 src/dps8/dps8_console.c size_t ol = strlen ((char *) csp->auto_input); csp 485 src/dps8/dps8_console.c unsigned char * old = realloc (csp->auto_input, nl + ol + 1); csp 499 src/dps8/dps8_console.c csp->auto_input = old; csp 503 src/dps8/dps8_console.c csp->auto_input = new; csp 507 src/dps8/dps8_console.c if (csp->auto_input) csp 508 src/dps8/dps8_console.c FREE (csp->auto_input); csp 509 src/dps8/dps8_console.c csp->auto_input = NULL; csp 511 src/dps8/dps8_console.c csp->autop = csp->auto_input; csp 517 src/dps8/dps8_console.c opc_state_t * csp = console_state + flag; csp 518 src/dps8/dps8_console.c if (csp->auto_input) csp 519 src/dps8/dps8_console.c FREE (csp->auto_input); csp 520 src/dps8/dps8_console.c csp->auto_input = NULL; csp 521 src/dps8/dps8_console.c csp->autop = csp->auto_input; csp 527 src/dps8/dps8_console.c opc_state_t * csp = console_state + flag; csp 529 src/dps8/dps8_console.c if (csp->auto_input) csp 532 src/dps8/dps8_console.c size_t ol = strlen ((char *) csp->auto_input); csp 534 src/dps8/dps8_console.c unsigned char * old = realloc (csp->auto_input, nl + ol + 1); csp 548 src/dps8/dps8_console.c csp->auto_input = old; csp 552 src/dps8/dps8_console.c csp->auto_input = new; csp 553 src/dps8/dps8_console.c csp->autop = csp->auto_input; csp 561 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 562 src/dps8/dps8_console.c if (csp->auto_input) csp 563 src/dps8/dps8_console.c sim_print ("autoinput: '%s'", csp->auto_input); csp 709 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 710 src/dps8/dps8_console.c uint tally = csp->tally; csp 717 src/dps8/dps8_console.c if (csp->io_mode != opc_read_mode) csp 720 src/dps8/dps8_console.c __func__, csp->io_mode); csp 724 src/dps8/dps8_console.c uint n_chars = (uint) (csp->tailp - csp->readp); csp 726 src/dps8/dps8_console.c if (csp->bcd) csp 739 src/dps8/dps8_console.c if ((!csp->bcd) && csp->noempty && n_chars == 0 && tally) csp 749 src/dps8/dps8_console.c while (tally && csp->readp < csp->tailp) csp 751 src/dps8/dps8_console.c if (csp->bcd) csp 759 src/dps8/dps8_console.c if (csp->readp >= csp->tailp) csp 775 src/dps8/dps8_console.c c = (unsigned char) (* csp->readp ++); csp 794 src/dps8/dps8_console.c if (csp->readp >= csp->tailp) csp 796 src/dps8/dps8_console.c unsigned char c = (unsigned char) (* csp->readp ++); csp 804 src/dps8/dps8_console.c if (csp->readp < csp->tailp) csp 807 src/dps8/dps8_console.c (int) (csp->tailp - csp->readp)); csp 816 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 817 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 818 src/dps8/dps8_console.c csp->io_mode = opc_no_mode; csp 829 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 838 src/dps8/dps8_console.c c = accessGetChar (& csp->console_access); csp 888 src/dps8/dps8_console.c if (csp->io_mode != opc_read_mode) csp 892 src/dps8/dps8_console.c if (csp->attn_flush) csp 894 src/dps8/dps8_console.c csp->attn_pressed = true; csp 907 src/dps8/dps8_console.c csp 924 src/dps8/dps8_console.c if (! csp->simh_attn_pressed) csp 927 src/dps8/dps8_console.c csp->simh_attn_pressed = true; csp 928 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 945 src/dps8/dps8_console.c if (csp->io_mode != opc_read_mode) { csp 946 src/dps8/dps8_console.c if (csp->attn_flush) csp 948 src/dps8/dps8_console.c csp->attn_pressed = true; csp 993 src/dps8/dps8_console.c if (csp->simh_attn_pressed) csp 998 src/dps8/dps8_console.c if (csp->simh_buffer_cnt > 0) csp 1000 src/dps8/dps8_console.c -- csp->simh_buffer_cnt; csp 1001 src/dps8/dps8_console.c csp->simh_buffer[csp->simh_buffer_cnt] = 0; csp 1012 src/dps8/dps8_console.c for (int i = 0; i < csp->simh_buffer_cnt; i ++) csp 1013 src/dps8/dps8_console.c console_putchar (conUnitIdx, (char) (csp->simh_buffer[i])); csp 1022 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 1031 src/dps8/dps8_console.c csp->simh_buffer[csp->simh_buffer_cnt] = 0; csp 1033 src/dps8/dps8_console.c char * cptr = csp->simh_buffer; csp 1055 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 1056 src/dps8/dps8_console.c csp->simh_buffer[0] = 0; csp 1057 src/dps8/dps8_console.c csp->simh_attn_pressed = false; csp 1067 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 1068 src/dps8/dps8_console.c csp->simh_buffer[0] = 0; csp 1069 src/dps8/dps8_console.c csp->simh_attn_pressed = false; csp 1078 src/dps8/dps8_console.c if (csp->simh_buffer_cnt + 1 >= simh_buffer_sz) csp 1080 src/dps8/dps8_console.c csp->simh_buffer[csp->simh_buffer_cnt ++] = (char) ch; csp 1103 src/dps8/dps8_console.c if (csp->io_mode == opc_read_mode && csp 1104 src/dps8/dps8_console.c csp->autop != NULL) csp 1109 src/dps8/dps8_console.c if (csp->tailp >= csp->keyboardLineBuffer + sizeof (csp->keyboardLineBuffer)) csp 1115 src/dps8/dps8_console.c unsigned char c = * (csp->autop); csp 1118 src/dps8/dps8_console.c FREE (csp->auto_input); csp 1119 src/dps8/dps8_console.c csp->auto_input = NULL; csp 1120 src/dps8/dps8_console.c csp->autop = NULL; csp 1122 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 1123 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1137 src/dps8/dps8_console.c FREE (csp->auto_input); csp 1138 src/dps8/dps8_console.c csp->auto_input = NULL; csp 1139 src/dps8/dps8_console.c csp->autop = NULL; csp 1147 src/dps8/dps8_console.c csp->autop ++; csp 1152 src/dps8/dps8_console.c if (csp->echo) csp 1159 src/dps8/dps8_console.c * csp->tailp ++ = c; csp 1160 src/dps8/dps8_console.c if (csp->echo) csp 1169 src/dps8/dps8_console.c if (csp->io_mode == opc_read_mode && csp 1170 src/dps8/dps8_console.c csp->tailp == csp->keyboardLineBuffer) csp 1172 src/dps8/dps8_console.c if (csp->startTime + 30 <= time (NULL)) csp 1175 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 1176 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1202 src/dps8/dps8_console.c if (csp->io_mode != opc_read_mode) csp 1207 src/dps8/dps8_console.c csp->attn_pressed = true; csp 1215 src/dps8/dps8_console.c if (csp->tailp > csp->keyboardLineBuffer) csp 1217 src/dps8/dps8_console.c * csp->tailp = 0; csp 1218 src/dps8/dps8_console.c -- csp->tailp; csp 1219 src/dps8/dps8_console.c if (csp->echo) csp 1228 src/dps8/dps8_console.c if (csp->echo) csp 1231 src/dps8/dps8_console.c for (unsigned char * p = csp->keyboardLineBuffer; p < csp->tailp; p ++) csp 1241 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1249 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1256 src/dps8/dps8_console.c if (csp->echo) csp 1267 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 1268 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1279 src/dps8/dps8_console.c if (csp->tailp >= csp->keyboardLineBuffer + sizeof (csp->keyboardLineBuffer)) csp 1282 src/dps8/dps8_console.c * csp->tailp ++ = (unsigned char) ch; csp 1283 src/dps8/dps8_console.c if (csp->echo) csp 1318 src/dps8/dps8_console.c opc_state_t * csp = console_state + con_unit_idx; csp 1337 src/dps8/dps8_console.c csp->io_mode = opc_no_mode; csp 1343 src/dps8/dps8_console.c csp->io_mode = opc_read_mode; csp 1345 src/dps8/dps8_console.c csp->echo = true; csp 1346 src/dps8/dps8_console.c csp->bcd = true; csp 1353 src/dps8/dps8_console.c csp->bcd = true; csp 1354 src/dps8/dps8_console.c csp->io_mode = opc_write_mode; csp 1361 src/dps8/dps8_console.c csp->io_mode = opc_read_mode; csp 1363 src/dps8/dps8_console.c csp->echo = true; csp 1364 src/dps8/dps8_console.c csp->bcd = false; csp 1371 src/dps8/dps8_console.c csp->bcd = false; csp 1372 src/dps8/dps8_console.c csp->io_mode = opc_write_mode; csp 1400 src/dps8/dps8_console.c csp->io_mode = opc_read_mode; csp 1402 src/dps8/dps8_console.c csp->echo = false; csp 1403 src/dps8/dps8_console.c csp->bcd = false; csp 1413 src/dps8/dps8_console.c if (csp->model == m6001 && p->isPCW) { csp 1426 src/dps8/dps8_console.c if (csp->model == m6001 && p->isPCW) { csp 1454 src/dps8/dps8_console.c switch (csp->io_mode) { csp 1461 src/dps8/dps8_console.c if (csp->tailp != csp->keyboardLineBuffer) { csp 1471 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1472 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 1473 src/dps8/dps8_console.c csp->startTime = time (NULL); csp 1474 src/dps8/dps8_console.c csp->tally = tally; csp 1475 src/dps8/dps8_console.c csp->daddr = daddr; csp 1476 src/dps8/dps8_console.c csp->unitp = unitp; csp 1477 src/dps8/dps8_console.c csp->chan = (int) chan; csp 1488 src/dps8/dps8_console.c if (csp->autop && (*csp->autop == 030 || *csp->autop == 031)) { // ^X ^Y csp 1533 src/dps8/dps8_console.c csp 1563 src/dps8/dps8_console.c if (csp->bcd) { csp 1622 src/dps8/dps8_console.c if (csp->autop && * csp->autop == 030) { csp 1626 src/dps8/dps8_console.c size_t expl = strcspn ((char *) (csp->autop + 1), "\030"); csp 1628 src/dps8/dps8_console.c if (strncmp (text, (char *) (csp->autop + 1), expl) == 0) { csp 1629 src/dps8/dps8_console.c csp->autop += expl + 2; csp 1634 src/dps8/dps8_console.c if (csp->autop && * csp->autop == 031) { csp 1638 src/dps8/dps8_console.c size_t expl = strcspn ((char *) (csp->autop + 1), "\031"); csp 1641 src/dps8/dps8_console.c strncpy (needle, (char *) csp->autop + 1, expl); csp 1644 src/dps8/dps8_console.c csp->autop += expl + 2; csp 1724 src/dps8/dps8_console.c opc_state_t * csp = console_state + devUnitIdx; csp 1745 src/dps8/dps8_console.c csp->autoaccept = (int) v; csp 1751 src/dps8/dps8_console.c csp->noempty = (int) v; csp 1757 src/dps8/dps8_console.c csp->attn_flush = (int) v; csp 1763 src/dps8/dps8_console.c csp->model = (enum console_model) v; csp 1780 src/dps8/dps8_console.c opc_state_t * csp = console_state + devUnitIdx; csp 1782 src/dps8/dps8_console.c sim_msg ("autoaccept=%d, ", csp->autoaccept); csp 1783 src/dps8/dps8_console.c sim_msg ("noempty=%d, ", csp->noempty); csp 1784 src/dps8/dps8_console.c sim_msg ("attn_flush=%d", csp->attn_flush); csp 1937 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 1938 src/dps8/dps8_console.c if (csp->console_access.loggedOn) csp 1939 src/dps8/dps8_console.c accessStartWrite (csp->console_access.client, str, csp 1944 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 1946 src/dps8/dps8_console.c if (csp->console_access.loggedOn) csp 1947 src/dps8/dps8_console.c accessStartWrite (csp->console_access.client, & ch, 1); csp 1951 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 1952 src/dps8/dps8_console.c if (csp->escapeSequence) { // Prior character was an escape csp 1953 src/dps8/dps8_console.c csp->escapeSequence = false; csp 1955 src/dps8/dps8_console.c if (csp->carrierPosition >= 1 && csp->carrierPosition <= 256) { csp 1956 src/dps8/dps8_console.c csp->tabStops[csp->carrierPosition] = true; csp 1959 src/dps8/dps8_console.c (void)memset (csp->tabStops, 0, sizeof (csp->tabStops)); csp 1965 src/dps8/dps8_console.c csp->carrierPosition ++; csp 1967 src/dps8/dps8_console.c while (csp->carrierPosition < bufsize - 1) { csp 1969 src/dps8/dps8_console.c csp->carrierPosition ++; csp 1970 src/dps8/dps8_console.c if (csp->tabStops[csp->carrierPosition]) csp 1975 src/dps8/dps8_console.c csp->carrierPosition --; csp 1978 src/dps8/dps8_console.c csp->carrierPosition = 1; csp 1980 src/dps8/dps8_console.c csp->escapeSequence = true;