summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorglenda <glenda@cirno>2022-09-11 09:42:42 +0000
committerglenda <glenda@cirno>2022-09-11 09:42:42 +0000
commite59277504e7b7441729a2c6a097c72eb4142704d (patch)
treefd84f5e3ce42027efbf2cccbf1a5dd67595c3ca4 /runtime
parent759d2d541d943fe95138789477fa6faddf6e3e08 (diff)
Better handling of shy results in the session
Diffstat (limited to 'runtime')
-rw-r--r--runtime/start.apl11
1 files changed, 6 insertions, 5 deletions
diff --git a/runtime/start.apl b/runtime/start.apl
index d65d0bc..64b8be8 100644
--- a/runtime/start.apl
+++ b/runtime/start.apl
@@ -8,9 +8,11 @@
}
handleMain←{
0::⍺
- data←⍵
- ⎕rawio←data
- ⎕rawio←⎕ucs 10
+ (shy data)←⍵
+ _←{
+ ⎕rawio←data
+ ⎕rawio←⎕ucs 10
+ } IF ~shy
⎕rawio←prompt
≢prompt
}
@@ -28,8 +30,7 @@
data←⍵
⎕rawio←data
⎕rawio←⎕ucs 10
- ⎕rawio←prompt
- ≢prompt
+ 0
}
handleQuoteQuad←{
0::⍺