fix(logging): run paru/yay wrappers in PTY to restore progress bars
Piping through tee caused libalpm to detect a non-TTY stdout and suppress download progress bars. Switch to script(1) with -q -e -c which allocates a pseudo-TTY so paru/yay see a real terminal, then strip ANSI escape sequences from the captured log for readability. Bump wrapper version to 2 to force regeneration on next shell start.
This commit is contained in:
+4
-3
@@ -216,7 +216,8 @@ scrollback snapshot to SCROLLBACK_HISTORY_DIR. Files are named:
|
||||
|
||||
scrollback_YYYY-MM-DD_HH-MM-SS.log
|
||||
|
||||
The paru and yay wrappers (auto-generated in ~/.local/bin/) tee all output to:
|
||||
The paru and yay wrappers (auto-generated in ~/.local/bin/) run inside a PTY
|
||||
via script(1) so progress bars are preserved, and capture all output to:
|
||||
|
||||
paru_YYYY-MM-DD_HH-MM-SS.log
|
||||
yay_YYYY-MM-DD_HH-MM-SS.log
|
||||
@@ -1615,9 +1616,9 @@ __fish_config_op_logging skips all capture and removes the logging wrappers.
|
||||
───────────────────────────────────────────────────────────────────────────
|
||||
Scrollback capture Terminal session output saved to:
|
||||
~/.terminal_history/scrollback_YYYY-MM-DD_HH-MM-SS.log
|
||||
paru wrapper All paru/AUR output teed to:
|
||||
paru wrapper All paru/AUR output captured to:
|
||||
~/.terminal_history/paru_YYYY-MM-DD_HH-MM-SS.log
|
||||
yay wrapper All yay/AUR output teed to:
|
||||
yay wrapper All yay/AUR output captured to:
|
||||
~/.terminal_history/yay_YYYY-MM-DD_HH-MM-SS.log
|
||||
Kitty watcher watcher.py captures scrollback when Kitty closes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user