zephyr/subsys/shell
Jim Paris c7d6c310c6 shell: fix log output when CONFIG_LOG_IMMEDIATE=y
With CONFIG_LOG_IMMEDIATE, log output is printed immediately.  If a
shell command is in progress, there's no prompt to erase, nor should
we print a new prompt after the log message is output.

Before this patch, a simple shell command like:

  int cmd_log_erase(const struct shell *shell, size_t argc, char **argv)
  {
          LOG_INF("hello world");
          return 0;
  }

would output something like:

  uart:~$ log erase
  [00:00:02.623,718] <inf> cmd_log: hello world
  uart:~$ loguart:~$

This patch fixes prompt handling while a command is active, and fixes
put_sync_hexdump to behave like put_sync_string.

Signed-off-by: Jim Paris <jim@jtan.com>
2019-08-14 14:27:14 +02:00
..
modules cleanup: include/: move misc/reboot.h to power/reboot.h 2019-06-27 22:55:49 -04:00
CMakeLists.txt
Kconfig shell: Refactor shell_history to use less RW memory 2019-05-30 09:44:03 -04:00
Kconfig.backends shell: prompt configuration during project generation 2019-04-30 10:40:04 -04:00
Kconfig.template.shell_log_queue_size
Kconfig.template.shell_log_queue_timeout
shell.c shell: Fix undefined macro warnings 2019-07-24 16:34:31 -04:00
shell_cmds.c shell: Fix undefined macro warnings 2019-07-24 16:34:31 -04:00
shell_dummy.c shell: prompt configuration during project generation 2019-04-30 10:40:04 -04:00
shell_fprintf.c
shell_help.c shell: add select command 2019-05-24 11:04:42 +02:00
shell_help.h
shell_history.c shell: Refactor shell_history to use less RW memory 2019-05-30 09:44:03 -04:00
shell_log_backend.c shell: fix log output when CONFIG_LOG_IMMEDIATE=y 2019-08-14 14:27:14 +02:00
shell_ops.c shell: Initialize va_list variables portably. 2019-06-07 12:08:35 +02:00
shell_ops.h
shell_rtt.c shell: prompt configuration during project generation 2019-04-30 10:40:04 -04:00
shell_telnet.c shell: prompt configuration during project generation 2019-04-30 10:40:04 -04:00
shell_telnet_protocol.h
shell_uart.c cleanup: include/: move uart.h to drivers/uart.h 2019-06-27 22:55:49 -04:00
shell_utils.c style: add braces around if/while statements 2019-06-06 15:20:21 +02:00
shell_utils.h shell: add select command 2019-05-24 11:04:42 +02:00
shell_vt100.h shell: add Ctrl+N and Ctrl+P meta-keys 2019-06-24 07:17:53 -04:00
shell_wildcard.c
shell_wildcard.h