- manual page for winwatch (was missing) - winwatch.c: complain if unrecognized options are used (it already complains at useless arguments) Notes: Fri Apr 1 08:39:38 EST 2005 rsc I tidied up the description a little bit. Also, note that program names are in italics, but paths are in bold, so ".BR /dev/wsys ." not ".I /dev/wsys.". Also literals like q just go in .B font. There's usually no need for quotes. If quotes are necessary when the font is not changing (i.e., in the output of man as opposed to man -P), you do that with ".L". But quotes aren't necessary for these. The delete key is DEL. If you aren't certain of a convention, look in other man pages (rio talks about DEL, for example). Thanks again. Reference: /n/sources/patch/applied/doc-man-1-winwatch-wasmissing Date: Thu Mar 31 22:37:43 CES 2005 Reviewed-by: rsc --- /sys/man/1/winwatch Thu Jan 1 00:00:00 1970 +++ /sys/man/1/winwatch Thu Mar 31 22:35:18 2005 @@ -0,0 +1,30 @@ +.TH WINWATCH 1 +.SH NAME +winwatch \- monitor rio windows +.SH SYNOPSIS +.B winwatch +[ +.B -f +.I font +] +.SH DESCRIPTION +.I Winwatch +displays a list of +.IR rio (4) +windows as found in +.I /dev/wsys. +For each window a box containing the label of the window is displayed. +Right clicking a box unhides, raises and gives focus to the window. +The boxes are arranged in columns, new columns are created when +needed. The listing is refreshed every 5 seconds. Pressing `q' or +delete will make +.I winwatch +close itself. +.SH FILES +.B /dev/wsys/*/label +.SH SOURCE +.B /sys/src/cmd/winwatch.c +.SH SEE ALSO +.IR rio (1), +.IR window (1), +.IR rio (4). --- /sys/src/cmd/winwatch.c Thu Mar 31 22:35:42 2005 +++ /sys/src/cmd/winwatch.c Thu Mar 31 22:35:39 2005 @@ -243,6 +243,8 @@ case 'f': fontname = EARGF(usage()); break; + default: + usage(); }ARGEND if(argc)