From bb0d435321c82a746ad3009c82f50a4b6ad61f1c Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 15 Dec 2021 22:09:43 +0100 Subject: [PATCH] =?UTF-8?q?Add=20a=20note=20about=20dangers=20of=20using?= =?UTF-8?q?=20=E2=86=B5=20symbol?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/.config/shell/prompt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/home/.config/shell/prompt b/home/.config/shell/prompt index 149ca8b..2781bfe 100755 --- a/home/.config/shell/prompt +++ b/home/.config/shell/prompt @@ -172,7 +172,15 @@ if [ $TERM = "linux" ]; then RPS1+="%(?..${RED}%? X$RESET)" else # Read comments for the section above. - #RPS+="\$(display_cmd_time)" + #RPS1+="\$(display_cmd_time)" + + # NOTE: "↵" symbol could cause issues with on some terminals/machines that + # don't handle unicode well, this issue could be very confusing to debug, + # and it would not be apparent what's wrong since the symbol itself will + # be drawn, however when it is drawn, it will also move the cursor line + # 2 places back since this symbol is made up of 3 bytes (in unicode) and + # regular ASCII characters only take up 1 byte, this means that whenever + # the right-side prompt appears (on error), the prompt would have this issue. RPS1="%(?..${RED}%? ↵$RESET)" fi