first commit
This commit is contained in:
commit
0610f4aeab
130 changed files with 9897 additions and 0 deletions
11
fn/z4h-clear-screen-soft-bottom
Normal file
11
fn/z4h-clear-screen-soft-bottom
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
[[ -v _z4h_tty_fd ]] || return
|
||||
|
||||
builtin echoti civis >&$_z4h_tty_fd
|
||||
local -i cursor_x cursor_y
|
||||
-z4h-get-cursor-pos || cursor_y=0
|
||||
builtin print -rnu $_z4h_tty_fd -- "${(pl:$((2 * LINES - cursor_y - 1))::\n:)}"
|
||||
builtin zle -I
|
||||
builtin zle -R
|
||||
-z4h-cursor-show
|
Loading…
Add table
Add a link
Reference in a new issue