Redirect Console CPM Telnet Server
Posted: Fri Mar 31, 2023 2:18 am
With the Internet Adapter 2023.03.30.00+ and Cloud CPM 7.7+, you can redirect the console input and output to a TCP telnet server. Oh, and it supports up to 32 connections at the same time, so you can telnet into your nabu and control it from multiple computers, etc...
Use this with the accompanying adm3 emulator software: viewtopic.php?t=72
(See CPM input/output mapping: https://www.seasip.info/Cpm/iobyte.html)
TCP Console Output Device: UC1:
TCP Reader Input Device UR1:
TESTING
First, let's test to see how this works...
1) Enable TCP Server in RetroNET in the Internet Adapter settings window
2) Go to A: User Area #1 and type TCPSRVR. The program will load
3) Telnet to your Internet Adapter's computer. You can do that locally by simply TELNET 127.0.0.1 5815
You can now type on either the NABU or the Telnet window and see the text back and forth
4) Press CTRL-C to exit the application
SEND CONSOLE OUTPUT
Don't close your telnet window yet! Now that you have tested and seen how this works, let's redirect just the CPM console output to the same telnet window.
1) Make sure you're on A: User Area 0
2) Type STAT CON:=UC1:
3) Now you can type on the NABU keyboard and see the output in the TELNET session
GET CONSOLE INPUT
Now let's get the input from the TELNET window. That is done from the READER device and assigning it to the UR1: device
1) type STAT RDR:=UR1:
2) Now you can use the telnet session entirely (I recommend using putty. If you use the windows telnet, you'll need to press CTRL-ENTER) otherwise the wrong enter code is set
RESTORE TO CRT CONSOLE
This is how you can restore the input and output to the console. Or, you can just restart CPM hehe
1) type STAT CON:=CRT:
this will redirect all output to the CRT. So the next stuff you type won't come out of the telnet window
2) type STAT RDR:=TTY:
this will use the NABU tty input device
Use this with the accompanying adm3 emulator software: viewtopic.php?t=72
(See CPM input/output mapping: https://www.seasip.info/Cpm/iobyte.html)
TCP Console Output Device: UC1:
TCP Reader Input Device UR1:
TESTING
First, let's test to see how this works...
1) Enable TCP Server in RetroNET in the Internet Adapter settings window
2) Go to A: User Area #1 and type TCPSRVR. The program will load
3) Telnet to your Internet Adapter's computer. You can do that locally by simply TELNET 127.0.0.1 5815
You can now type on either the NABU or the Telnet window and see the text back and forth
4) Press CTRL-C to exit the application
SEND CONSOLE OUTPUT
Don't close your telnet window yet! Now that you have tested and seen how this works, let's redirect just the CPM console output to the same telnet window.
1) Make sure you're on A: User Area 0
2) Type STAT CON:=UC1:
3) Now you can type on the NABU keyboard and see the output in the TELNET session
GET CONSOLE INPUT
Now let's get the input from the TELNET window. That is done from the READER device and assigning it to the UR1: device
1) type STAT RDR:=UR1:
2) Now you can use the telnet session entirely (I recommend using putty. If you use the windows telnet, you'll need to press CTRL-ENTER) otherwise the wrong enter code is set
RESTORE TO CRT CONSOLE
This is how you can restore the input and output to the console. Or, you can just restart CPM hehe
1) type STAT CON:=CRT:
this will redirect all output to the CRT. So the next stuff you type won't come out of the telnet window
2) type STAT RDR:=TTY:
this will use the NABU tty input device