How do I read keyboard input from a Linux console program running under Weston - Stack Overflow

admin2025-04-18  3

We are launching a console program under Weston that runs chromium in kiosk mode as its user interface. The program has a built-in web server. The program needs to capture keyboard input when a USB keyboard device is plugged in. When this program was running under XWindows, it could read keys by opening "/dev/tty0". Under Weston, I tried tty0, tty, console, and pts/1, but none of them are returning keys.

Here are the particulars:

  • ARM Cortex-M CPU
  • Debian Bullseye
  • Linux kernel 6.2.0 custom build
  • Weston 9.0.0

How can I read keyboard input from the console application under Weston?

转载请注明原文地址:http://anycun.com/QandA/1744949158a89900.html