diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-27 17:49:00 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-27 17:49:00 +0200 |
| commit | f75ae45608cb9745c4c2bcc781b3cbea9ff93865 (patch) | |
| tree | 3221f045ec73a5e0892775870c53d5a8f32bc8fd /content/notes/plan9-screenshot.md | |
| parent | 5b0d04bf2be32e85e68fc1339000a0ea5a15543c (diff) | |
| download | mitjafelicijan.com-f75ae45608cb9745c4c2bcc781b3cbea9ff93865.tar.gz | |
Note: Drawing pixels in Plan9
Diffstat (limited to 'content/notes/plan9-screenshot.md')
| -rw-r--r-- | content/notes/plan9-screenshot.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/content/notes/plan9-screenshot.md b/content/notes/plan9-screenshot.md index ad11358..71e5808 100644 --- a/content/notes/plan9-screenshot.md +++ b/content/notes/plan9-screenshot.md | |||
| @@ -13,6 +13,10 @@ output it to `/dev/screen`. You can then use `topng` to convert it to a png | |||
| 13 | image. | 13 | image. |
| 14 | 14 | ||
| 15 | ```sh | 15 | ```sh |
| 16 | # Instant screenshot. | ||
| 16 | cat /dev/screen | topng > screen.png | 17 | cat /dev/screen | topng > screen.png |
| 18 | |||
| 19 | # Delayed screenshot (5 seconds). | ||
| 20 | sleep 5; cat /dev/screen | topng > screen.png | ||
| 17 | ``` | 21 | ``` |
| 18 | 22 | ||
