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
Download list of YouTube files
Drawing Pixels in Plan9plan9
Edsger W. Dijkstra Manuscripts ebook
Change Alt key to Win key under Xfce4
Dungeon Crawl Stone Soup - New player guidedcss
Use option key as meta in Alacritty under macOS
Cronjobs on Github with Github Actions
Display xterm color palette
Set color temperature of displays on i3
Personal sane Vim defaultsvim
Grep to Less that maintain colors
Uninstall Ollama from a Linux box
Write and read structs to/from files in Cc
Lua performance in different environments
Sane defaults for tmux with more visible statusbar