diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-11-01 22:54:27 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-11-01 22:54:27 +0100 |
| commit | 2417a6b7603524dc5cd30d29b153f91024b9443d (patch) | |
| tree | 9be5ea8e5baba96dd9159217da6badf6157fb595 /_posts/2023-05-10-plan9-screenshot.md | |
| parent | 89ba3497f07a8ea43d209b583f39fcc286acc923 (diff) | |
| download | mitjafelicijan.com-2417a6b7603524dc5cd30d29b153f91024b9443d.tar.gz | |
Move to Jekyll
Diffstat (limited to '_posts/2023-05-10-plan9-screenshot.md')
| -rw-r--r-- | _posts/2023-05-10-plan9-screenshot.md | 23 |
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 | --- | ||
| 2 | title: Take a screenshot in Plan9 | ||
| 3 | permalink: /plan9-screenshot.html | ||
| 4 | date: 2023-05-10T12:00:00+02:00 | ||
| 5 | layout: post | ||
| 6 | type: note | ||
| 7 | draft: false | ||
| 8 | tags: [plan9] | ||
| 9 | --- | ||
| 10 | |||
| 11 | Take 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 | ||
| 13 | output it to `/dev/screen`. You can then use `topng` to convert it to a png | ||
| 14 | image. | ||
| 15 | |||
| 16 | ```sh | ||
| 17 | # Instant screenshot. | ||
| 18 | cat /dev/screen | topng > screen.png | ||
| 19 | |||
| 20 | # Delayed screenshot (5 seconds). | ||
| 21 | sleep 5; cat /dev/screen | topng > screen.png | ||
| 22 | ``` | ||
| 23 | |||
