aboutsummaryrefslogtreecommitdiff
path: root/_posts/2023-05-10-plan9-screenshot.md
diff options
context:
space:
mode:
Diffstat (limited to '_posts/2023-05-10-plan9-screenshot.md')
-rw-r--r--_posts/2023-05-10-plan9-screenshot.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/_posts/2023-05-10-plan9-screenshot.md b/_posts/2023-05-10-plan9-screenshot.md
new file mode 100644
index 0000000..5aa11bf
--- /dev/null
+++ b/_posts/2023-05-10-plan9-screenshot.md
@@ -0,0 +1,23 @@
1---
2title: Take a screenshot in Plan9
3permalink: /plan9-screenshot.html
4date: 2023-05-10T12:00:00+02:00
5layout: post
6type: note
7draft: false
8tags: [plan9]
9---
10
11Take a screenshot in Plan9. This applies to [Plan9](https://9p.io/plan9/) and
12[9front](https://9front.org/). This will take a screenshot of the screen and
13output it to `/dev/screen`. You can then use `topng` to convert it to a png
14image.
15
16```sh
17# Instant screenshot.
18cat /dev/screen | topng > screen.png
19
20# Delayed screenshot (5 seconds).
21sleep 5; cat /dev/screen | topng > screen.png
22```
23