CONFIG_NATIVE_UART_AUTOATTACH_DEFAULT_CMD

Default command to attach the UART to a new terminal

Type: string

Help

If the native_posix executable is called with the –attach_uart command line option, this will be the default command which will be run to attach a new terminal to the 1st UART. Note that this command must have one, and only one, ‘%s’ as placeholder for the pseudoterminal device name (e.g. /dev/pts/35) This is only applicable if the UART_0 is configured to use its own PTY with NATIVE_UART_0_ON_OWN_PTY. The 2nd UART will not be affected by this option. If you are using GNOME, then you can use this command string ‘gnome-terminal – screen %s’

Direct dependencies

UART_NATIVE_POSIX && SERIAL

(Includes any dependencies from ifs and menus.)

Default

  • “xterm -e screen %s &”

Kconfig definition

At <Zephyr>/drivers/serial/Kconfig.native_posix:67

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:32<Zephyr>/drivers/Kconfig:24<Zephyr>/drivers/serial/Kconfig:85

Menu path: (Top) → Device Drivers → Serial Drivers → UART driver for native_posix

config NATIVE_UART_AUTOATTACH_DEFAULT_CMD
    string "Default command to attach the UART to a new terminal"
    default "xterm -e screen %s &"
    depends on UART_NATIVE_POSIX && SERIAL
    help
      If the native_posix executable is called with the --attach_uart
      command line option, this will be the default command which will be
      run to attach a new terminal to the 1st UART.
      Note that this command must have one, and only one, '%s' as
      placeholder for the pseudoterminal device name (e.g. /dev/pts/35)
      This is only applicable if the UART_0 is configured to use its own
      PTY with NATIVE_UART_0_ON_OWN_PTY.
      The 2nd UART will not be affected by this option.
      If you are using GNOME, then you can use this command string
      'gnome-terminal -- screen %s'

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