5 ms·
Plan9's cat /dev/screen > /home/sixs/screenshot
by SixSigma 12y ago
Plan9's
cat /dev/screen > /home/sixs/screenshot
- joosters 12y agoI wonder how that worked for multi-user or multi-screen setups?
- userbinator 12y agoThe filesystem in plan9 allows per-process namespaces.
- deleted 12y ago[deleted]
- simias 12y agoWouldn't that dump the screen in raw format though? If so, you can do something similar if you have a framebuffer interface on linux by doing "cat /dev/fb0 > /wherever" although admittedly it'll dump all the buffers if you're multi-buffering.
- dale-cooper 12y agoI guess you would do something like: cat /dev/screen | pngenc > foo.png
- cremno 12y agoActually it would be: topng < /dev/screen > foo.png
- SixSigma 12y agoAs a plan9 image formatted file. The poster below introduces topng but there is slso togif and others. But that just muddies the waters, You could email the file to another plan9 user, plan9 tools can work with it, display it etc
- beagle3 12y agoWhat if the screen updates at the same time? Does plan9 give any atomic guarantees?
- pjc50 12y agoThe nearest linux equivalent is probably "xwd".
- krick 12y agoWow. That's kinda awesome. I don't even see /dev/audio on Ubuntu now. I wonder if Plan9 is actually usable right now or is it only suited to talking about how operating systems could be?
- vezzy-fnord 12y agoWhat is your definition of "usable"? It's certainly stable.