Skip to content

calcterm 0.2-alpha: 80 columns

Pre-release
Pre-release

Choose a tag to compare

@ctorkildson-netizen ctorkildson-netizen released this 08 Nov 22:42
· 36 commits to main since this release
df9304e

calcterm 0.2 adds an 80-column mode: the whole screen in a small 4×10 font, so programs that expect an 80-column terminal (Midnight Commander, vim's split windows, wide ls and htop output) fit without wrapping.

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

What's new

  • 80 columns. Alt+F1 switches between 64 columns (the 5×10 font, as before) and 80 (calcterm's own 4×10 font, white on black, no grey). The setup menu (Alt+F5) has a Width line too (W), and the choice is saved with the other settings.
  • calcsize, for the host. A serial line can't tell Linux the screen's size, so extras/calcsize.sh asks calcterm: it moves the cursor to the far corner, asks where it ended up, and sets the size from the answer. Add it to ~/.bashrc (cat calcsize.sh >> ~/.bashrc) and it runs at each login on a serial line; type calcsize again after Alt+F1. No need for resize from the xterm package.
  • The sign-on line now mentions Alt+F1.

Installing

Copy calcterm.uf2 to the card's pico2-apps folder, replacing 0.1, and start it from UF2 Loader or the shell. Your settings carry over. For the host, calcsize.sh and the terminfo entry calcterm.ti are attached; the README has the Linux set-up.

Known limits

  • Programs already running when the width changes keep the old width until they're restarted: quit, press Alt+F1, run calcsize, start them again.
  • The keyboard firmware still keeps Alt+, Alt+. Alt+Space and Alt+B for itself.

Next

0.3 brings file transfer by ZMODEM: sz file on the host sends a file to the PicoCalc's card, rz fetches one from it.

Built on Blair Leduc's picocalc-text-starter and picocalc-shell. The build is df9304e (shown on the sign-on line).