summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr1w1s1 <r1w1s1@fastmail.com>2025-12-14 22:42:22 -0300
committerr1w1s1 <r1w1s1@fastmail.com>2025-12-14 22:42:22 -0300
commitb8e0d8add81f9d71cfb62c0ff6f2e631a90b6a45 (patch)
tree4f430a48eab409b2e80f4b16635c3978e29637ec
parent32df818c67f148f7b849147a3ce8880d0f871592 (diff)
manpage: clarify stdout PPM output and usage
-rw-r--r--xnap.112
1 files changed, 6 insertions, 6 deletions
diff --git a/xnap.1 b/xnap.1
index d255c85..90b7088 100644
--- a/xnap.1
+++ b/xnap.1
@@ -9,7 +9,7 @@ xnap \- minimal X11 screenshot utility
.IR n ]
.SH DESCRIPTION
.B xnap
-captures screen contents from an X11 display and writes to a PPM6 image
+captures screen contents from an X11 display and writes a PPM6 image
to standard output.
.PP
By default,
@@ -26,18 +26,18 @@ Capture the full root window; the whole screen.
Capture the window currently under the pointer.
.TP
.BI \-s " N"
-Capture screen N
-.I n
-as reported by the Xinerama extension.
+Capture screen N as reported by the Xinerama extension.
.SH OUTPUT
.B xnap
-writes a PPM (P6) image to stdout.
+writes a binary PPM (P6) image to standard output (stdout).
.SH USAGE
Redirect output to a file or pipe it to another program:
.PP
.nf
xnap > image.ppm
-xnap \-f | converto... whatever.png
+xnap -f > fullscreen.ppm
+xnap -s 0 > screen0.ppm
+xnap | convert ppm:- image.png
.fi
.SH ENVIRONMENT
.TP