pixix4/ev3dev-lang-rust

Unexpected beahavor when using ev3 display

Eoghanmc22 opened this issue · 3 comments

So quite simply when you use draw something to the display in a program that doesn't exit the key press symbols (example ^CCA) will over write what ever you put on the display.

To reproduce you can add
loop {

}
to the bottom of the screen example and then press the arrow keys on the ev3.

I think this is caused by the tty not being in a "graphics mode" or with keyboard mode on as this is what the java bindings do in OwnedDisplay::switchToGraphicsMode and the java bindings dont have this problem.

This does not seem to be a simple problem. It only occurs when runnin via SSH (and not via the UI). I have tried to translate the mentioned function from the java library to rust. However, all ioctl calls failed with status code -1. I currently do not know how to solve this issue. The official python library does not seem to offer such a function at all.

i have noticed this weird escape-code displaying on the screen too.

While trying to look into this issue again, I found this issue with a possible solution. With this, you need to start your program with brickrun ./my_binary Does this help for you problem?

ev3dev/ev3dev#1102