fond memleak, colordance broken

This commit is contained in:
anton.gurov
2019-10-31 15:08:09 +03:00
parent c372670953
commit 96d6818754
4 changed files with 166 additions and 78 deletions

View File

@ -77,7 +77,7 @@ func main() {
vp := mainwindow.NewViewPort(40, 0, 60, 47, level, mw.GetLayer("base"))
vp.Render()
go handleInput(mainCtx, mw.GetLayer("base"))
go decodeInput(mainCtx, mw.GetLayer("base"))
//but every call to bearlibterminal must be wrapped to closure and passed to mainfunc
var exit = false
@ -114,7 +114,7 @@ func setupLayers(mainwindow *mainwindow.MainWindow) {
mainwindow.AddLayer("menu", 2, "white")
}
func handleInput(ctx util.ClientCtx, baseLayer *mainwindow.Layer) {
func decodeInput(ctx util.ClientCtx, baseLayer *mainwindow.Layer) {
var exit = false
for !exit{
select {