fakefile writes to stdout window work

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-11-14 04:28:12 -06:00
parent aae13f2b57
commit 15666309ee
2 changed files with 11 additions and 0 deletions

View File

@ -143,6 +143,14 @@ func addDebugKeys(g *gocui.Gui) {
if tk.v == nil {
log.Log(ERROR, "tk.v = nil")
}
if me.fakefile == nil {
log.Log(ERROR, "making fakefile")
me.fakefile = NewFakeFile(tk.v)
} else {
log.Log(ERROR, "attempt write to fakefile")
fmt.Fprintf(me.fakefile, "test out fakefile %d\n", ecount)
}
// log.CaptureMode(tk.v)
return nil
})

View File

@ -99,6 +99,9 @@ type config struct {
// used for listWidgets() debugging
depth int
// used to attempt to write to the stdout window
fakefile *FakeFile
}
// deprecate these