diff options
Diffstat (limited to '_posts/notes/2023-05-10-plan9-screenshot.md')
| -rw-r--r-- | _posts/notes/2023-05-10-plan9-screenshot.md | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/_posts/notes/2023-05-10-plan9-screenshot.md b/_posts/notes/2023-05-10-plan9-screenshot.md deleted file mode 100644 index 5aa11bf..0000000 --- a/_posts/notes/2023-05-10-plan9-screenshot.md +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 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 | |||
