add optional parameter to Proc.write*(), Proc.read*()
Proc.interact(): redirect stdout/stderr to stdin when socket mode