2015-12-10 07:05:58 +03:00
|
|
|
::
|
2016-02-11 03:41:28 +03:00
|
|
|
:::: /hoon/sole/sur
|
2016-11-17 04:42:58 +03:00
|
|
|
::
|
2018-12-11 22:38:44 +03:00
|
|
|
^?
|
|
|
|
|%
|
2015-03-28 13:57:02 +03:00
|
|
|
++ sole-action :: sole to app
|
2015-12-14 10:58:14 +03:00
|
|
|
$% :: {$abo ~} :: reset interaction
|
2015-12-09 04:54:26 +03:00
|
|
|
{$det sole-change} :: command line edit
|
2018-03-19 07:18:20 +03:00
|
|
|
{$ret ~} :: submit and clear
|
|
|
|
{$clr ~} :: exit context
|
2019-01-18 08:37:34 +03:00
|
|
|
== ::
|
2015-12-09 04:54:26 +03:00
|
|
|
++ sole-buffer (list @c) :: command state
|
2015-03-28 13:57:02 +03:00
|
|
|
++ sole-change :: network change
|
2015-12-20 23:50:45 +03:00
|
|
|
$: ler/sole-clock :: destination clock
|
|
|
|
haw/@uvH :: source hash
|
|
|
|
ted/sole-edit :: state change
|
2015-02-09 00:22:33 +03:00
|
|
|
== ::
|
2015-12-20 23:50:45 +03:00
|
|
|
++ sole-clock {own/@ud his/@ud} :: vector clock
|
2015-03-28 13:57:02 +03:00
|
|
|
++ sole-edit :: shared state change
|
2015-12-20 23:50:45 +03:00
|
|
|
$% {$del p/@ud} :: delete one at
|
|
|
|
{$ins p/@ud q/@c} :: insert at
|
|
|
|
{$mor p/(list sole-edit)} :: combination
|
2018-03-19 07:18:20 +03:00
|
|
|
{$nop ~} :: no-op
|
2015-12-20 23:50:45 +03:00
|
|
|
{$set p/sole-buffer} :: discontinuity
|
2015-02-09 00:22:33 +03:00
|
|
|
== ::
|
2015-03-28 13:57:02 +03:00
|
|
|
++ sole-effect :: app to sole
|
2018-03-19 07:18:20 +03:00
|
|
|
$% {$bel ~} :: beep
|
2015-12-21 00:16:39 +03:00
|
|
|
{$blk p/@ud q/@c} :: blink+match char at
|
2018-03-19 07:18:20 +03:00
|
|
|
{$clr ~} :: clear screen
|
2015-12-09 04:54:26 +03:00
|
|
|
{$det sole-change} :: edit command
|
2015-12-20 23:50:45 +03:00
|
|
|
{$err p/@ud} :: error point
|
2018-04-23 05:41:24 +03:00
|
|
|
{$klr p/styx} :: styled text line
|
2015-12-20 23:50:45 +03:00
|
|
|
{$mor p/(list sole-effect)} :: multiple effects
|
2018-03-19 07:18:20 +03:00
|
|
|
{$nex ~} :: save clear command
|
2015-12-09 04:54:26 +03:00
|
|
|
{$pro sole-prompt} :: set prompt
|
2015-12-20 23:50:45 +03:00
|
|
|
{$sag p/path q/*} :: save to jamfile
|
|
|
|
{$sav p/path q/@} :: save to file
|
|
|
|
{$tan p/(list tank)} :: classic tank
|
|
|
|
:: {$taq p/tanq} :: modern tank
|
|
|
|
{$txt p/tape} :: text line
|
|
|
|
{$url p/@t} :: activate url
|
2015-02-09 00:22:33 +03:00
|
|
|
== ::
|
2015-03-28 13:57:02 +03:00
|
|
|
++ sole-command :: command state
|
2015-12-20 23:50:45 +03:00
|
|
|
$: pos/@ud :: cursor position
|
2019-01-18 08:37:34 +03:00
|
|
|
say/sole-share :: cursor
|
2015-02-09 09:25:00 +03:00
|
|
|
== ::
|
2015-03-28 13:57:02 +03:00
|
|
|
++ sole-prompt :: prompt definition
|
2015-12-20 23:50:45 +03:00
|
|
|
$: vis/? :: command visible
|
|
|
|
tag/term :: history mode
|
2018-04-23 05:41:24 +03:00
|
|
|
cad/styx :: caption
|
2015-02-09 09:25:00 +03:00
|
|
|
== ::
|
2015-03-28 13:57:02 +03:00
|
|
|
++ sole-share :: symmetric state
|
2015-12-20 23:50:45 +03:00
|
|
|
$: ven/sole-clock :: our vector clock
|
|
|
|
leg/(list sole-edit) :: unmerged edits
|
|
|
|
buf/sole-buffer :: sole state
|
2015-02-09 00:22:33 +03:00
|
|
|
== ::
|
2015-09-12 00:15:25 +03:00
|
|
|
:: ::
|
|
|
|
:: ::
|
|
|
|
++ sole-dialog :: standard dialog
|
2016-02-04 10:12:23 +03:00
|
|
|
|* out/$-(* *) :: output structure
|
|
|
|
$-(sole-input (sole-result out)) :: output function
|
2015-09-12 00:15:25 +03:00
|
|
|
:: ::
|
|
|
|
++ sole-input tape :: prompt input
|
|
|
|
++ sole-result :: conditional result
|
2016-02-04 10:12:23 +03:00
|
|
|
|* out/$-(* *) :: output structure
|
2015-12-14 10:58:14 +03:00
|
|
|
$@(@ud (sole-product out)) :: error position
|
2015-09-12 00:15:25 +03:00
|
|
|
:: ::
|
|
|
|
++ sole-product :: success result
|
2016-02-04 10:12:23 +03:00
|
|
|
|* out/$-(* *) ::
|
2019-01-18 08:37:34 +03:00
|
|
|
%+ pair (list tank) ::
|
2015-09-12 00:15:25 +03:00
|
|
|
%+ each (unit out) :: ~ is abort
|
|
|
|
(pair sole-prompt (sole-dialog out)) :: ask and continue
|
|
|
|
:: ::
|
|
|
|
++ sole-gen :: XX virtual type
|
2016-02-04 10:12:23 +03:00
|
|
|
$% {$say $-((sole-args) (cask))} :: direct noun
|
|
|
|
{$ask $-((sole-args) (sole-product (cask)))} :: dialog
|
2015-09-12 00:15:25 +03:00
|
|
|
== ::
|
|
|
|
++ sole-args :: generator arguments
|
2017-10-24 00:41:27 +03:00
|
|
|
|* _[* *] ::
|
|
|
|
{{now/@da eny/@uvJ bek/beak} {,+<- ,+<+}} ::
|
2015-09-12 00:15:25 +03:00
|
|
|
:: ::
|
|
|
|
:: ::
|
2015-02-09 00:22:33 +03:00
|
|
|
--
|