Kalgoorlie Retro Docs

Documentation for the Kalgoorlie Retro BBS, its games and servers

User Tools

Site Tools


saltbush:scripting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
saltbush:scripting [2026-11-10 01:22] – Saltbush Terminal 1.7.0 guides slatermsaltbush:scripting [2026-11-11 09:24] (current) – Saltbush Terminal 1.9.0 guides slaterm
Line 67: Line 67:
   * ''Disconnect()'', ''Connect(profile)'' and ''ConnectInTab(profile)'' open a new tab from a saved session id or a table/dict of options, ''Log(enabled, append, raw)''.   * ''Disconnect()'', ''Connect(profile)'' and ''ConnectInTab(profile)'' open a new tab from a saved session id or a table/dict of options, ''Log(enabled, append, raw)''.
   * ''Config.GetOption(name)'', ''Config.SetOption(name, value)'', ''Config.Save()'' (saves a saved session), ''Config.ConnectInTab()''. Option names are the setting names in the settings file (''font_size'', ''log_path'', ''hostname'' …); Lantern's names (''fontSize'', ''logPath'', ''host'', ''keyFile'' …) also work.   * ''Config.GetOption(name)'', ''Config.SetOption(name, value)'', ''Config.Save()'' (saves a saved session), ''Config.ConnectInTab()''. Option names are the setting names in the settings file (''font_size'', ''log_path'', ''hostname'' …); Lantern's names (''fontSize'', ''logPath'', ''host'', ''keyFile'' …) also work.
 +
 +==== BBS Directory ====
 +Low-level requests (Python ''_rpc(op, **values)'', Lua ''lantern.rpc(op, tab, values)''), the same as Lantern Terminal's:
 +  * ''bbsdir.open'', ''bbsdir.update'' (downloads the lists in the background), ''bbsdir.state'' (''visible'', ''busy'', ''status'', ''lists'', and ''entries'' in display order, each with its ''group'').
 +  * ''bbsdir.add'' with ''entry = {name, protocol, host, port, username, description}'' returns the new ''id''.
 +  * ''bbsdir.connect'' and ''bbsdir.save'' with ''name'' (or ''id''); for a BBS listed for SSH without a user name, ''via = "telnet"'' or ''via = "ssh"'' with ''username'' answers the question the window would ask.
 +  * ''bbsdir.remove'' and ''bbsdir.accept'' (Use new address) with ''name'' or ''id''.
  
 ===== SyncTERM-Lua scripts ===== ===== SyncTERM-Lua scripts =====
saltbush/scripting.txt · Last modified: by slaterm