Skip to content

calcterm 0.4-alpha: telnet

Pre-release
Pre-release

Choose a tag to compare

@ctorkildson-netizen ctorkildson-netizen released this 16 Nov 22:12
· 13 commits to main since this release
438ed0e

calcterm 0.4 adds telnet over Wi-Fi (Pico 2 W): pick a host from a list and you're logged in, with no serial cable.

It's still an alpha: used daily by one person on one PicoCalc, against Ubuntu.

What's new

  • Telnet. Alt+F2 opens a list of hosts kept in /calcterm/hosts; pick one, or just type an address (192.168.1.50, or bbs.example.org:2323), and one that connects is added to the list. Alt+F2 again hangs up, and when the host hangs up calcterm goes back to the serial port.
  • Wi-Fi from /ntp/ntp.cfg, the file the PicoCalc shell's NTP command uses, so the network's name and password are set up in one place. Wi-Fi only comes on when you first connect.
  • The host is told your screen size, and told again when Alt+F1 switches between 64 and 80 columns, so calcsize isn't needed over telnet. It's also told the terminal type, calcterm.
  • ZMODEM works over telnet just as over serial: sz and rz on the host.
  • ANSI art. Block characters and shades are drawn as shapes that join up, and boards that send the IBM PC's own character set (code page 437) instead of UTF-8 come out right. Telnet BBSes look like they should.
  • Screenshots (Alt+F4) also save a .raw file: the last 16 KB the host sent, exactly as received. If something draws wrongly, that's the file to send with the report.
  • Quitting leaves the Wi-Fi network properly, so the next program you run joins at once instead of waiting on the router.

A telnet server on Ubuntu

sudo apt install telnetd

If it doesn't answer on port 23 afterwards, sudo update-inetd --enable telnet and restart inetutils-inetd; the README has the details. Telnet sends everything, password included, as plain text, so keep it to your own network. SSH is planned.

Installing

Copy calcterm.uf2 to the card's pico2-apps folder, replacing 0.3; your settings carry over. calcsize.sh and calcterm.ti are attached as before (unchanged).

Known limits

  • Telnet needs a Pico 2 W; on a Pico 2, Alt+F2 says there's no Wi-Fi.
  • Names ending in .local aren't looked up; use the address.

Next

A Bluetooth keyboard, alongside Wi-Fi (0.5), then SSH.

Built on Blair Leduc's picocalc-text-starter and picocalc-shell (which also reads /ntp/ntp.cfg), with the Pico SDK's lwIP for TCP; telnet tested against inetutils telnetd. The build is af20930 (shown on the sign-on line).