Open Eoghanmc22 opened 3 years ago
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?
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.