Module Name:    src
Committed By:   hubertf
Date:           Thu Jun 25 21:48:49 UTC 2009

Modified Files:
        src/usr.bin/window: window.1

Log Message:
Add an example .windowrc


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/usr.bin/window/window.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/window/window.1
diff -u src/usr.bin/window/window.1:1.16 src/usr.bin/window/window.1:1.17
--- src/usr.bin/window/window.1:1.16	Tue Mar 10 21:18:35 2009
+++ src/usr.bin/window/window.1	Thu Jun 25 21:48:49 2009
@@ -1,4 +1,4 @@
-.\"	$NetBSD: window.1,v 1.16 2009/03/10 21:18:35 joerg Exp $
+.\"	$NetBSD: window.1,v 1.17 2009/06/25 21:48:49 hubertf Exp $
 .\"
 .\" Copyright (c) 1985, 1990, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -32,7 +32,7 @@
 .\"
 .\"	@(#)window.1	8.2 (Berkeley) 12/30/93
 .\"
-.Dd December 30, 1993
+.Dd June 25, 2009
 .Dt WINDOW 1
 .Os
 .Sh NAME
@@ -1048,6 +1048,18 @@
 .It Pa /dev/[pt]ty[pq]?
 pseudo-terminal devices.
 .El
+.Sh EXAMPLES
+The following example
+.Pa ~/.windowrc
+will open two windows. 
+The upper one will take one third of the screen 
+and run tcpdump, the lower one will take
+the remaining two thirds of the screen and run
+the default shell:
+.Bd -literal -offset 
+window r=1, nr=$nrow/3-1, l=tcpdump\\ pcn0, sh=tcpdump \\-ni pcn0
+window r=$nrow/3, nr=2*$nrow/3+1
+.Ed
 .Sh DIAGNOSTICS
 Should be self explanatory.
 .Sh HISTORY

Reply via email to