summaryrefslogtreecommitdiff
path: root/pim/rc/showwin
diff options
context:
space:
mode:
Diffstat (limited to 'pim/rc/showwin')
-rwxr-xr-xpim/rc/showwin10
1 files changed, 10 insertions, 0 deletions
diff --git a/pim/rc/showwin b/pim/rc/showwin
new file mode 100755
index 0000000..d71546b
--- /dev/null
+++ b/pim/rc/showwin
@@ -0,0 +1,10 @@
+#!/bin/rc
+# pim/showwin -- show an event in a window and stay there.
+#
+# rio closes a window when its command exits, so this leaves an
+# interactive shell behind: the event stays up while you carry on
+# elsewhere, and the window is still a window.
+rfork e
+pim/show $*
+echo
+exec rc -i