Allow debug printing

This commit is contained in:
Kovid Goyal 2022-08-24 22:34:31 +05:30
parent 10a39d3757
commit 619fcb0681
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -181,6 +181,12 @@ func (self *Loop) KillIfSignalled() {
}
}
func (self *Loop) DebugPrintln(args ...interface{}) {
if self.controlling_term != nil {
self.controlling_term.DebugPrintln(args...)
}
}
func (self *Loop) Run() (err error) {
signal_read_file, signal_write_file, err := os.Pipe()
if err != nil {