Browse files

MFC: r238896, r238897, r241331 (usr.bin/script/ only), r241972, r242138,

     r248388, 253814

+ Add "-f" to also output filemon(4) information.
+ Add d, p and r switches for recording script sessions with timing data
  and playing sessions back with or without time delays.
+ Remove contractions.

Approved by:	releng (glebius)
  • Loading branch information...
1 parent c93266e commit d09cd93c3b9059e1e7c4bc2ffef7ce8643b44fc9 obrien committed Jul 30, 2013
Showing with 267 additions and 33 deletions.
  1. +31 −3 usr.bin/script/script.1
  2. +236 −30 usr.bin/script/script.c
@@ -28,15 +28,15 @@
.\" @(#)script.1 8.1 (Berkeley) 6/6/93
.\" $FreeBSD$
-.Dd September 28, 2011
+.Dd Oct 27, 2012
.Nm script
.Nd make typescript of terminal session
-.Op Fl akq
+.Op Fl adfkpqr
.Op Fl t Ar time
.Op Ar file Op Ar command ...
@@ -72,10 +72,27 @@ Append the output to
.Pa typescript ,
retaining the prior contents.
+.It Fl d
+When playing back a session with the
+.Fl p
+flag, do not sleep between records when playing back a timestamped session.
+.It Fl f
+.Ar file.filemon
+.Pa typescript.filemon
+.Xr filemon 4 .
.It Fl k
Log keys sent to the program as well as output.
+.It Fl p
+Play back a session recorded with the
+.Fl r
+flag in real time.
.It Fl q
-Run in quiet mode, omit the start and stop status messages.
+Run in quiet mode, omit the start, stop and command status messages.
+.It Fl r
+Record a session with input, output, and timestamping.
.It Fl t Ar time
Specify the interval at which the script output file will be flushed
to disk, in seconds.
@@ -141,6 +158,7 @@ is assumed.
.Xr csh 1
+.Xr filemon 4
for the
.Em history
@@ -151,6 +169,16 @@ The
command appeared in
.Bx 3.0 .
+.Fl d ,
+.Fl p
+.Fl r
+options first appeared in
+.Nx 2.0
+and were ported to
+.Fx 9.2 .
Oops, something went wrong.

0 comments on commit d09cd93

Please sign in to comment.