This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_CONSOLE_GETCHAR_BUFSIZE

console_getchar() buffer size

Type: int

Help

Buffer size for console_getchar(). The default is optimized
to save RAM. You may need to increase it e.g. to support
large host-side clipboard pastes. Set to 0 to disable
interrupt-driven operation and use busy-polling.

Direct dependencies

CONSOLE_GETCHAR && CONSOLE_SUBSYS

(Includes any dependencies from ifs and menus.)

Default

  • 16

Kconfig definition

At subsys/console/Kconfig:29

Included via Kconfig:8Kconfig.zephyr:42subsys/Kconfig:13

Menu path: (Top) → Sub Systems and OS Services → Console subsystem/support routines [EXPERIMENTAL]

config CONSOLE_GETCHAR_BUFSIZE
    int "console_getchar() buffer size"
    default 16
    depends on CONSOLE_GETCHAR && CONSOLE_SUBSYS
    help
      Buffer size for console_getchar(). The default is optimized
      to save RAM. You may need to increase it e.g. to support
      large host-side clipboard pastes. Set to 0 to disable
      interrupt-driven operation and use busy-polling.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)