ignore pty input log

This commit is contained in:
liuzhihang1
2025-02-07 06:19:04 +00:00
parent 4fa227ee82
commit 5b8d3e6c37

View File

@@ -78,13 +78,11 @@ func (p *ProcessPty) SetTerminalSize(cols, rows int) {
}
func (p *ProcessPty) WriteBytes(input []byte) (err error) {
p.logReportHandler(config.CF.ProcessInputPrefix + string(input))
_, err = p.pty.Write(input)
return
}
func (p *ProcessPty) Write(input string) (err error) {
p.logReportHandler(config.CF.ProcessInputPrefix + input)
_, err = p.pty.Write([]byte(input))
return
}