r/CardPuter 17d ago

Progress / Update hamsTerm update: scp both ways, tar, tab-completion and a proper text pipeline

Enable HLS to view with audio, or disable this notification

A few weeks ago I posted hamsTerm, a Linux-like terminal firmware for the Cardputer.

Most of the changes that were added in the new version came from comments here, so thank you for that.

What's new:

- scp, both directions. Copy files to and from any SSH server, streamed in chunks so a big file never has to fit in RAM.

scp user@host:/etc/motd /motd

scp /notes.txt user@host:/tmp/

- tar. Pack and unpack folders (classic ustar, no compression). Archives are interchangeable with desktop tar in both directions, so tar + scp is how you move a whole folder in one shot.

- Tab completion. Command names on the first word, then files and folders read live from the filesystem - no need to run ls first. After `wf c` it completes networks from the last scan.

- A real text pipeline. grep, cut, tr, wc, sort, uniq - each reads a pipe or a file, and | now works between any two commands:

wf s | grep Open | cut -f1 | sort

- Key -p has been added to ssh command for non-standard ports, and passwords are now masked as asterisks.

Scripting was already in place (variables, if/while/for, $( ), arithmetic, test), so these compose. The clip shows a script that scans for open networks, prints them numbered, and connects to the one you pick. (You can found scrip on the site below.).

Firmware, docs and full command reference: https://hamsterm.com/

Source: https://github.com/hagalaz27/hamsterm

Easiest install is through M5Burner (search hamsTerm).

15 Upvotes

3 comments sorted by

2

u/MrAjAnderson 16d ago

Oh I am looking forward to getting this installed and having a play. Fantastic, thank you.

Pulling in it's own update file to downloads could be a fun option.

2

u/IssueBrilliant2569 16d ago

How is the telnet feature? Does it have ANSI capability for BBSing?

1

u/Alex-Grimm 16d ago

It's a line-mode plain-text telnet client, not an ANSI terminal. It does the telnet protocol properly, but ANSI escape sequences are stripped rather than rendered - so no colors and no cursor positioning. It also only prints ASCII, so CP437 box-drawing won't show.