.Dd October 18, 2021 .Dt PTEE 1 .Os . .Sh NAME .Nm ptee .Nd tee for PTYs . .Sh SYNOPSIS .Nm .Ar command ... .Cm > .Ar file . .Sh DESCRIPTION .Nm runs .Ar command in a new PTY which is mirrored to the current PTY and standard output. Standard output must be redirected to a file or pipe. . .Pp Type .Ic ^S to write a media copy sequence to standard output. Type .Ic ^Q to toggle writing to standard output. . .Sh SEE ALSO .Xr script 1 . .Sh BUGS Window size changes are not propagated to the child PTY.