Commit: ee6f3a837e325184ea1009b94dee20411480844e
Parent: c1d01a378f23549e57c6d439cfa740c8b32ecc17
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-10-17 17:00:02
Tree: a4fd3cba5c4b44d0596e3ad157de0d5998c8fbed

shared/shell: Fix not handling prompt with color properly Colors use escape sequence that needs to be enveloped with RL_PROMPT_START_IGNORE (\001) and RL_PROMPT_END_IGNORE (\002) in order for readline to properly calculate the prompt length. Fixes: https://github.com/bluez/bluez/issues/965

Diffstat

M client/main.c | 16 ++++++++- - - - - - - -
M client/mgmt.c | 10 ++++- - - - - -
M src/shared/shell.c | 15 +++++++++- - - - - -
M src/shared/shell.h | 2 +-
M tools/bluetooth-player.c | 9 ++++- - - - -
M tools/btpclientctl.c | 2 +-
M tools/mesh-cfgclient.c | 6 +++- - -
M tools/mesh-gatt/util.c | 4 ++- -
M tools/mesh/util.c | 4 ++- -
M tools/meshctl.c | 10 +++++- - - - -
M tools/obexctl.c | 15 +++++++- - - - - - - -

11 files changed, 46 insertions(+), 47 deletions(-)

View Full Diff | Patch