From 551cf83bc896c0c91ca630636d3407d7df81f7f9 Mon Sep 17 00:00:00 2001 From: nbari Date: Sun, 10 Mar 2024 09:10:37 +0100 Subject: [PATCH] fix cursor --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 45398ed..f5952cc 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,17 @@ function slick_prompt_precmd() { function slick_prompt_preexec() { slick_prompt_timestamp=$EPOCHSECONDS + + # Set cursor style + # 0 ⇒ blinking block. + # 1 ⇒ blinking block (default). + # 2 ⇒ steady block. + # 3 ⇒ blinking underline. + # 4 ⇒ steady underline. + # 5 ⇒ blinking bar, xterm. + # 6 ⇒ steady bar, xterm. + + echo -ne "\e[4 q"; } ```