Take a screenshot in Plan9

note, May 10, 2023, on Mitja Felicijan's blog

Take a screenshot in Plan9. This applies to Plan9 and 9front. This will take a screenshot of the screen and output it to /dev/screen. You can then use topng to convert it to a png image.

# Instant screenshot.
cat /dev/screen | topng > screen.png

# Delayed screenshot (5 seconds).
sleep 5; cat /dev/screen | topng > screen.png

Other notes

DateTitle
Convert all MKV files into other formats
My brand new Plan9/9front desktopplan9
Sending signals to C programsc
Development environments with Nix
#cat-v on weechat configuration
Extend Lua with custom C functions using Clangc
Aerial photography of algae spotted on river Sava
Sane default for Dungeon Crawl Stone Soup Online editiondcss
Use option key as meta in Alacritty under macOS
Cronjobs on Github with Github Actions
Write ISO to USB Key
Make DCSS playable on 4k displaysdcss
Make B/W SVG charts with matplotlib
Simple presentations with Markdown
Personal sane Vim defaultsvim