# `pardes -` keeps a program's colours (PagerColor, on by default): its SGR # becomes the +Pager's own colours over the plain text (red through the # theme's palette, truecolor as given, bold and underline, a man page's # overstrike), and every other escape (the OSC title) is dropped. The # needles waited for are split by escapes in the typed line, so only the # paged text holds them. start 50 100 wait 8000 $ stable 700 20000 text printf '\033]0;title\007\033[31mred\033[m \033[1;32mbold green\033[m \033[38;2;200;100;0mrgb\033[m \033[4mul\033[m N\bNA\bAM\bME\bE _\bu_\bs plain\n' | $(readlink /proc/$PPID/exe) - key enter wait 20000 red bold green stable 700 20000 snap pager snapstyle pager-colours # A coloured diff: the rows pardes tints as added or removed are drawn as # its own diff, and git's colours stay on the rest (the bold header, the # cyan hunk line, the yellow commit line). text printf '\033[33mcommit 0123\033[33mabc\033[m\n\033[1mdiff --git a/x b/x\033[m\n\033[1m--- a/x\033[m\n\033[1m+++ b/x\033[m\n\033[36m@@ -1 +1 @@\033[m\n\033[31m-old\033[m\n\033[32m+new\033[m\n' | $(readlink /proc/$PPID/exe) - key enter wait 20000 0123abc stable 700 20000 snap pager-diff snapstyle pager-diff-colours