aboutsummaryrefslogtreecommitdiff
path: root/.config/shell/zsh-fast-syntax-highlighting/-fast-zts-read-all
diff options
context:
space:
mode:
Diffstat (limited to '.config/shell/zsh-fast-syntax-highlighting/-fast-zts-read-all')
-rw-r--r--.config/shell/zsh-fast-syntax-highlighting/-fast-zts-read-all17
1 files changed, 0 insertions, 17 deletions
diff --git a/.config/shell/zsh-fast-syntax-highlighting/-fast-zts-read-all b/.config/shell/zsh-fast-syntax-highlighting/-fast-zts-read-all
deleted file mode 100644
index 96c52ab..0000000
--- a/.config/shell/zsh-fast-syntax-highlighting/-fast-zts-read-all
+++ /dev/null
@@ -1,17 +0,0 @@
-# $1 - file-descriptor to be read from
-# $2 - name of output variable (default: REPLY)
-
-local __in_fd=${1:-0} __out_var=${2:-REPLY}
-local -a __tmp
-integer __ret=1 __repeat=10 __tmp_size=0
-
-while sysread -s 65535 -i "$__in_fd" '__tmp[__tmp_size + 1]'; do
- (( ( __ret=$? ) == 0 )) && (( ++ __tmp_size ))
- (( __ret == 5 )) && { __ret=0; (( --__repeat == 0 )) && break; }
-done
-
-: ${(P)__out_var::="${(j::)__tmp}"}
-
-return __ret
-
-# vim: ft=zsh:et:sw=4:sts=4