diff options
| author | Omar Rizwan <omar@omar.website> | 2023-09-06 04:45:43 +0000 |
|---|---|---|
| committer | Omar Rizwan <omar@omar.website> | 2023-09-06 04:45:43 +0000 |
| commit | 2afdf58664d2aa2fd583115aa3d5ebb046ca6c0d (patch) | |
| tree | a0310962cf579348ce83ee9bae403b12ca4b96df /virtual-programs | |
| parent | A more reactive terminal (diff) | |
| download | folk-2afdf58664d2aa2fd583115aa3d5ebb046ca6c0d.tar.gz folk-2afdf58664d2aa2fd583115aa3d5ebb046ca6c0d.zip | |
terminal: lambda -> body
Diffstat (limited to 'virtual-programs')
| -rw-r--r-- | virtual-programs/terminal.folk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/virtual-programs/terminal.folk b/virtual-programs/terminal.folk index 16741e9c..3fb335b5 100644 --- a/virtual-programs/terminal.folk +++ b/virtual-programs/terminal.folk @@ -69,11 +69,11 @@ When /anyone/ wishes /thing/ is a terminal spawning /cmd/ { On unmatch { ::unmatchTerminal $thing $cmd } When $::thisProcess has step count /c/ { - set lambda { + set body { Wish region $region is labelled [Terminal::read $term] } - When $thing has terminal region /region/ $lambda - When /nobody/ claims $thing has terminal region /x/ & $thing has region /region/ $lambda + When $thing has terminal region /region/ $body + When /nobody/ claims $thing has terminal region /x/ & $thing has region /region/ $body } When /anyone/ claims $thing has keyboard input \ |
