nsf / termbox

Library for writing text-based user interfaces
http://code.google.com/p/termbox
MIT License
1.96k stars 185 forks source link

no mouse events in xterm and xfce4-terminal #87

Closed maep-- closed 7 years ago

maep-- commented 7 years ago

Using the termbox keyboard demo. The mouse events are reported as keyboard events, the reported key values appear to be random. Also, in xterm the box drawing characters are drawn as â.

Arch Linux, xterm 325, xfce4-terminal 0.6.3, termbox trunk, $TERM = xterm

nsf commented 7 years ago

Hm, that's pretty weird, but I have no idea why it may happen.

nsf commented 7 years ago

Maybe non-utf8 locale? termbox assumes utf-8.

maep-- commented 7 years ago

LANG is set to en_DK.utf8. I tried setting it to en_US.utf8 but no luck. Are there any other variables that could influence termbox/terminal behavior?

nsf commented 7 years ago

I fixed a bug just recently. Try updating? Reverted one of the commits.

maep-- commented 7 years ago

That worked. Getting mouse events now.

maep-- commented 7 years ago

Where are my manners? Thanks for the fix! :D