Article View: alt.bbs.synchronet
Article #93Lua scripting patch for Syncterm(send/expect,recorder)
From: Heisenberg
Date: Mon, 19 Oct 2026 14:01
Date: Mon, 19 Oct 2026 14:01
46 lines
2928 bytes
2928 bytes
Hi everyone
I wanted to script some of my BBS logins and routine visits(log in, page past
the bulletins, check mail, log off), so i added a small Lua scripting layer to
SyncTERM 1.9. Its working well for me and i thought others might find it
usefull.
What it does:
send/expect scripting in Lua 5.4:expect("Login:, sendln(bbs/user),
with timeouts and if/then on whichever prompt showed up
background triggers, e.g. answer every "--More--" automaticly
plain text, Lua pattern, or PCRE regex matching
a recorder: Alt-R, use the BBS, Alt-R again and you get a script you can
replay (passwords are not saved to the file)
run a script with -x on the command line, from a new "Script" field on a
directory entry, or with Alt-S while connected
The script runs inside the terminal's main loop, so the screen and keyboard
stay live while its waiting and you can take over any time. Without a script,
nothing changes.
Source patches and a Linux build are here:
https://github.com/Heisenberg61/syncterm-lua
The first commit is the stock 1.9 source tarball, so the diff against it shows
the whole change. Its mostly one new file (script.c) plus small hooks in
term.c, bbslist.c, menu.c and the makefiles, and it builds without Lua via
WITHOUT_LUA=1.
I tested it with a script that can play through a full game of Lord 4.6 hands
off.. but its a little buggy so far
Its only been tested on Linux, but it _SHOULD_ compile and run on windows.
To be clear, this is an unofficial fork. Please send any problems with it to
me not to Deuce
Thanks
---
รพ Synchronet รพ Kalgoorlie Retro BBS, Kalgoolrie, WA
--- Synchronet 3.22a-Linux NewsLink 1.2
* Vertrauen - Riverside County, California - telnet://vert.synchro.net
Technical Details
Message-ID:
<6AD622A7.1468.dove-syncdisc@bbs.theiguru.au>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer05.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx03.iad.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer05.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx03.iad.POSTED!not-for-mail From: "Heisenberg" <heisenberg@HEISEN.remove-by9-this> Subject: Lua scripting patch for Syncterm(send/expect,recorder) Message-ID: <6AD622A7.1468.dove-syncdisc@bbs.theiguru.au> X-Comment-To: All Organization: Kalgoorlie Retro BBS Newsgroups: alt.bbs.synchronet X-FTN-PID: Synchronet 3.21b-Linux master/5165d2e68 Jan 21 2026 GCC 13.3.0 X-FTN-MSGID: 57252.sync@1:103/705 2f3c3e26 X-FTN-CHRS: CP437 2 WhenImported: 20261019140111Z 0000 WhenExported: 20261019142607Z 0000 ExportedFrom: HEISEN dove-syncdisc 1468 User-Agent: Synchronet msgeditor master/5165d2e68 Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: vert.synchro.net [Synchronet 3.22a-Linux NewsLink 1.2] Lines: 46 X-Complaints-To: https://www.astraweb.com/aup NNTP-Posting-Date: Mon, 19 Oct 2026 14:26:12 UTC Date: Mon, 19 Oct 2026 14:01:11 +0000 X-Received-Bytes: 2688