Skip to content

robbiew/go-autosig-talisman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Signature Editor for Talisman BBS

Auto Signature Mod for Talisman BBS

This simple, go-based program allows you to add an Auto Sig editor to your Talisman BBS menus -- as a door.

It incorporates a modified vesion of the kilo editor.

I've only tested this on Linux 64 (Ubuntu 20.04). Won't work on Windows.

To set up:

  • Make sure Talisman is installed and working 😃
  • Compile the program (go build .) -- or, use the pre-built binary in this repo for Linux 64 only
  • Create /bbs/doors/autosig directory (or wherever Talisman is installed)
  • Copy autosig (binary), header.ans, start.sh to the above directory
  • Set executable permissions (chmod +x autosig start.sh)
  • Add AutoSig item to a Talisman menu, and its edit path (e.g. this located in /bbs/menus/message.toml if you want it on the Message Menu)
[[menuitem]]
command = "RUNDOOR"
data = "/home/robbiew/bbs/doors/autosig/start.sh"
hotkey = "Z"

Talisman will automatically pass the node number to the start.sh file, and the autosig program will use this to grab the drop file (e.g. from ../../temp/$1/door.sys). The drop file contains that node's logged-in user id and name, and the id will be used to retrieve the "signature" row in Talisman's user database (sqlite3) (e.g. from ../../data/users.sqlite3).

If the 'signature' value doesn't exist, it will create it on save. If it exists, it will updated it.

For display purposes, the autosig program translates between color "pipe" codes (e.g. "|02") that Talisman uses internally, and actual ansi escape codes for display in the terminal program.

I have not tested for background colors yet.

TO DO:

  • Publish on github
  • Test on Windows, Pi
  • Add extended ansi characters, like blocks and lines...
  • Allow for re-editing the sig before exiting
  • Match the editor's style to Talisman's internal full-screen editor

About

Auto Signature Mod for Talisman BBS

Resources

Stars

Watchers

Forks

Packages

No packages published