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 439 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; csp 440 src/dps8/dps8_console.c csp->model = m6001; csp 441 src/dps8/dps8_console.c csp->auto_input = NULL; csp 442 src/dps8/dps8_console.c csp->autop = NULL; csp 443 src/dps8/dps8_console.c csp->attn_pressed = false; csp 444 src/dps8/dps8_console.c csp->simh_attn_pressed = false; csp 445 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 446 src/dps8/dps8_console.c strcpy (csp->console_access.pw, "MulticsRulez"); csp 448 src/dps8/dps8_console.c csp->autoaccept = 0; csp 449 src/dps8/dps8_console.c csp->noempty = 0; csp 450 src/dps8/dps8_console.c csp->attn_flush = 1; csp 451 src/dps8/dps8_console.c csp->carrierPosition = 1; csp 452 src/dps8/dps8_console.c csp->escapeSequence = 1; csp 453 src/dps8/dps8_console.c memset (csp->tabStops, 0, sizeof (csp->tabStops)); csp 461 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; csp 462 src/dps8/dps8_console.c if (csp->auto_input) { csp 463 src/dps8/dps8_console.c FREE (csp->auto_input); csp 464 src/dps8/dps8_console.c csp->auto_input = NULL; csp 466 src/dps8/dps8_console.c if (csp->console_access.telnetp) { csp 467 src/dps8/dps8_console.c sim_warn ("console_exit freeing console %u telnetp %p\r\n", i, csp->console_access.telnetp); csp 468 src/dps8/dps8_console.c telnet_free (csp->console_access.telnetp); csp 469 src/dps8/dps8_console.c csp->console_access.telnetp = NULL; csp 478 src/dps8/dps8_console.c opc_state_t * csp = console_state + devUnitIdx; csp 483 src/dps8/dps8_console.c if (csp-> auto_input) csp 486 src/dps8/dps8_console.c size_t ol = strlen ((char *) csp->auto_input); csp 488 src/dps8/dps8_console.c unsigned char * old = realloc (csp->auto_input, nl + ol + 1); csp 502 src/dps8/dps8_console.c csp->auto_input = old; csp 506 src/dps8/dps8_console.c csp->auto_input = new; csp 510 src/dps8/dps8_console.c if (csp->auto_input) csp 511 src/dps8/dps8_console.c FREE (csp->auto_input); csp 512 src/dps8/dps8_console.c csp->auto_input = NULL; csp 514 src/dps8/dps8_console.c csp->autop = csp->auto_input; csp 520 src/dps8/dps8_console.c opc_state_t * csp = console_state + flag; csp 521 src/dps8/dps8_console.c if (csp->auto_input) csp 522 src/dps8/dps8_console.c FREE (csp->auto_input); csp 523 src/dps8/dps8_console.c csp->auto_input = NULL; csp 524 src/dps8/dps8_console.c csp->autop = csp->auto_input; csp 530 src/dps8/dps8_console.c opc_state_t * csp = console_state + flag; csp 532 src/dps8/dps8_console.c if (csp->auto_input) csp 535 src/dps8/dps8_console.c size_t ol = strlen ((char *) csp->auto_input); csp 537 src/dps8/dps8_console.c unsigned char * old = realloc (csp->auto_input, nl + ol + 1); csp 551 src/dps8/dps8_console.c csp->auto_input = old; csp 555 src/dps8/dps8_console.c csp->auto_input = new; csp 556 src/dps8/dps8_console.c csp->autop = csp->auto_input; csp 564 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 565 src/dps8/dps8_console.c if (csp->auto_input) csp 566 src/dps8/dps8_console.c sim_print ("autoinput: '%s'", csp->auto_input); csp 703 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 704 src/dps8/dps8_console.c uint tally = csp->tally; csp 711 src/dps8/dps8_console.c if (csp->io_mode != opc_read_mode) csp 714 src/dps8/dps8_console.c __func__, csp->io_mode); csp 718 src/dps8/dps8_console.c uint n_chars = (uint) (csp->tailp - csp->readp); csp 720 src/dps8/dps8_console.c if (csp->bcd) csp 733 src/dps8/dps8_console.c if ((!csp->bcd) && csp->noempty && n_chars == 0 && tally) csp 743 src/dps8/dps8_console.c while (tally && csp->readp < csp->tailp) csp 745 src/dps8/dps8_console.c if (csp->bcd) csp 753 src/dps8/dps8_console.c if (csp->readp >= csp->tailp) csp 769 src/dps8/dps8_console.c c = (unsigned char) (* csp->readp ++); csp 788 src/dps8/dps8_console.c if (csp->readp >= csp->tailp) csp 790 src/dps8/dps8_console.c unsigned char c = (unsigned char) (* csp->readp ++); csp 798 src/dps8/dps8_console.c if (csp->readp < csp->tailp) csp 801 src/dps8/dps8_console.c (int) (csp->tailp - csp->readp)); csp 810 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 811 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 812 src/dps8/dps8_console.c csp->io_mode = opc_no_mode; csp 823 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 832 src/dps8/dps8_console.c c = accessGetChar (& csp->console_access); csp 882 src/dps8/dps8_console.c if (csp->io_mode != opc_read_mode) csp 886 src/dps8/dps8_console.c if (csp->attn_flush) csp 888 src/dps8/dps8_console.c csp->attn_pressed = true; csp 901 src/dps8/dps8_console.c csp 918 src/dps8/dps8_console.c if (! csp->simh_attn_pressed) csp 921 src/dps8/dps8_console.c csp->simh_attn_pressed = true; csp 922 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 939 src/dps8/dps8_console.c if (csp->io_mode != opc_read_mode) { csp 940 src/dps8/dps8_console.c if (csp->attn_flush) csp 942 src/dps8/dps8_console.c csp->attn_pressed = true; csp 964 src/dps8/dps8_console.c if (csp->simh_attn_pressed) csp 969 src/dps8/dps8_console.c if (csp->simh_buffer_cnt > 0) csp 971 src/dps8/dps8_console.c -- csp->simh_buffer_cnt; csp 972 src/dps8/dps8_console.c csp->simh_buffer[csp->simh_buffer_cnt] = 0; csp 983 src/dps8/dps8_console.c for (int i = 0; i < csp->simh_buffer_cnt; i ++) csp 984 src/dps8/dps8_console.c console_putchar (conUnitIdx, (char) (csp->simh_buffer[i])); csp 993 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 1002 src/dps8/dps8_console.c csp->simh_buffer[csp->simh_buffer_cnt] = 0; csp 1004 src/dps8/dps8_console.c char * cptr = csp->simh_buffer; csp 1026 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 1027 src/dps8/dps8_console.c csp->simh_buffer[0] = 0; csp 1028 src/dps8/dps8_console.c csp->simh_attn_pressed = false; csp 1038 src/dps8/dps8_console.c csp->simh_buffer_cnt = 0; csp 1039 src/dps8/dps8_console.c csp->simh_buffer[0] = 0; csp 1040 src/dps8/dps8_console.c csp->simh_attn_pressed = false; csp 1049 src/dps8/dps8_console.c if (csp->simh_buffer_cnt + 1 >= simh_buffer_sz) csp 1051 src/dps8/dps8_console.c csp->simh_buffer[csp->simh_buffer_cnt ++] = (char) ch; csp 1074 src/dps8/dps8_console.c if (csp->io_mode == opc_read_mode && csp 1075 src/dps8/dps8_console.c csp->autop != NULL) csp 1080 src/dps8/dps8_console.c if (csp->tailp >= csp->keyboardLineBuffer + sizeof (csp->keyboardLineBuffer)) csp 1086 src/dps8/dps8_console.c unsigned char c = * (csp->autop); csp 1089 src/dps8/dps8_console.c FREE (csp->auto_input); csp 1090 src/dps8/dps8_console.c csp->auto_input = NULL; csp 1091 src/dps8/dps8_console.c csp->autop = NULL; csp 1093 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 1094 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1108 src/dps8/dps8_console.c FREE (csp->auto_input); csp 1109 src/dps8/dps8_console.c csp->auto_input = NULL; csp 1110 src/dps8/dps8_console.c csp->autop = NULL; csp 1118 src/dps8/dps8_console.c csp->autop ++; csp 1123 src/dps8/dps8_console.c if (csp->echo) csp 1130 src/dps8/dps8_console.c * csp->tailp ++ = c; csp 1131 src/dps8/dps8_console.c if (csp->echo) csp 1140 src/dps8/dps8_console.c if (csp->io_mode == opc_read_mode && csp 1141 src/dps8/dps8_console.c csp->tailp == csp->keyboardLineBuffer) csp 1143 src/dps8/dps8_console.c if (csp->startTime + 30 < time (NULL)) csp 1146 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 1147 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1173 src/dps8/dps8_console.c if (csp->io_mode != opc_read_mode) csp 1178 src/dps8/dps8_console.c csp->attn_pressed = true; csp 1186 src/dps8/dps8_console.c if (csp->tailp > csp->keyboardLineBuffer) csp 1188 src/dps8/dps8_console.c * csp->tailp = 0; csp 1189 src/dps8/dps8_console.c -- csp->tailp; csp 1190 src/dps8/dps8_console.c if (csp->echo) csp 1199 src/dps8/dps8_console.c if (csp->echo) csp 1202 src/dps8/dps8_console.c for (unsigned char * p = csp->keyboardLineBuffer; p < csp->tailp; p ++) csp 1212 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1220 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1227 src/dps8/dps8_console.c if (csp->echo) csp 1238 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 1239 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1250 src/dps8/dps8_console.c if (csp->tailp >= csp->keyboardLineBuffer + sizeof (csp->keyboardLineBuffer)) csp 1253 src/dps8/dps8_console.c * csp->tailp ++ = (unsigned char) ch; csp 1254 src/dps8/dps8_console.c if (csp->echo) csp 1286 src/dps8/dps8_console.c opc_state_t * csp = console_state + con_unit_idx; csp 1305 src/dps8/dps8_console.c csp->io_mode = opc_no_mode; csp 1311 src/dps8/dps8_console.c csp->io_mode = opc_read_mode; csp 1313 src/dps8/dps8_console.c csp->echo = true; csp 1314 src/dps8/dps8_console.c csp->bcd = true; csp 1321 src/dps8/dps8_console.c csp->bcd = true; csp 1322 src/dps8/dps8_console.c csp->io_mode = opc_write_mode; csp 1329 src/dps8/dps8_console.c csp->io_mode = opc_read_mode; csp 1331 src/dps8/dps8_console.c csp->echo = true; csp 1332 src/dps8/dps8_console.c csp->bcd = false; csp 1339 src/dps8/dps8_console.c csp->bcd = false; csp 1340 src/dps8/dps8_console.c csp->io_mode = opc_write_mode; csp 1368 src/dps8/dps8_console.c csp->io_mode = opc_read_mode; csp 1370 src/dps8/dps8_console.c csp->echo = false; csp 1371 src/dps8/dps8_console.c csp->bcd = false; csp 1381 src/dps8/dps8_console.c if (csp->model == m6001 && p->isPCW) { csp 1394 src/dps8/dps8_console.c if (csp->model == m6001 && p->isPCW) { csp 1422 src/dps8/dps8_console.c switch (csp->io_mode) { csp 1429 src/dps8/dps8_console.c if (csp->tailp != csp->keyboardLineBuffer) { csp 1439 src/dps8/dps8_console.c csp->tailp = csp->keyboardLineBuffer; csp 1440 src/dps8/dps8_console.c csp->readp = csp->keyboardLineBuffer; csp 1441 src/dps8/dps8_console.c csp->startTime = time (NULL); csp 1442 src/dps8/dps8_console.c csp->tally = tally; csp 1443 src/dps8/dps8_console.c csp->daddr = daddr; csp 1444 src/dps8/dps8_console.c csp->unitp = unitp; csp 1445 src/dps8/dps8_console.c csp->chan = (int) chan; csp 1456 src/dps8/dps8_console.c if (csp->autop && (*csp->autop == 030 || *csp->autop == 031)) { // ^X ^Y csp 1501 src/dps8/dps8_console.c csp 1531 src/dps8/dps8_console.c if (csp->bcd) { csp 1590 src/dps8/dps8_console.c if (csp->autop && * csp->autop == 030) { csp 1594 src/dps8/dps8_console.c size_t expl = strcspn ((char *) (csp->autop + 1), "\030"); csp 1596 src/dps8/dps8_console.c if (strncmp (text, (char *) (csp->autop + 1), expl) == 0) { csp 1597 src/dps8/dps8_console.c csp->autop += expl + 2; csp 1608 src/dps8/dps8_console.c if (csp->autop && * csp->autop == 031) { csp 1612 src/dps8/dps8_console.c size_t expl = strcspn ((char *) (csp->autop + 1), "\031"); csp 1615 src/dps8/dps8_console.c strncpy (needle, (char *) csp->autop + 1, expl); csp 1618 src/dps8/dps8_console.c csp->autop += expl + 2; csp 1704 src/dps8/dps8_console.c opc_state_t * csp = console_state + devUnitIdx; csp 1725 src/dps8/dps8_console.c csp->autoaccept = (int) v; csp 1731 src/dps8/dps8_console.c csp->noempty = (int) v; csp 1737 src/dps8/dps8_console.c csp->attn_flush = (int) v; csp 1743 src/dps8/dps8_console.c csp->model = (enum console_model) v; csp 1760 src/dps8/dps8_console.c opc_state_t * csp = console_state + devUnitIdx; csp 1762 src/dps8/dps8_console.c sim_msg ("autoaccept=%d, ", csp->autoaccept); csp 1763 src/dps8/dps8_console.c sim_msg ("noempty=%d, ", csp->noempty); csp 1764 src/dps8/dps8_console.c sim_msg ("attn_flush=%d", csp->attn_flush); csp 1917 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 1918 src/dps8/dps8_console.c if (csp->console_access.loggedOn) csp 1919 src/dps8/dps8_console.c accessStartWrite (csp->console_access.client, str, csp 1924 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 1926 src/dps8/dps8_console.c if (csp->console_access.loggedOn) csp 1927 src/dps8/dps8_console.c accessStartWrite (csp->console_access.client, & ch, 1); csp 1931 src/dps8/dps8_console.c opc_state_t * csp = console_state + conUnitIdx; csp 1932 src/dps8/dps8_console.c if (csp->escapeSequence) { // Prior character was an escape csp 1933 src/dps8/dps8_console.c csp->escapeSequence = false; csp 1935 src/dps8/dps8_console.c if (csp->carrierPosition >= 1 && csp->carrierPosition <= 256) { csp 1936 src/dps8/dps8_console.c csp->tabStops[csp->carrierPosition] = true; csp 1939 src/dps8/dps8_console.c memset (csp->tabStops, 0, sizeof (csp->tabStops)); csp 1945 src/dps8/dps8_console.c csp->carrierPosition ++; csp 1947 src/dps8/dps8_console.c while (csp->carrierPosition < bufsize - 1) { csp 1949 src/dps8/dps8_console.c csp->carrierPosition ++; csp 1950 src/dps8/dps8_console.c if (csp->tabStops[csp->carrierPosition]) csp 1955 src/dps8/dps8_console.c csp->carrierPosition --; csp 1958 src/dps8/dps8_console.c csp->carrierPosition = 1; csp 1960 src/dps8/dps8_console.c csp->escapeSequence = true;