DCS @ kitty-print should be output to STDERR

This commit is contained in:
pagedown 2022-03-07 20:49:18 +08:00
parent 0b2837fcfa
commit b4b0bdc853
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ _ksi_main() {
builtin unset KITTY_SHELL_INTEGRATION builtin unset KITTY_SHELL_INTEGRATION
_ksi_debug_print() { _ksi_debug_print() {
# print a line to STDOUT of parent kitty process # print a line to STDERR of parent kitty process
builtin local b builtin local b
b=$(builtin command base64 <<< "${@}") b=$(builtin command base64 <<< "${@}")
builtin printf "\eP@kitty-print|%s\e\\" "${b//[[:space:]]}}" builtin printf "\eP@kitty-print|%s\e\\" "${b//[[:space:]]}}"

View File

@ -61,7 +61,7 @@ typeset -gi _ksi_fd
} }
} 2>/dev/null || (( _ksi_fd = 1 )) } 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() { _ksi_debug_print() {
builtin local data builtin local data
data=$(builtin command base64 <<<"${(j: :)@}") || builtin return data=$(builtin command base64 <<<"${(j: :)@}") || builtin return