diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-02-23 10:35:22 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-02-23 10:35:22 +0100 |
| commit | 4abcce013c9ee3053badf2abda77190233066676 (patch) | |
| tree | 450de7e8fed3c3c7501a9d2e2eb60a676bdfa09e /_posts/2023-05-10-plan9-screenshot.md | |
| parent | cdf50cb2e3051200c6ea0628c318d66220b7d1a1 (diff) | |
| download | mitjafelicijan.com-4abcce013c9ee3053badf2abda77190233066676.tar.gz | |
Testing thoughts page
Diffstat (limited to '_posts/2023-05-10-plan9-screenshot.md')
| -rw-r--r-- | _posts/2023-05-10-plan9-screenshot.md | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/_posts/2023-05-10-plan9-screenshot.md b/_posts/2023-05-10-plan9-screenshot.md deleted file mode 100644 index 5aa11bf..0000000 --- a/_posts/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 | |||
