ferbivore / luabox Goto Github PK
View Code? Open in Web Editor NEWGo + Lua + Termbox
License: Apache License 2.0
Go + Lua + Termbox
License: Apache License 2.0
Luabox should be able to execute any Lua file, not just main.lua
.
panic: unreachable
goroutine 8 [running]:
github.com/nsf/termbox-go.extract_event(0x82040c400, 0x1, 0x40, 0x82053ed48, 0x68400)
~/Go/src/github.com/nsf/termbox-go/termbox.go:372 +0x1c0
github.com/nsf/termbox-go.PollEvent(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
~/Go/src/github.com/nsf/termbox-go/api.go:329 +0x482
main.termbox_listener(0x82040e3c0)
~/Go/src/github.com/ferbivore/luabox/api.go:241 +0x1f0
created by main.main
~/Go/src/github.com/ferbivore/luabox/main.go:43 +0x388
goroutine 1 [chan receive]:
main.main()
~/Go/src/github.com/ferbivore/luabox/main.go:45 +0x3e6
goroutine 5 [syscall]:
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
/usr/local/go/src/os/signal/signal_unix.go:28 +0x37
goroutine 6 [select, locked to thread]:
runtime.gopark(0x2bca88, 0x820420728, 0x260a88, 0x6, 0x36318, 0x2)
/usr/local/go/src/runtime/proc.go:185 +0x169
runtime.selectgoImpl(0x820420728, 0x0, 0x18)
/usr/local/go/src/runtime/select.go:392 +0xa64
runtime.selectgo(0x820420728)
/usr/local/go/src/runtime/select.go:212 +0x12
runtime.ensureSigM.func1()
/usr/local/go/src/runtime/signal1_unix.go:190 +0x326
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1
goroutine 7 [runnable]:
github.com/nsf/termbox-go.Init.func1()
~/Go/src/github.com/nsf/termbox-go/api.go:96 +0x303
created by github.com/nsf/termbox-go.Init
~/Go/src/github.com/nsf/termbox-go/api.go:106 +0x8b9
goroutine 9 [chan receive]:
main.mainloop(0x7fff5fbff922, 0xa, 0x82040e3c0)
~/Go/src/github.com/ferbivore/luabox/loop.go:52 +0xaf9
created by main.main
~/Go/src/github.com/ferbivore/luabox/main.go:44 +0x3c1
Right now everything is dumped in the main
package, which is probably a bad idea, but attempting to change it resulted in go build
silently failing. I should probably read more docs.
Right now, giving an invalid file results in termbox making an awful mess.
The quit
channel is ugly. Optimally, we would just send a {type = "quit"}
event on the events
channel.
Naturally enough, Luabox doesn't even begin to work on Windows. Most of the examples complain about not finding modules, and the one that doesn't (issue5.lua
) fails to respond to Ctrl-C. Or anything at all, for that matter.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.