JoelOtter / termloop

Terminal-based game engine for Go, built on top of Termbox
Other
1.43k stars 83 forks source link

not escaping #37

Closed splace closed 7 years ago

splace commented 7 years ago

for me, go1.8, this doesn't stop when hitting esc key.

package main
import "github.com/JoelOtter/termloop"
func main() {
    g := termloop.NewGame()
    m:=termloop.NewText(0, 0, "<=0=>", termloop.ColorWhite, termloop.ColorBlue)
    g.Screen().AddEntity(m)
    g.Start()
}
aquilax commented 7 years ago

Exit was changed to Ctrl-C https://github.com/JoelOtter/termloop/blob/master/input.go#L14

JoelOtter commented 7 years ago

Thanks @aquilax

splace commented 7 years ago

i tried ctrl-C, not working for me.(gnome/mate terminal)

don't terminals often intercept ctrl-c for copy/paste?