Usage: ./ttypatch [-v] [-c configfile] [-o output-file] [-p /dev/ptyXY] [-n nbr]
-v --Activate verbose mode
-c configfile --file of initial commands (defaults to ~/.ttypatch)
-o output-file--Write intercepted data to output-file
-p /dev/ptyXY --Full path to first pty (defaults to /dev/ptyp0)
-n nbr --number of pty devices (defaults to 2)
m <dev> [yes|no|toggle] -- monitor a device (default is toggle)
p <dev> <dev> -- patch two devices
u <dev> -- unpatch. both ends of the patch are unpatched
a <dev> [nbr] -- add one or more sequential pseudoterminals
(automatically patched in pairs)
s <dev> -- add a "real" serial port
r <dev> [nbr] -- remove one or more sequential devices
c <commandfile> -- execute commands in the named command file
l -- list current patches and monitors
q -- exit the program
h -- print this help text
There are a few quirks here. In the current release (ttypatch-1.0) the
<dev> is the master pseudoterminal, not the