summaryrefslogtreecommitdiff
path: root/redo/uitask.go
diff options
context:
space:
mode:
Diffstat (limited to 'redo/uitask.go')
-rw-r--r--redo/uitask.go18
1 files changed, 17 insertions, 1 deletions
diff --git a/redo/uitask.go b/redo/uitask.go
index c29470a..32f8faf 100644
--- a/redo/uitask.go
+++ b/redo/uitask.go
@@ -2,7 +2,23 @@
package ui
-// TODO Go, Start, Stop
+import (
+ "runtime"
+)
+
+// Go initializes package ui.
+// TODO write this bit
+func Go() error {
+ runtime.LockOSThread()
+ if err := uiinit(); err != nil {
+ return err
+ }
+ go uitask()
+ uimsgloop()
+ return nil
+}
+
+// TODO Stop
// This is the ui main loop.
// It is spawned by Go as a goroutine.