Rename esc_printer_actor to esc-printer-driver
This commit is contained in:
parent
59ca3d2443
commit
9e143c8b0a
29
README.md
29
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 `<printer @cap #:any @device-path string>` 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 `<print {}>` step with a capability that prints strings it receives as messages.
|
||||
While the `<bold>` or `<italic>` is asserted to this entity the printer will go into the corresponding font mode (if the printer supports it).
|
||||
|
||||
Sample Syndicate server script:
|
||||
```
|
||||
<require-service <daemon printer>>
|
||||
|
||||
? <printer ?printer> [
|
||||
$log ?? <log "-" { line: ?line }> [
|
||||
$printer ! $text
|
||||
$printer ! "\r\n"
|
||||
# Print log messages.
|
||||
]
|
||||
let ?printer-resolver = dataspace
|
||||
$printer-resolver ? <accepted ?printer> [
|
||||
$printer <italic>
|
||||
$printer ! "printer resolved\r\n"
|
||||
]
|
||||
|
||||
|
||||
? <service-object <daemon printer> ?cap> [
|
||||
$cap ? <printer ?printer ?device> [
|
||||
$config <printer $printer>
|
||||
]
|
||||
$cap <resolve <printer {}> $printer-resolver>
|
||||
$log ! <log "-" { line: "printer started"}>
|
||||
]
|
||||
|
||||
<daemon printer {
|
||||
argv: [ "/bin/esc_printer_actor" "/dev/usb/lp0"]
|
||||
argv: [ "/bin/esc-printer-driver" "/dev/usb/lp0"]
|
||||
protocol: application/syndicate
|
||||
clearEnv: #t
|
||||
}>
|
||||
```
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue