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'"'
7 fa7fecff 2020-01-13 rsc .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
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 d32deab1 2020-08-16 rsc .MR acme (1) ),
26 d32deab1 2020-08-16 rsc .MR 9term (1) ,
30 058b0118 2005-01-03 devnull window to standard output.
33 058b0118 2005-01-03 devnull searches the window text for commands typed with a particular prefix
34 058b0118 2005-01-03 devnull and prints them, indented, to standard output.
35 058b0118 2005-01-03 devnull .I Prefix
36 058b0118 2005-01-03 devnull is a regular expression that is matched against the beginning of the command-line.
38 058b0118 2005-01-03 devnull .I prefix
39 058b0118 2005-01-03 devnull is omitted,
41 058b0118 2005-01-03 devnull prints the last command executed.
43 058b0118 2005-01-03 devnull prints the last command that
45 fa7fecff 2020-01-13 rsc would print and then executes it by piping it into
52 058b0118 2005-01-03 devnull identify commands in the window text by looking for lines
53 058b0118 2005-01-03 devnull beginning with a shell prompt.
54 058b0118 2005-01-03 devnull Prompts are assumed to be an unindented sequence of
55 058b0118 2005-01-03 devnull non-whitespace characters followed by one of the
56 058b0118 2005-01-03 devnull characters
62 058b0118 2005-01-03 devnull .SH EXAMPLES
63 058b0118 2005-01-03 devnull Print the
67 058b0118 2005-01-03 devnull commands executed in this window:
71 c8b6342d 2005-01-13 devnull % \*x 'l[sc]'
72 058b0118 2005-01-03 devnull % ls -l /tmp/qq*
73 058b0118 2005-01-03 devnull # ls -lrt /etc
78 058b0118 2005-01-03 devnull Execute the most recent
80 058b0118 2005-01-03 devnull command again:
84 c8b6342d 2005-01-13 devnull % \*(xx lc
86 058b0118 2005-01-03 devnull ramfs rc read rio rm
89 058b0118 2005-01-03 devnull .SH SEE ALSO
90 d32deab1 2020-08-16 rsc .MR 9term (1) ,
92 058b0118 2005-01-03 devnull .SH SOURCE
93 c3674de4 2005-01-11 devnull .B \*9/bin
98 058b0118 2005-01-03 devnull are hard to type in shells other than
100 058b0118 2005-01-03 devnull .\" and in troff!