From 4abcce013c9ee3053badf2abda77190233066676 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Fri, 23 Feb 2024 10:35:22 +0100 Subject: Testing thoughts page --- _posts/notes/2023-05-10-plan9-screenshot.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 _posts/notes/2023-05-10-plan9-screenshot.md (limited to '_posts/notes/2023-05-10-plan9-screenshot.md') diff --git a/_posts/notes/2023-05-10-plan9-screenshot.md b/_posts/notes/2023-05-10-plan9-screenshot.md new file mode 100644 index 0000000..5aa11bf --- /dev/null +++ b/_posts/notes/2023-05-10-plan9-screenshot.md @@ -0,0 +1,23 @@ +--- +title: Take a screenshot in Plan9 +permalink: /plan9-screenshot.html +date: 2023-05-10T12:00:00+02:00 +layout: post +type: note +draft: false +tags: [plan9] +--- + +Take a screenshot in Plan9. This applies to [Plan9](https://9p.io/plan9/) and +[9front](https://9front.org/). This will take a screenshot of the screen and +output it to `/dev/screen`. You can then use `topng` to convert it to a png +image. + +```sh +# Instant screenshot. +cat /dev/screen | topng > screen.png + +# Delayed screenshot (5 seconds). +sleep 5; cat /dev/screen | topng > screen.png +``` + -- cgit v1.2.3