> I've to think about the plumber and the the named pipe to be able
> to plumb a file and bring to the front a sam instance if it has
> the file open, moving the file's window to the front with dot set at
> the address, if one is given.
I have this:
diff -u /sys/src/cmd/samterm/plan9.c ./plan9.c
--- /sys/src/cmd/samterm/plan9.c Mon Jun 21 18:44:27 2021
+++ ./plan9.c Mon Jun 21 19:51:51 2021
@@ -215,6 +215,11 @@
which = i;
send(c, &which);
}
+ if((n = open("/dev/wctl", OWRITE)) >= 0){
+ write(n, "current\n", 8);
+ write(n, "unhide\n", 7);
+ close(n);
+ }
}
}
------------------------------------------
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/Tc809ad6007ccd2bd-M619b1c2110ae7f980ce9f1c9
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription