From c51962a648b3f38fc378ad0081b1d1aa037142d5 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Fri, 16 Feb 2024 23:26:32 +0000 Subject: Implement mouse menus Setup a menu/some menus by writing to an elements props/menus file --- test.rc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test.rc') 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' [2]/dev/null & + wait -- cgit v1.2.3