1
0
mirror of https://github.com/simh/simh.git synced 2026-04-17 08:41:28 +00:00

SCP: Add SET CONSOLE TELNET=CONNECT to open a window running telnet to console

This commit is contained in:
Mark Pizzolato
2022-12-30 21:34:07 -10:00
parent ca79faf508
commit 135e69c4a1
6 changed files with 95 additions and 10 deletions

View File

@@ -229,15 +229,8 @@ if ((f = fopen (sim_config, "w"))) {
fprintf (f, "set cpu 64\n");
fprintf (f, "set console telnet=buffered\n");
fprintf (f, "set console -u telnet=1927\n");
/* Start a terminal emulator for the console port */
#if defined(_WIN32)
fprintf (f, "set env PATH=%%PATH%%;%%ProgramFiles%%\\PuTTY;%%ProgramFiles(x86)%%\\PuTTY\n");
fprintf (f, "! start PuTTY telnet://localhost:1927\n");
#elif defined(__linux) || defined(__linux__)
fprintf (f, "! nohup xterm -e 'telnet localhost 1927' &\n");
#elif defined(__APPLE__)
fprintf (f, "! osascript -e 'tell application \"Terminal\" to do script \"telnet localhost 1927; exit\"'\n");
#endif
fprintf (f, "# Start a terminal emulator for the console port\n");
fprintf (f, "set console telnet=connect\n");
fclose (f);
}