aboutsummaryrefslogtreecommitdiff
path: root/test/toxy/txt.wid
diff options
context:
space:
mode:
Diffstat (limited to 'test/toxy/txt.wid')
-rw-r--r--test/toxy/txt.wid9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/toxy/txt.wid b/test/toxy/txt.wid
new file mode 100644
index 0000000..29d7a3e
--- /dev/null
+++ b/test/toxy/txt.wid
@@ -0,0 +1,9 @@
+#> txt text
+#. -bg lightgreen -foreground brown -font .(helvetica 12 bold.) -width 40 -height 16
+#. @bang pd .| _cb [string map .(" " ".`.` ".) [.- get "0.0" end]] .`.:
+#. @float pd .| _cb [string map .(" " ".`.` ".) [.- get .#1.0 .#1.end]] .`.:
+#. @insert .- insert .#2 .#1
+#. @replace .- delete "0.0" end .: .- insert "0.0" .#1
+
+#. @store set .#1 [.- get 0.0 end]
+#. @restore insert 0.0 .#1