-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using InputMode::Mouse triggers termbox assertion #32
Comments
Both programs throw error on pressing |
@sru I can not confirm this. I definitely don't get an assertion when pressing escape in the C version. |
@panicbit That's odd. Maybe it's platform specific? I have only tested on Mac OS X (10.9.5), but I can try it on Linux later, when I get home. And I don't even know if Termbox runs on Windows. |
@sru Or it might have to do with the terminal emulator used. I'm running ArchLinux and gnome-terminal. |
@panicbit Might be. I am running iTerm, and it's messing up my terminal with bloat of characters written by the mouse input after the assertion :( |
@sru You should be able to issue |
@panicbit Huh, thanks for the tip! |
@panicbit I still get the assertion only when pressing escape in C version using Archlinux and rxvt-unicode. It might be the terminal emulator. |
@sru Still no issues using (C version, rxvt-unicode-9.21, nsf/termbox@7c154d98) The way I build termbox and run the example: python2 setup.py build
cp build/lib.*/termbox.so libtermbox.so
gcc -ltermbox -L. -Isrc/ example.c -o example
LD_LIBRARY_PATH=. ./example |
@sru I linked termbox statically now and I'm getting the assertion! |
This is fixed now in termbox |
Using
termbox.set_input_mode(InputMode::Mouse)
andpoll_event(…)
triggers an assertion in termbox. It doesn't seem to trigger imediately after a poll but when deinitializing rust-/termbox.Here's a minimal example:
What's weird, though, is that the equivalent C program does not trigger the assertion:
The text was updated successfully, but these errors were encountered: