SCP: Cleanup minor remote console behaviors (stutter prompt and broken single mode command)
This commit is contained in:
parent
611a7e94f0
commit
5c45aec68f
1 changed files with 12 additions and 7 deletions
|
@ -705,15 +705,18 @@ for (i=(was_stepping ? sim_rem_step_line : 0);
|
|||
tmxr_send_buffered_data (lpj); /* flush any buffered data */
|
||||
}
|
||||
lp = &sim_rem_con_tmxr.ldsc[i];
|
||||
if (!master_session)
|
||||
tmxr_linemsg (lp, "\r\nSimulator paused.\r\n");
|
||||
if (sim_rem_read_timeouts[i])
|
||||
if (sim_rem_read_timeouts[i]) {
|
||||
tmxr_linemsgf (lp, "Simulation will resume automatically if input is not received in %d seconds\n", sim_rem_read_timeouts[i]);
|
||||
tmxr_linemsgf (lp, "\r\n%s", sim_prompt);
|
||||
tmxr_send_buffered_data (lp); /* flush any buffered data */
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ((c == '\n') || /* Ignore bare LF between commands (Microsoft Telnet bug) */
|
||||
(c == '\r')) /* Ignore empty commands */
|
||||
if ((sim_rem_buf_ptr[i] == 0) && /* At beginning of input line */
|
||||
((c == '\n') || /* Ignore bare LF between commands (Microsoft Telnet bug) */
|
||||
(c == '\r'))) /* Ignore empty commands */
|
||||
continue;
|
||||
if ((c == '\004') || (c == '\032')) { /* EOF character (^D or ^Z) ? */
|
||||
tmxr_linemsgf (lp, "\r\nGoodbye\r\n");
|
||||
|
@ -758,7 +761,7 @@ for (i=(was_stepping ? sim_rem_step_line : 0);
|
|||
got_command = TRUE;
|
||||
break;
|
||||
}
|
||||
sim_os_ms_sleep (100);
|
||||
sim_os_ms_sleep (50);
|
||||
tmxr_poll_rx (&sim_rem_con_tmxr);/* poll input */
|
||||
continue;
|
||||
}
|
||||
|
@ -943,9 +946,11 @@ for (i=(was_stepping ? sim_rem_step_line : 0);
|
|||
if (cmdp && (cmdp->action == &x_continue_cmd))
|
||||
sim_rem_single_mode[i] = TRUE;
|
||||
else {
|
||||
if (!sim_rem_single_mode[i]) {
|
||||
tmxr_linemsgf (lp, "%s", sim_prompt);
|
||||
tmxr_send_buffered_data (lp);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (cmdp && (cmdp->action == &x_step_cmd)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue