diff options
| author | Jeff Carr <[email protected]> | 2023-04-26 20:56:25 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-26 20:56:25 -0500 |
| commit | e3cf42f1da9ec0ed07a7f346a0ce9c9ff10295c1 (patch) | |
| tree | 0fe6fe28f11ccb3d1d6a989349071928f4a7ccb9 /toolkit/widget.go | |
| parent | 5b217fa23af4e5040d5f09d9840ddc426a315960 (diff) | |
gocui: log() output works
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/widget.go')
| -rw-r--r-- | toolkit/widget.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/toolkit/widget.go b/toolkit/widget.go index d4542bc..f3d4773 100644 --- a/toolkit/widget.go +++ b/toolkit/widget.go @@ -69,6 +69,7 @@ const ( Font // TODO Color // TODO Dialog // TODO + Stdout // can be used to capture and display log output ) const ( @@ -93,6 +94,7 @@ const ( User // the user did something (mouse, keyboard, etc) InitToolkit // initializes the toolkit CloseToolkit // closes the toolkit + UserQuit // the user closed the GUI ) func (s WidgetType) String() string { @@ -141,6 +143,8 @@ func (s WidgetType) String() string { return "Color" case Dialog: return "Dialog" + case Stdout: + return "Stdout" case Unknown: return "Unknown" } |
