mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-09 21:55:29 +02:00
bootstrap script should work even when stdout is redirected
This commit is contained in:
@@ -8,7 +8,7 @@ cleanup_on_bootstrap_exit() {
|
||||
}
|
||||
|
||||
die() { echo "$*" > /dev/stderr; cleanup_on_bootstrap_exit; exit 1; }
|
||||
dsc_to_kitty() { printf "\033P@kitty-$1|%s\033\\" "$(printf "%s" "$2" | base64)"; }
|
||||
dsc_to_kitty() { printf "\033P@kitty-$1|%s\033\\" "$(printf "%s" "$2" | base64)" > /dev/tty; }
|
||||
debug() { dsc_to_kitty "print" "debug $1"; }
|
||||
echo_via_kitty() { dsc_to_kitty "echo" "$1"; }
|
||||
saved_tty_settings=$(command stty -g)
|
||||
|
||||
Reference in New Issue
Block a user