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.
|
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.
|
Whether you use a single instance for many protocols or many specialized instances is up to you.
|
||||||
|
|
||||||
### Cache
|
### 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.
|
Takes a path to a printer device file as a command line argument.
|
||||||
The capability in this assertion is an entity that prints the strings it receives as messages.
|
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).
|
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:
|
Sample Syndicate server script:
|
||||||
```
|
```
|
||||||
<require-service <daemon printer>>
|
<require-service <daemon printer>>
|
||||||
|
|
||||||
? <printer ?printer> [
|
let ?printer-resolver = dataspace
|
||||||
$log ?? <log "-" { line: ?line }> [
|
$printer-resolver ? <accepted ?printer> [
|
||||||
$printer ! $text
|
$printer <italic>
|
||||||
$printer ! "\r\n"
|
$printer ! "printer resolved\r\n"
|
||||||
# Print log messages.
|
|
||||||
]
|
]
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
? <service-object <daemon printer> ?cap> [
|
? <service-object <daemon printer> ?cap> [
|
||||||
$cap ? <printer ?printer ?device> [
|
$cap <resolve <printer {}> $printer-resolver>
|
||||||
$config <printer $printer>
|
$log ! <log "-" { line: "printer started"}>
|
||||||
]
|
|
||||||
]
|
]
|
||||||
|
|
||||||
<daemon printer {
|
<daemon printer {
|
||||||
argv: [ "/bin/esc_printer_actor" "/dev/usb/lp0"]
|
argv: [ "/bin/esc-printer-driver" "/dev/usb/lp0"]
|
||||||
protocol: application/syndicate
|
protocol: application/syndicate
|
||||||
|
clearEnv: #t
|
||||||
}>
|
}>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -42,8 +42,8 @@
|
||||||
"value": "mintsturdyref"
|
"value": "mintsturdyref"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nim:bin:esc-printer-actor",
|
"name": "nim:bin:esc-printer-driver",
|
||||||
"value": "esc_printer_actor"
|
"value": "esc_printer_driver"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nim:bin:msg",
|
"name": "nim:bin:msg",
|
||||||
|
|
Loading…
Reference in New Issue