shoe: include example usage of %klr sole-effect

Seems worthwhile to signal the existence of richer console output.

Also adds a brief description of what the example app does.
This commit is contained in:
Fang 2020-05-26 23:45:45 +02:00
parent 127355c381
commit 4b9ec0c9a4
No known key found for this signature in database
GPG Key ID: EB035760C1BBA972

View File

@ -1,5 +1,8 @@
:: shoe: example usage of /lib/shoe
::
:: the app supports one command: "demo".
:: running this command renders some text on all sole clients.
::
/+ shoe, verb, dbug, default-agent
|%
+$ state-0 [%0 ~]
@ -49,8 +52,11 @@
++ on-command
|= [sole-id=@ta =command]
^- (quip card _this)
:_ this
[%shoe ~ %sole %txt "{(scow %p src.bowl)} ran the command"]~
=- [[%shoe ~ %sole -]~ this]
=/ =tape "{(scow %p src.bowl)} ran the command"
?. =(src our):bowl
[%txt tape]
[%klr [[`%br ~ `%g] [(crip tape)]~]~]
::
++ can-connect
|= sole-id=@ta