diff --git a/graphics/microwindows/Kconfig b/graphics/microwindows/Kconfig index 8463d791f..9d5f0cb8c 100644 --- a/graphics/microwindows/Kconfig +++ b/graphics/microwindows/Kconfig @@ -33,7 +33,7 @@ config MICROWINDOWS_KBD_EVENT config MICROWINDOWS_KBD_RAW bool "Raw-mode keyboard driver" - depends on LIBC_KBDCODEC + depends on INPUT_KEYBOARD_BYTESTREAM ---help--- Reads raw byte stream from a character device (e.g., /dev/kbda) and decodes escape sequences via the kbd_codec library. Suitable diff --git a/nshlib/Kconfig b/nshlib/Kconfig index 8f0cd36ee..fbbb08d3b 100644 --- a/nshlib/Kconfig +++ b/nshlib/Kconfig @@ -1090,6 +1090,7 @@ config NSH_USBKBD bool "Use USB keyboard input" default n depends on NSH_CONSOLE && USBHOST_HIDKBD && !NSH_USBCONSOLE + depends on INPUT_KEYBOARD_BYTESTREAM ---help--- Normally NSH uses the same device for stdin, stdout, and stderr. By default, that device is /dev/console. If this option is selected, @@ -1098,6 +1099,9 @@ config NSH_USBKBD interface) and the data from the keyboard will drive NSH. NSH output (stdout and stderr) will still go to /dev/console. + NSH reads the keyboard as a stream of characters, which is what + INPUT_KEYBOARD_BYTESTREAM makes a keyboard device deliver. + if NSH_USBKBD config NSH_USBKBD_DEVNAME