1 058b0118 2005-01-03 devnull .TH WINTEXT 1
3 058b0118 2005-01-03 devnull wintext, ", "" \- access text in current window
4 058b0118 2005-01-03 devnull .SH SYNOPSIS
5 058b0118 2005-01-03 devnull .B wintext
12 058b0118 2005-01-03 devnull .B \C'"'\C'"'\
14 058b0118 2005-01-03 devnull .I prefix
16 058b0118 2005-01-03 devnull .SH DESCRIPTION
17 058b0118 2005-01-03 devnull .I Wintext
18 058b0118 2005-01-03 devnull prints the text of the current
21 058b0118 2005-01-03 devnull .IR acme (1))
23 058b0118 2005-01-03 devnull .IR 9term (1)
24 058b0118 2005-01-03 devnull window to standard output.
27 058b0118 2005-01-03 devnull searches the window text for commands typed with a particular prefix
28 058b0118 2005-01-03 devnull and prints them, indented, to standard output.
29 058b0118 2005-01-03 devnull .I Prefix
30 058b0118 2005-01-03 devnull is a regular expression that is matched against the beginning of the command-line.
32 058b0118 2005-01-03 devnull .I prefix
33 058b0118 2005-01-03 devnull is omitted,
35 058b0118 2005-01-03 devnull prints the last command executed.
36 058b0118 2005-01-03 devnull .I \C'"'\C'"'
37 058b0118 2005-01-03 devnull prints the last command that
39 058b0118 2005-01-03 devnull would print and then executes it by piping it into
40 058b0118 2005-01-03 devnull .IR rc (1).
45 058b0118 2005-01-03 devnull .I \C'"'\C'"'
46 058b0118 2005-01-03 devnull identify commands in the window text by looking for lines
47 058b0118 2005-01-03 devnull beginning with a shell prompt.
48 058b0118 2005-01-03 devnull Prompts are assumed to be an unindented sequence of
49 058b0118 2005-01-03 devnull non-whitespace characters followed by one of the
50 058b0118 2005-01-03 devnull characters
56 058b0118 2005-01-03 devnull .SH EXAMPLES
57 058b0118 2005-01-03 devnull Print the
58 058b0118 2005-01-03 devnull .IR ls (1)
61 058b0118 2005-01-03 devnull commands executed in this window:
65 058b0118 2005-01-03 devnull % \C'"' 'l[sc]'
66 058b0118 2005-01-03 devnull % ls -l /tmp/qq*
67 058b0118 2005-01-03 devnull # ls -lrt /etc
72 058b0118 2005-01-03 devnull Execute the most recent
74 058b0118 2005-01-03 devnull command again:
78 058b0118 2005-01-03 devnull % \C'"'\C'"' lc
80 058b0118 2005-01-03 devnull ramfs rc read rio rm
83 058b0118 2005-01-03 devnull .SH SEE ALSO
84 058b0118 2005-01-03 devnull .IR 9term (1),
85 058b0118 2005-01-03 devnull .IR acme (1)
86 058b0118 2005-01-03 devnull .SH SOURCE
87 c3674de4 2005-01-11 devnull .B \*9/bin
91 058b0118 2005-01-03 devnull .I \C'"'\C'"'
92 058b0118 2005-01-03 devnull are hard to type in shells other than
93 058b0118 2005-01-03 devnull .IR rc (1).
94 058b0118 2005-01-03 devnull .\" and in troff!
96 058b0118 2005-01-03 devnull Don't run
97 058b0118 2005-01-03 devnull .I \C'"'\C'"'
98 058b0118 2005-01-03 devnull twice in a row.