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 437 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; csp 438 src/dps8/dps8_console.c csp->model = m6001; csp 439 src/dps8/dps8_console.c csp->auto_input = NULL; csp 440 src/dps8/dps8_console.c csp->autop = NULL; csp 441 src/dps8/dps8_console.c csp->attn_pressed = false; csp 442 src/dps8/dps8_console.c csp->simh_attn_pressed = false; csp 443 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 444 src/dps8/dps8_console.c strcpy (csp->console_access.pw, "MulticsRulez"); csp 446 src/dps8/dps8_console.c csp->autoaccept = 0; csp 447 src/dps8/dps8_console.c csp->noempty = 0; csp 448 src/dps8/dps8_console.c csp->attn_flush = 1; csp 449 src/dps8/dps8_console.c csp->carrierPosition = 1; csp 450 src/dps8/dps8_console.c csp->escapeSequence = 1; csp 451 src/dps8/dps8_console.c (void)memset (csp->tabStops, 0, sizeof (csp->tabStops)); csp 459 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; csp 460 src/dps8/dps8_console.c if (csp->auto_input) { csp 461 src/dps8/dps8_console.c FREE (csp->auto_input); csp 462 src/dps8/dps8_console.c csp->auto_input = NULL; csp 464 src/dps8/dps8_console.c if (csp->console_access.telnetp) { csp 465 src/dps8/dps8_console.c sim_warn ("console_exit freeing console %u telnetp %p\r\n", i, csp->console_access.telnetp); csp 466 src/dps8/dps8_console.c telnet_free (csp->console_access.telnetp); csp 467 src/dps8/dps8_console.c csp->console_access.telnetp = NULL; csp 476 src/dps8/dps8_console.c opc_state_t * csp = console_state + devUnitIdx; csp 481 src/dps8/dps8_console.c if (csp-> auto_input) csp 484 src/dps8/dps8_console.c size_t ol = strlen ((char *) csp->auto_input); csp 486 src/dps8/dps8_console.c unsigned char * old = realloc (csp->auto_input, nl + ol + 1); csp 500 src/dps8/dps8_console.c csp->auto_input = old; csp 504 src/dps8/dps8_console.c csp->auto_input = new; csp 508 src/dps8/dps8_console.c if (csp->auto_input) csp 509 src/dps8/dps8_console.c FREE (csp->auto_input); csp 510 src/dps8/dps8_console.c csp->auto_input = NULL; csp 512 src/dps8/dps8_console.c csp->autop = csp->auto_input; csp 518 src/dps8/dps8_console.c opc_state_t * csp = console_state + flag; csp 519 src/dps8/dps8_console.c if (csp->auto_input) csp 520 src/dps8/dps8_console.c FREE (csp->auto_input); csp 521 src/dps8/dps8_console.c csp->auto_input = NULL; csp 522 src/dps8/dps8_console.c csp->autop = csp->auto_input; csp 528 src/dps8/dps8_console.c opc_state_t * csp = console_state + flag; csp 530 src/dps8/dps8_console.c if (csp->auto_input) csp 533 src/dps8/dps8_console.c size_t ol = strlen ((char *) csp->auto_input); csp 535 src/dps8/dps8_console.c unsigned char * old = realloc (csp->auto_input, nl + ol + 1); csp 549 src/dps8/dps8_console.c csp->auto_input = old; csp 553 src/dps8/dps8_console.c csp->auto_input = new; csp 554 src/dps8/dps8_console.c csp->autop = csp->auto_input; csp 562 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 563 src/dps8/dps8_console.c if (csp->auto_input) csp 564 src/dps8/dps8_console.c sim_print ("autoinput: '%s'", csp->auto_input); csp 710 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 711 src/dps8/dps8_console.c uint tally = csp->tally; csp 718 src/dps8/dps8_console.c if (csp->io_mode != opc_read_mode) csp 721 src/dps8/dps8_console.c __func__, csp->io_mode); csp 725 src/dps8/dps8_console.c uint n_chars = (uint) (csp->tailp - csp->readp); csp 727 src/dps8/dps8_console.c if (csp->bcd) csp 740 src/dps8/dps8_console.c if ((!csp->bcd) && csp->noempty && n_chars == 0 && tally) csp 750 src/dps8/dps8_console.c while (tally && csp->readp < csp->tailp) csp 752 src/dps8/dps8_console.c if (csp->bcd) csp 760 src/dps8/dps8_console.c if (csp->readp >= csp->tailp) csp 776 src/dps8/dps8_console.c c = (unsigned char) (* csp->readp ++); csp 795 src/dps8/dps8_console.c if (csp->readp >= csp->tailp) csp 797 src/dps8/dps8_console.c unsigned char c = (unsigned char) (* csp->readp ++); csp 805 src/dps8/dps8_console.c if (csp->readp < csp->tailp) csp 808 src/dps8/dps8_console.c (int) (csp->tailp - csp->readp)); csp 817 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 818 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 819 src/dps8/dps8_console.c csp->io_mode = opc_no_mode; csp 830 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 839 src/dps8/dps8_console.c c = accessGetChar (& csp->console_access); csp 889 src/dps8/dps8_console.c if (csp->io_mode != opc_read_mode) csp 893 src/dps8/dps8_console.c if (csp->attn_flush) csp 895 src/dps8/dps8_console.c csp->attn_pressed = true; csp 908 src/dps8/dps8_console.c csp 925 src/dps8/dps8_console.c if (! csp->simh_attn_pressed) csp 928 src/dps8/dps8_console.c csp->simh_attn_pressed = true; csp 929 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 947 src/dps8/dps8_console.c if (csp->io_mode != opc_read_mode) { csp 948 src/dps8/dps8_console.c if (csp->attn_flush) csp 950 src/dps8/dps8_console.c csp->attn_pressed = true; csp 972 src/dps8/dps8_console.c if (csp->simh_attn_pressed) csp 977 src/dps8/dps8_console.c if (csp->simh_buffer_cnt > 0) csp 979 src/dps8/dps8_console.c -- csp->simh_buffer_cnt; csp 980 src/dps8/dps8_console.c csp->simh_buffer[csp->simh_buffer_cnt] = 0; csp 991 src/dps8/dps8_console.c for (int i = 0; i < csp->simh_buffer_cnt; i ++) csp 992 src/dps8/dps8_console.c console_putchar (conUnitIdx, (char) (csp->simh_buffer[i])); csp 1001 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 1010 src/dps8/dps8_console.c csp->simh_buffer[csp->simh_buffer_cnt] = 0; csp 1012 src/dps8/dps8_console.c char * cptr = csp->simh_buffer; csp 1034 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 1035 src/dps8/dps8_console.c csp->simh_buffer[0] = 0; csp 1036 src/dps8/dps8_console.c csp->simh_attn_pressed = false; csp 1046 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 1047 src/dps8/dps8_console.c csp->simh_buffer[0] = 0; csp 1048 src/dps8/dps8_console.c csp->simh_attn_pressed = false; csp 1057 src/dps8/dps8_console.c if (csp->simh_buffer_cnt + 1 >= simh_buffer_sz) csp 1059 src/dps8/dps8_console.c csp->simh_buffer[csp->simh_buffer_cnt ++] = (char) ch; csp 1082 src/dps8/dps8_console.c if (csp->io_mode == opc_read_mode && csp 1083 src/dps8/dps8_console.c csp->autop != NULL) csp 1088 src/dps8/dps8_console.c if (csp->tailp >= csp->keyboardLineBuffer + sizeof (csp->keyboardLineBuffer)) csp 1094 src/dps8/dps8_console.c unsigned char c = * (csp->autop); csp 1097 src/dps8/dps8_console.c FREE (csp->auto_input); csp 1098 src/dps8/dps8_console.c csp->auto_input = NULL; csp 1099 src/dps8/dps8_console.c csp->autop = NULL; csp 1101 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 1102 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1117 src/dps8/dps8_console.c FREE (csp->auto_input); csp 1118 src/dps8/dps8_console.c csp->auto_input = NULL; csp 1119 src/dps8/dps8_console.c csp->autop = NULL; csp 1127 src/dps8/dps8_console.c csp->autop ++; csp 1132 src/dps8/dps8_console.c if (csp->echo) csp 1139 src/dps8/dps8_console.c * csp->tailp ++ = c; csp 1140 src/dps8/dps8_console.c if (csp->echo) csp 1149 src/dps8/dps8_console.c if (csp->io_mode == opc_read_mode && csp 1150 src/dps8/dps8_console.c csp->tailp == csp->keyboardLineBuffer) csp 1152 src/dps8/dps8_console.c if (csp->startTime + 30 <= time (NULL)) csp 1156 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 1157 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1183 src/dps8/dps8_console.c if (csp->io_mode != opc_read_mode) csp 1188 src/dps8/dps8_console.c csp->attn_pressed = true; csp 1196 src/dps8/dps8_console.c if (csp->tailp > csp->keyboardLineBuffer) csp 1198 src/dps8/dps8_console.c * csp->tailp = 0; csp 1199 src/dps8/dps8_console.c -- csp->tailp; csp 1200 src/dps8/dps8_console.c if (csp->echo) csp 1209 src/dps8/dps8_console.c if (csp->echo) csp 1212 src/dps8/dps8_console.c for (unsigned char * p = csp->keyboardLineBuffer; p < csp->tailp; p ++) csp 1222 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1230 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1237 src/dps8/dps8_console.c if (csp->echo) csp 1248 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 1249 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1261 src/dps8/dps8_console.c if (csp->tailp >= csp->keyboardLineBuffer + sizeof (csp->keyboardLineBuffer)) csp 1264 src/dps8/dps8_console.c * csp->tailp ++ = (unsigned char) ch; csp 1265 src/dps8/dps8_console.c if (csp->echo) csp 1300 src/dps8/dps8_console.c opc_state_t * csp = console_state + con_unit_idx; csp 1319 src/dps8/dps8_console.c csp->io_mode = opc_no_mode; csp 1325 src/dps8/dps8_console.c csp->io_mode = opc_read_mode; csp 1327 src/dps8/dps8_console.c csp->echo = true; csp 1328 src/dps8/dps8_console.c csp->bcd = true; csp 1335 src/dps8/dps8_console.c csp->bcd = true; csp 1336 src/dps8/dps8_console.c csp->io_mode = opc_write_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 = false; csp 1353 src/dps8/dps8_console.c csp->bcd = false; csp 1354 src/dps8/dps8_console.c csp->io_mode = opc_write_mode; csp 1382 src/dps8/dps8_console.c csp->io_mode = opc_read_mode; csp 1384 src/dps8/dps8_console.c csp->echo = false; csp 1385 src/dps8/dps8_console.c csp->bcd = false; csp 1396 src/dps8/dps8_console.c if (csp->model == m6001 && p->isPCW) { csp 1409 src/dps8/dps8_console.c if (csp->model == m6001 && p->isPCW) { csp 1439 src/dps8/dps8_console.c switch (csp->io_mode) { csp 1446 src/dps8/dps8_console.c if (csp->tailp != csp->keyboardLineBuffer) { csp 1456 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1457 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 1458 src/dps8/dps8_console.c csp->startTime = time (NULL); csp 1459 src/dps8/dps8_console.c csp->tally = tally; csp 1460 src/dps8/dps8_console.c csp->daddr = daddr; csp 1461 src/dps8/dps8_console.c csp->unitp = unitp; csp 1462 src/dps8/dps8_console.c csp->chan = (int) chan; csp 1473 src/dps8/dps8_console.c if (csp->autop && (*csp->autop == 030 || *csp->autop == 031)) { // ^X ^Y csp 1518 src/dps8/dps8_console.c csp 1548 src/dps8/dps8_console.c if (csp->bcd) { csp 1607 src/dps8/dps8_console.c if (csp->autop && * csp->autop == 030) { csp 1611 src/dps8/dps8_console.c size_t expl = strcspn ((char *) (csp->autop + 1), "\030"); csp 1613 src/dps8/dps8_console.c if (strncmp (text, (char *) (csp->autop + 1), expl) == 0) { csp 1614 src/dps8/dps8_console.c csp->autop += expl + 2; csp 1620 src/dps8/dps8_console.c if (csp->autop && * csp->autop == 031) { csp 1624 src/dps8/dps8_console.c size_t expl = strcspn ((char *) (csp->autop + 1), "\031"); csp 1627 src/dps8/dps8_console.c strncpy (needle, (char *) csp->autop + 1, expl); csp 1630 src/dps8/dps8_console.c csp->autop += expl + 2; csp 1711 src/dps8/dps8_console.c opc_state_t * csp = console_state + devUnitIdx; csp 1732 src/dps8/dps8_console.c csp->autoaccept = (int) v; csp 1738 src/dps8/dps8_console.c csp->noempty = (int) v; csp 1744 src/dps8/dps8_console.c csp->attn_flush = (int) v; csp 1750 src/dps8/dps8_console.c csp->model = (enum console_model) v; csp 1767 src/dps8/dps8_console.c opc_state_t * csp = console_state + devUnitIdx; csp 1769 src/dps8/dps8_console.c sim_msg ("autoaccept=%d, ", csp->autoaccept); csp 1770 src/dps8/dps8_console.c sim_msg ("noempty=%d, ", csp->noempty); csp 1771 src/dps8/dps8_console.c sim_msg ("attn_flush=%d", csp->attn_flush); csp 1924 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 1925 src/dps8/dps8_console.c if (csp->console_access.loggedOn) csp 1926 src/dps8/dps8_console.c accessStartWrite (csp->console_access.client, str, csp 1931 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 1933 src/dps8/dps8_console.c if (csp->console_access.loggedOn) csp 1934 src/dps8/dps8_console.c accessStartWrite (csp->console_access.client, & ch, 1); csp 1938 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 1939 src/dps8/dps8_console.c if (csp->escapeSequence) { // Prior character was an escape csp 1940 src/dps8/dps8_console.c csp->escapeSequence = false; csp 1942 src/dps8/dps8_console.c if (csp->carrierPosition >= 1 && csp->carrierPosition <= 256) { csp 1943 src/dps8/dps8_console.c csp->tabStops[csp->carrierPosition] = true; csp 1946 src/dps8/dps8_console.c (void)memset (csp->tabStops, 0, sizeof (csp->tabStops)); csp 1952 src/dps8/dps8_console.c csp->carrierPosition ++; csp 1954 src/dps8/dps8_console.c while (csp->carrierPosition < bufsize - 1) { csp 1956 src/dps8/dps8_console.c csp->carrierPosition ++; csp 1957 src/dps8/dps8_console.c if (csp->tabStops[csp->carrierPosition]) csp 1962 src/dps8/dps8_console.c csp->carrierPosition --; csp 1965 src/dps8/dps8_console.c csp->carrierPosition = 1; csp 1967 src/dps8/dps8_console.c csp->escapeSequence = true;