Blob
1 .TH WINTEXT 12 .SH NAME3 wintext, ", "" \- access text in current window4 .ds x \C'"'5 .ds xx \C'"'\^\^\^\^\C'"'6 .ds y \*x\^7 .ds yy \*(xx\^8 .SH SYNOPSIS9 .B wintext10 .br11 .B \*y12 [13 .I prefix14 ]15 .br16 .B \*(yy17 [18 .I prefix19 ]20 .SH DESCRIPTION21 .I Wintext22 prints the text of the current23 .I win24 (see25 .IR acme (1)),26 .IR 9term (1),27 or28 (Unix's)29 .IR tmux (1)30 window to standard output.31 .PP32 .I \*y33 searches the window text for commands typed with a particular prefix34 and prints them, indented, to standard output.35 .I Prefix36 is a regular expression that is matched against the beginning of the command-line.37 If38 .I prefix39 is omitted,40 .I \*y41 prints the last command executed.42 .I \*(yy43 prints the last command that44 .I \*y45 would print and then executes it by piping it into46 .IR rc (1).47 .PP48 Both49 .I \*y50 and51 .I \*(yy52 identify commands in the window text by looking for lines53 beginning with a shell prompt.54 Prompts are assumed to be an unindented sequence of55 non-whitespace characters followed by one of the56 characters57 .BR % ,58 .BR ; ,59 .BR $ ,60 or61 .BR # .62 .SH EXAMPLES63 Print the64 .IR ls (1)65 and66 .I lc67 commands executed in this window:68 .IP69 .EX70 .ta +4n71 % \*x 'l[sc]'72 % ls -l /tmp/qq*73 # ls -lrt /etc74 % lc r*75 %76 .EE77 .PP78 Execute the most recent79 .I lc80 command again:81 .IP82 .EX83 .ta +4n84 % \*(xx lc85 % lc r*86 ramfs rc read rio rm87 %88 .EE89 .SH SEE ALSO90 .IR 9term (1),91 .IR acme (1)92 .SH SOURCE93 .B \*9/bin94 .SH BUGS95 .I \*y96 and97 .I \*(yy98 are hard to type in shells other than99 .IR rc (1).100 .\" and in troff!