Preview-tui fix winch_handler

This commit is contained in:
Luuk van Baal 2021-05-18 11:20:56 +02:00 committed by Arun Prakash Jana
parent 2bd72d1b29
commit b89c32b9fa
No known key found for this signature in database
GPG key ID: A75979F35C080412
2 changed files with 8 additions and 4 deletions

View file

@ -274,8 +274,10 @@ ueberzug_remove() {
winch_handler() { winch_handler() {
clear clear
kill "$(cat "$IMGPID")" "$(cat "$PAGERPID")" kill "$(cat "$IMGPID")" "$(cat "$PAGERPID")"
pkill -P "$$" if [ -p "$FIFO_UEBERZUG" ]; then
if [ -p "$FIFO_UEBERZUG" ]; then tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser json & fi pkill -P "$$"
tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser json &
fi
cat "$CURSEL" > "$NNN_FIFO" cat "$CURSEL" > "$NNN_FIFO"
preview_file "$(cat "$CURSEL")" preview_file "$(cat "$CURSEL")"
preview_fifo & preview_fifo &

View file

@ -373,8 +373,10 @@ ueberzug_remove() {
winch_handler() { winch_handler() {
clear clear
kill "$(cat "$IMGPID")" "$(cat "$PAGERPID")" kill "$(cat "$IMGPID")" "$(cat "$PAGERPID")"
pkill -P "$$" if [ -p "$FIFO_UEBERZUG" ]; then
if [ -p "$FIFO_UEBERZUG" ]; then tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser json & fi pkill -P "$$"
tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser json &
fi
cat "$CURSEL" > "$NNN_FIFO" cat "$CURSEL" > "$NNN_FIFO"
preview_file "$(cat "$CURSEL")" preview_file "$(cat "$CURSEL")"
preview_fifo & preview_fifo &