csp 422 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; csp 423 src/dps8/dps8_console.c if (csp->attn_pressed) csp 425 src/dps8/dps8_console.c csp->attn_pressed = false; csp 440 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; csp 441 src/dps8/dps8_console.c csp->model = m6001; csp 442 src/dps8/dps8_console.c csp->auto_input = NULL; csp 443 src/dps8/dps8_console.c csp->autop = NULL; csp 444 src/dps8/dps8_console.c csp->attn_pressed = false; csp 445 src/dps8/dps8_console.c csp->simh_attn_pressed = false; csp 446 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 447 src/dps8/dps8_console.c strcpy (csp->console_access.pw, "MulticsRulez"); csp 449 src/dps8/dps8_console.c csp->autoaccept = 0; csp 450 src/dps8/dps8_console.c csp->noempty = 0; csp 451 src/dps8/dps8_console.c csp->attn_flush = 1; csp 452 src/dps8/dps8_console.c csp->carrierPosition = 1; csp 453 src/dps8/dps8_console.c csp->escapeSequence = 1; csp 454 src/dps8/dps8_console.c memset (csp->tabStops, 0, sizeof (csp->tabStops)); csp 462 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; csp 463 src/dps8/dps8_console.c if (csp->auto_input) { csp 464 src/dps8/dps8_console.c FREE (csp->auto_input); csp 465 src/dps8/dps8_console.c csp->auto_input = NULL; csp 467 src/dps8/dps8_console.c if (csp->console_access.telnetp) { csp 468 src/dps8/dps8_console.c sim_warn ("console_exit freeing console %u telnetp %p\r\n", i, csp->console_access.telnetp); csp 469 src/dps8/dps8_console.c telnet_free (csp->console_access.telnetp); csp 470 src/dps8/dps8_console.c csp->console_access.telnetp = NULL; csp 479 src/dps8/dps8_console.c opc_state_t * csp = console_state + devUnitIdx; csp 484 src/dps8/dps8_console.c if (csp-> auto_input) csp 487 src/dps8/dps8_console.c size_t ol = strlen ((char *) csp->auto_input); csp 489 src/dps8/dps8_console.c unsigned char * old = realloc (csp->auto_input, nl + ol + 1); csp 503 src/dps8/dps8_console.c csp->auto_input = old; csp 507 src/dps8/dps8_console.c csp->auto_input = new; csp 511 src/dps8/dps8_console.c if (csp->auto_input) csp 512 src/dps8/dps8_console.c FREE (csp->auto_input); csp 513 src/dps8/dps8_console.c csp->auto_input = NULL; csp 515 src/dps8/dps8_console.c csp->autop = csp->auto_input; csp 521 src/dps8/dps8_console.c opc_state_t * csp = console_state + flag; csp 522 src/dps8/dps8_console.c if (csp->auto_input) csp 523 src/dps8/dps8_console.c FREE (csp->auto_input); csp 524 src/dps8/dps8_console.c csp->auto_input = NULL; csp 525 src/dps8/dps8_console.c csp->autop = csp->auto_input; csp 531 src/dps8/dps8_console.c opc_state_t * csp = console_state + flag; csp 533 src/dps8/dps8_console.c if (csp->auto_input) csp 536 src/dps8/dps8_console.c size_t ol = strlen ((char *) csp->auto_input); csp 538 src/dps8/dps8_console.c unsigned char * old = realloc (csp->auto_input, nl + ol + 1); csp 552 src/dps8/dps8_console.c csp->auto_input = old; csp 556 src/dps8/dps8_console.c csp->auto_input = new; csp 557 src/dps8/dps8_console.c csp->autop = csp->auto_input; csp 565 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 566 src/dps8/dps8_console.c if (csp->auto_input) csp 567 src/dps8/dps8_console.c sim_print ("autoinput: '%s'", csp->auto_input); csp 704 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 705 src/dps8/dps8_console.c uint tally = csp->tally; csp 712 src/dps8/dps8_console.c if (csp->io_mode != opc_read_mode) csp 715 src/dps8/dps8_console.c __func__, csp->io_mode); csp 719 src/dps8/dps8_console.c uint n_chars = (uint) (csp->tailp - csp->readp); csp 721 src/dps8/dps8_console.c if (csp->bcd) csp 734 src/dps8/dps8_console.c if ((!csp->bcd) && csp->noempty && n_chars == 0 && tally) csp 744 src/dps8/dps8_console.c while (tally && csp->readp < csp->tailp) csp 746 src/dps8/dps8_console.c if (csp->bcd) csp 754 src/dps8/dps8_console.c if (csp->readp >= csp->tailp) csp 770 src/dps8/dps8_console.c c = (unsigned char) (* csp->readp ++); csp 789 src/dps8/dps8_console.c if (csp->readp >= csp->tailp) csp 791 src/dps8/dps8_console.c unsigned char c = (unsigned char) (* csp->readp ++); csp 799 src/dps8/dps8_console.c if (csp->readp < csp->tailp) csp 802 src/dps8/dps8_console.c (int) (csp->tailp - csp->readp)); csp 811 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 812 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 813 src/dps8/dps8_console.c csp->io_mode = opc_no_mode; csp 824 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 833 src/dps8/dps8_console.c c = accessGetChar (& csp->console_access); csp 883 src/dps8/dps8_console.c if (csp->io_mode != opc_read_mode) csp 887 src/dps8/dps8_console.c if (csp->attn_flush) csp 889 src/dps8/dps8_console.c csp->attn_pressed = true; csp 902 src/dps8/dps8_console.c csp 919 src/dps8/dps8_console.c if (! csp->simh_attn_pressed) csp 922 src/dps8/dps8_console.c csp->simh_attn_pressed = true; csp 923 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 941 src/dps8/dps8_console.c if (csp->io_mode != opc_read_mode) { csp 942 src/dps8/dps8_console.c if (csp->attn_flush) csp 944 src/dps8/dps8_console.c csp->attn_pressed = true; csp 966 src/dps8/dps8_console.c if (csp->simh_attn_pressed) csp 971 src/dps8/dps8_console.c if (csp->simh_buffer_cnt > 0) csp 973 src/dps8/dps8_console.c -- csp->simh_buffer_cnt; csp 974 src/dps8/dps8_console.c csp->simh_buffer[csp->simh_buffer_cnt] = 0; csp 985 src/dps8/dps8_console.c for (int i = 0; i < csp->simh_buffer_cnt; i ++) csp 986 src/dps8/dps8_console.c console_putchar (conUnitIdx, (char) (csp->simh_buffer[i])); csp 995 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 1004 src/dps8/dps8_console.c csp->simh_buffer[csp->simh_buffer_cnt] = 0; csp 1006 src/dps8/dps8_console.c char * cptr = csp->simh_buffer; csp 1028 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 1029 src/dps8/dps8_console.c csp->simh_buffer[0] = 0; csp 1030 src/dps8/dps8_console.c csp->simh_attn_pressed = false; csp 1040 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 1041 src/dps8/dps8_console.c csp->simh_buffer[0] = 0; csp 1042 src/dps8/dps8_console.c csp->simh_attn_pressed = false; csp 1051 src/dps8/dps8_console.c if (csp->simh_buffer_cnt + 1 >= simh_buffer_sz) csp 1053 src/dps8/dps8_console.c csp->simh_buffer[csp->simh_buffer_cnt ++] = (char) ch; csp 1076 src/dps8/dps8_console.c if (csp->io_mode == opc_read_mode && csp 1077 src/dps8/dps8_console.c csp->autop != NULL) csp 1082 src/dps8/dps8_console.c if (csp->tailp >= csp->keyboardLineBuffer + sizeof (csp->keyboardLineBuffer)) csp 1088 src/dps8/dps8_console.c unsigned char c = * (csp->autop); csp 1091 src/dps8/dps8_console.c FREE (csp->auto_input); csp 1092 src/dps8/dps8_console.c csp->auto_input = NULL; csp 1093 src/dps8/dps8_console.c csp->autop = NULL; csp 1095 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 1096 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1111 src/dps8/dps8_console.c FREE (csp->auto_input); csp 1112 src/dps8/dps8_console.c csp->auto_input = NULL; csp 1113 src/dps8/dps8_console.c csp->autop = NULL; csp 1121 src/dps8/dps8_console.c csp->autop ++; csp 1126 src/dps8/dps8_console.c if (csp->echo) csp 1133 src/dps8/dps8_console.c * csp->tailp ++ = c; csp 1134 src/dps8/dps8_console.c if (csp->echo) csp 1143 src/dps8/dps8_console.c if (csp->io_mode == opc_read_mode && csp 1144 src/dps8/dps8_console.c csp->tailp == csp->keyboardLineBuffer) csp 1146 src/dps8/dps8_console.c if (csp->startTime + 30 <= time (NULL)) csp 1150 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 1151 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1177 src/dps8/dps8_console.c if (csp->io_mode != opc_read_mode) csp 1182 src/dps8/dps8_console.c csp->attn_pressed = true; csp 1190 src/dps8/dps8_console.c if (csp->tailp > csp->keyboardLineBuffer) csp 1192 src/dps8/dps8_console.c * csp->tailp = 0; csp 1193 src/dps8/dps8_console.c -- csp->tailp; csp 1194 src/dps8/dps8_console.c if (csp->echo) csp 1203 src/dps8/dps8_console.c if (csp->echo) csp 1206 src/dps8/dps8_console.c for (unsigned char * p = csp->keyboardLineBuffer; p < csp->tailp; p ++) csp 1216 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1224 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1231 src/dps8/dps8_console.c if (csp->echo) csp 1242 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 1243 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1255 src/dps8/dps8_console.c if (csp->tailp >= csp->keyboardLineBuffer + sizeof (csp->keyboardLineBuffer)) csp 1258 src/dps8/dps8_console.c * csp->tailp ++ = (unsigned char) ch; csp 1259 src/dps8/dps8_console.c if (csp->echo) csp 1291 src/dps8/dps8_console.c opc_state_t * csp = console_state + con_unit_idx; csp 1310 src/dps8/dps8_console.c csp->io_mode = opc_no_mode; csp 1316 src/dps8/dps8_console.c csp->io_mode = opc_read_mode; csp 1318 src/dps8/dps8_console.c csp->echo = true; csp 1319 src/dps8/dps8_console.c csp->bcd = true; csp 1326 src/dps8/dps8_console.c csp->bcd = true; csp 1327 src/dps8/dps8_console.c csp->io_mode = opc_write_mode; csp 1334 src/dps8/dps8_console.c csp->io_mode = opc_read_mode; csp 1336 src/dps8/dps8_console.c csp->echo = true; csp 1337 src/dps8/dps8_console.c csp->bcd = false; csp 1344 src/dps8/dps8_console.c csp->bcd = false; csp 1345 src/dps8/dps8_console.c csp->io_mode = opc_write_mode; csp 1373 src/dps8/dps8_console.c csp->io_mode = opc_read_mode; csp 1375 src/dps8/dps8_console.c csp->echo = false; csp 1376 src/dps8/dps8_console.c csp->bcd = false; csp 1387 src/dps8/dps8_console.c if (csp->model == m6001 && p->isPCW) { csp 1400 src/dps8/dps8_console.c if (csp->model == m6001 && p->isPCW) { csp 1430 src/dps8/dps8_console.c switch (csp->io_mode) { csp 1437 src/dps8/dps8_console.c if (csp->tailp != csp->keyboardLineBuffer) { csp 1447 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1448 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 1449 src/dps8/dps8_console.c csp->startTime = time (NULL); csp 1450 src/dps8/dps8_console.c csp->tally = tally; csp 1451 src/dps8/dps8_console.c csp->daddr = daddr; csp 1452 src/dps8/dps8_console.c csp->unitp = unitp; csp 1453 src/dps8/dps8_console.c csp->chan = (int) chan; csp 1464 src/dps8/dps8_console.c if (csp->autop && (*csp->autop == 030 || *csp->autop == 031)) { // ^X ^Y csp 1509 src/dps8/dps8_console.c csp 1539 src/dps8/dps8_console.c if (csp->bcd) { csp 1598 src/dps8/dps8_console.c if (csp->autop && * csp->autop == 030) { csp 1602 src/dps8/dps8_console.c size_t expl = strcspn ((char *) (csp->autop + 1), "\030"); csp 1604 src/dps8/dps8_console.c if (strncmp (text, (char *) (csp->autop + 1), expl) == 0) { csp 1605 src/dps8/dps8_console.c csp->autop += expl + 2; csp 1611 src/dps8/dps8_console.c if (csp->autop && * csp->autop == 031) { csp 1615 src/dps8/dps8_console.c size_t expl = strcspn ((char *) (csp->autop + 1), "\031"); csp 1618 src/dps8/dps8_console.c strncpy (needle, (char *) csp->autop + 1, expl); csp 1621 src/dps8/dps8_console.c csp->autop += expl + 2; csp 1702 src/dps8/dps8_console.c opc_state_t * csp = console_state + devUnitIdx; csp 1723 src/dps8/dps8_console.c csp->autoaccept = (int) v; csp 1729 src/dps8/dps8_console.c csp->noempty = (int) v; csp 1735 src/dps8/dps8_console.c csp->attn_flush = (int) v; csp 1741 src/dps8/dps8_console.c csp->model = (enum console_model) v; csp 1758 src/dps8/dps8_console.c opc_state_t * csp = console_state + devUnitIdx; csp 1760 src/dps8/dps8_console.c sim_msg ("autoaccept=%d, ", csp->autoaccept); csp 1761 src/dps8/dps8_console.c sim_msg ("noempty=%d, ", csp->noempty); csp 1762 src/dps8/dps8_console.c sim_msg ("attn_flush=%d", csp->attn_flush); csp 1915 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 1916 src/dps8/dps8_console.c if (csp->console_access.loggedOn) csp 1917 src/dps8/dps8_console.c accessStartWrite (csp->console_access.client, str, csp 1922 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 1924 src/dps8/dps8_console.c if (csp->console_access.loggedOn) csp 1925 src/dps8/dps8_console.c accessStartWrite (csp->console_access.client, & ch, 1); csp 1929 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 1930 src/dps8/dps8_console.c if (csp->escapeSequence) { // Prior character was an escape csp 1931 src/dps8/dps8_console.c csp->escapeSequence = false; csp 1933 src/dps8/dps8_console.c if (csp->carrierPosition >= 1 && csp->carrierPosition <= 256) { csp 1934 src/dps8/dps8_console.c csp->tabStops[csp->carrierPosition] = true; csp 1937 src/dps8/dps8_console.c memset (csp->tabStops, 0, sizeof (csp->tabStops)); csp 1943 src/dps8/dps8_console.c csp->carrierPosition ++; csp 1945 src/dps8/dps8_console.c while (csp->carrierPosition < bufsize - 1) { csp 1947 src/dps8/dps8_console.c csp->carrierPosition ++; csp 1948 src/dps8/dps8_console.c if (csp->tabStops[csp->carrierPosition]) csp 1953 src/dps8/dps8_console.c csp->carrierPosition --; csp 1956 src/dps8/dps8_console.c csp->carrierPosition = 1; csp 1958 src/dps8/dps8_console.c csp->escapeSequence = true;