Giter Site home page Giter Site logo

luabox's People

Contributors

ferbivore avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

luabox's Issues

Pressing Esc in mouse input mode kills Termbox

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

Figure out packages

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.

Windows support

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.