From c35eb86a37a3b4836ef4e304c444a3414706c6aa Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sun, 27 Nov 2022 20:23:34 +0100 Subject: [PATCH] Fix example of colored prompt in client After switching to replxx you don't need the following anymore: - RL_PROMPT_START_IGNORE (\001) - RL_PROMPT_END_IGNORE (\002) And those symbols also breaks the client prompt (the text length calculated incorrectly, it does not interpret "\x01" as an escape sequence but instead just a bunch of bytes and shows extra whitespaces after prompt). Signed-off-by: Azat Khuzhin --- programs/client/clickhouse-client.xml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/programs/client/clickhouse-client.xml b/programs/client/clickhouse-client.xml index 00f5b26eddf..2923de44045 100644 --- a/programs/client/clickhouse-client.xml +++ b/programs/client/clickhouse-client.xml @@ -15,18 +15,26 @@ {display_name} :) - {display_name} \x01\e[1;32m\x02:)\x01\e[0m\x02 - {display_name} \x01\e[1;31m\x02:)\x01\e[0m\x02 + {display_name} \e[1;32m:)\e[0m + {display_name} \e[1;31m:)\e[0m