summaryrefslogtreecommitdiffstats
path: root/Src/Zle/zle_refresh.c
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2025-11-10 21:02:34 +0100
committerOliver Kiddle <opk@zsh.org>2025-11-10 21:02:34 +0100
commitba008572e8c9909db839fc63c3a86db751c83ebd (patch)
tree7802e0d82e8ea9bb5f41f2a091a45870f75b748e /Src/Zle/zle_refresh.c
parent53404: terminal integration with semantic markers (diff)
downloadzsh-ba008572e8c9909db839fc63c3a86db751c83ebd.tar
zsh-ba008572e8c9909db839fc63c3a86db751c83ebd.tar.gz
zsh-ba008572e8c9909db839fc63c3a86db751c83ebd.tar.bz2
zsh-ba008572e8c9909db839fc63c3a86db751c83ebd.tar.lz
zsh-ba008572e8c9909db839fc63c3a86db751c83ebd.tar.xz
zsh-ba008572e8c9909db839fc63c3a86db751c83ebd.tar.zst
zsh-ba008572e8c9909db839fc63c3a86db751c83ebd.zip
53438: support for changing terminal cursor shape and colour
Diffstat (limited to 'Src/Zle/zle_refresh.c')
-rw-r--r--Src/Zle/zle_refresh.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index f076bdd61..f27191114 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -1024,6 +1024,8 @@ zrefresh(void)
tmpalloced = 0;
}
+ zle_set_cursorform();
+
/* this will create region_highlights if it's still NULL */
zle_set_highlight();
@@ -1666,6 +1668,7 @@ individually */
/* move to the new cursor position */
moveto(rpms.nvln, rpms.nvcs);
+ cursor_form();
/* swap old and new buffers - better than freeing/allocating every time */
bufswap();
@@ -2706,4 +2709,6 @@ zle_refresh_finish(void)
region_highlights = NULL;
n_region_highlights = 0;
}
+
+ free_cursor_forms();
}