ev3dev-lang-rust icon indicating copy to clipboard operation
ev3dev-lang-rust copied to clipboard

Unexpected beahavor when using ev3 display

Open Eoghanmc22 opened this issue 4 years ago • 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.

Eoghanmc22 avatar Dec 14 '20 20:12 Eoghanmc22

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.

pixix4 avatar Dec 18 '20 11:12 pixix4

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

Natejoestev avatar Feb 22 '24 03:02 Natejoestev

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?

https://github.com/ev3dev/ev3dev/issues/1102

pixix4 avatar Feb 25 '24 07:02 pixix4