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

We are launching a console program under Weston that runs chromium in kiosk mode as its user interface.

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?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745287130a4620629.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信