1 058b0118 2005-01-03 devnull .TH WINTEXT 1
3 058b0118 2005-01-03 devnull wintext, ", "" \- access text in current window
4 c8b6342d 2005-01-13 devnull .ds x \C'"'
5 c8b6342d 2005-01-13 devnull .ds xx \C'"'\^\^\^\^\C'"'
6 c8b6342d 2005-01-13 devnull .ds y \*x\
7 c8b6342d 2005-01-13 devnull .ds yy \*(xx\
8 058b0118 2005-01-03 devnull .SH SYNOPSIS
9 058b0118 2005-01-03 devnull .B wintext
13 058b0118 2005-01-03 devnull .I prefix
16 c8b6342d 2005-01-13 devnull .B \*(xx\
18 058b0118 2005-01-03 devnull .I prefix
20 058b0118 2005-01-03 devnull .SH DESCRIPTION
21 058b0118 2005-01-03 devnull .I Wintext
22 058b0118 2005-01-03 devnull prints the text of the current
25 058b0118 2005-01-03 devnull .IR acme (1))
27 058b0118 2005-01-03 devnull .IR 9term (1)
28 058b0118 2005-01-03 devnull window to standard output.
31 058b0118 2005-01-03 devnull searches the window text for commands typed with a particular prefix
32 058b0118 2005-01-03 devnull and prints them, indented, to standard output.
33 058b0118 2005-01-03 devnull .I Prefix
34 058b0118 2005-01-03 devnull is a regular expression that is matched against the beginning of the command-line.
36 058b0118 2005-01-03 devnull .I prefix
37 058b0118 2005-01-03 devnull is omitted,
39 058b0118 2005-01-03 devnull prints the last command executed.
41 058b0118 2005-01-03 devnull prints the last command that
43 058b0118 2005-01-03 devnull would print and then executes it by piping it into
44 058b0118 2005-01-03 devnull .IR rc (1).
50 058b0118 2005-01-03 devnull identify commands in the window text by looking for lines
51 058b0118 2005-01-03 devnull beginning with a shell prompt.
52 058b0118 2005-01-03 devnull Prompts are assumed to be an unindented sequence of
53 058b0118 2005-01-03 devnull non-whitespace characters followed by one of the
54 058b0118 2005-01-03 devnull characters
60 058b0118 2005-01-03 devnull .SH EXAMPLES
61 058b0118 2005-01-03 devnull Print the
62 058b0118 2005-01-03 devnull .IR ls (1)
65 058b0118 2005-01-03 devnull commands executed in this window:
69 c8b6342d 2005-01-13 devnull % \*x 'l[sc]'
70 058b0118 2005-01-03 devnull % ls -l /tmp/qq*
71 058b0118 2005-01-03 devnull # ls -lrt /etc
76 058b0118 2005-01-03 devnull Execute the most recent
78 058b0118 2005-01-03 devnull command again:
82 c8b6342d 2005-01-13 devnull % \*(xx lc
84 058b0118 2005-01-03 devnull ramfs rc read rio rm
87 058b0118 2005-01-03 devnull .SH SEE ALSO
88 058b0118 2005-01-03 devnull .IR 9term (1),
89 058b0118 2005-01-03 devnull .IR acme (1)
90 058b0118 2005-01-03 devnull .SH SOURCE
91 c3674de4 2005-01-11 devnull .B \*9/bin
96 058b0118 2005-01-03 devnull are hard to type in shells other than
97 058b0118 2005-01-03 devnull .IR rc (1).
98 058b0118 2005-01-03 devnull .\" and in troff!