diff options
author | Frank Terbeck <ft@bewatermyfriend.org> | 2012-08-08 10:43:29 +0200 |
---|---|---|
committer | Frank Terbeck <ft@bewatermyfriend.org> | 2012-08-08 10:43:29 +0200 |
commit | ab84f0820a66075f36a043dd13b27fc320a3fdd9 (patch) | |
tree | 44a8aeece372dce6d2f5310161aa3eacb3a5d1a5 | |
parent | 0b3b271c53e56d13be9277e81e8a1b4f594c2570 (diff) | |
download | zsh-ab84f0820a66075f36a043dd13b27fc320a3fdd9.tar.gz zsh-ab84f0820a66075f36a043dd13b27fc320a3fdd9.zip |
Print directly from $terminfo instead of using `echoti'
The result is the same, plus this protects us from people who feel like
messing with the value of $TERM...
Suggested-by: Mikael Magnusson <mikachu@gmail.com>
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
-rw-r--r-- | debian/zshrc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/zshrc b/debian/zshrc index 716bce629..2e68181a1 100644 --- a/debian/zshrc +++ b/debian/zshrc @@ -68,10 +68,10 @@ then # active. Only then are the values from $terminfo valid. if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then function zle-line-init () { - echoti smkx + printf '%s' ${terminfo[smkx]} } function zle-line-finish () { - echoti rmkx + printf '%s' ${terminfo[rmkx]} } zle -N zle-line-init zle -N zle-line-finish |