From b4b0bdc85331ed7342caeb969caa3151de0a928c Mon Sep 17 00:00:00 2001 From: pagedown Date: Mon, 7 Mar 2022 20:49:18 +0800 Subject: [PATCH] DCS @ kitty-print should be output to STDERR --- shell-integration/bash/kitty.bash | 2 +- shell-integration/zsh/kitty-integration | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shell-integration/bash/kitty.bash b/shell-integration/bash/kitty.bash index 0e006c066..3daae7a27 100644 --- a/shell-integration/bash/kitty.bash +++ b/shell-integration/bash/kitty.bash @@ -86,7 +86,7 @@ _ksi_main() { builtin unset KITTY_SHELL_INTEGRATION _ksi_debug_print() { - # print a line to STDOUT of parent kitty process + # print a line to STDERR of parent kitty process builtin local b b=$(builtin command base64 <<< "${@}") builtin printf "\eP@kitty-print|%s\e\\" "${b//[[:space:]]}}" diff --git a/shell-integration/zsh/kitty-integration b/shell-integration/zsh/kitty-integration index 131a9b072..878efb0f3 100644 --- a/shell-integration/zsh/kitty-integration +++ b/shell-integration/zsh/kitty-integration @@ -61,7 +61,7 @@ typeset -gi _ksi_fd } } 2>/dev/null || (( _ksi_fd = 1 )) -# Asks kitty to print $@ to its STDOUT. This is for debugging. +# Asks kitty to print $@ to its STDERR. This is for debugging. _ksi_debug_print() { builtin local data data=$(builtin command base64 <<<"${(j: :)@}") || builtin return