summaryrefslogtreecommitdiff
path: root/test.rc
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2024-02-16 23:26:32 +0000
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2024-02-16 23:26:32 +0000
commitc51962a648b3f38fc378ad0081b1d1aa037142d5 (patch)
tree4cf448275064f7ddbd0ac2a429d9fe5449755102 /test.rc
parentab90a480eb5233abc4d7122739c24656dd42cc94 (diff)
Implement mouse menus
Setup a menu/some menus by writing to an elements props/menus file
Diffstat (limited to 'test.rc')
-rwxr-xr-xtest.rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/test.rc b/test.rc
index 46710f8..9c04f75 100755
--- a/test.rc
+++ b/test.rc
@@ -68,4 +68,9 @@ for(f in `{walk /mnt/gui | grep $dir'/[0-9]+/event'}){
printevents $f <$f >[2]/dev/null &
}
+# Create a right-click menu on the text field
+echo 'R/this is a/right click/menu' >> /mnt/gui/0/props/menus
+# Also attach an event printer to the text field
+printevents 'text field' </mnt/gui/0/event >[2]/dev/null &
+
wait