mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-27 18:00:34 +08:00
ignore pty input log
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user