1
0
mirror of https://github.com/simh/simh.git synced 2026-05-15 01:51:47 +00:00

CONSOLE: Support changing console DEVICE

Also behave correctly after a SET CONSOLE NOSERIAL command is entered.
This commit is contained in:
Mark Pizzolato
2026-03-31 16:06:15 -10:00
parent 627e6a6b13
commit 6e279976f6
2 changed files with 8 additions and 2 deletions

View File

@@ -2758,7 +2758,8 @@ if (cptr && (*cptr != 0)) /* too many arguments? *
return SCPE_2MARG;
if (sim_con_ldsc.serport == 0) /* ignore if already closed */
return SCPE_OK;
return tmxr_close_master (&sim_con_tmxr); /* close master socket */
tmxr_close_master (&sim_con_tmxr); /* close master socket */
return tmxr_attach (&sim_con_tmxr, &sim_con_unit, "CONSOLE");
}
/* Show the console expect rules and state */