From 9e143c8b0accc762ce6964f954250d2e66332988 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Mon, 3 Jun 2024 17:00:16 +0300 Subject: [PATCH] Rename esc_printer_actor to esc-printer-driver --- README.md | 29 ++++++++----------- sbom.json | 4 +-- ...inter_actor.nim => esc_printer_driver.nim} | 0 3 files changed, 14 insertions(+), 19 deletions(-) rename src/{esc_printer_actor.nim => esc_printer_driver.nim} (100%) diff --git a/README.md b/README.md index f99e3cc..dbe3a7c 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,6 @@ A Syndicate multitool that includes a number of different actors that become active via configuration. -Think of it as a Busybox for Syndicate, if Busybox was created before POSIX. - Whether you use a single instance for many protocols or many specialized instances is up to you. ### Cache @@ -241,36 +239,33 @@ Examples: --- -## esc_printer_actor +## esc-printer-driver -A basic [ESC/P](https://en.wikipedia.org/wiki/ESC/P) printer controller. +A basic [ESC/P](https://en.wikipedia.org/wiki/ESC/P) printer driver. -Takes a path to a printer device file as a command line argument and publishes a `` to its environment. -The capability in this assertion is an entity that prints the strings it receives as messages. +Takes a path to a printer device file as a command line argument. +The driver speaks the gatekeeper protocol and responds to the `` step with a capability that prints strings it receives as messages. While the `` or `` is asserted to this entity the printer will go into the corresponding font mode (if the printer supports it). Sample Syndicate server script: ``` > -? [ - $log ?? [ - $printer ! $text - $printer ! "\r\n" - # Print log messages. - ] +let ?printer-resolver = dataspace +$printer-resolver ? [ + $printer + $printer ! "printer resolved\r\n" ] - ? ?cap> [ - $cap ? [ - $config - ] + $cap $printer-resolver> + $log ! ] ``` diff --git a/sbom.json b/sbom.json index 62cfb71..f5d4ee4 100644 --- a/sbom.json +++ b/sbom.json @@ -42,8 +42,8 @@ "value": "mintsturdyref" }, { - "name": "nim:bin:esc-printer-actor", - "value": "esc_printer_actor" + "name": "nim:bin:esc-printer-driver", + "value": "esc_printer_driver" }, { "name": "nim:bin:msg", diff --git a/src/esc_printer_actor.nim b/src/esc_printer_driver.nim similarity index 100% rename from src/esc_printer_actor.nim rename to src/esc_printer_driver.nim