fakefile writes to stdout window work
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
aae13f2b57
commit
15666309ee
|
@ -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
|
||||
})
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue