From 27dabae7535f6b656dd6edb9355907e271822168 Mon Sep 17 00:00:00 2001 From: T Date: Mon, 24 Mar 2025 21:14:30 -0600 Subject: use the -R less option to allow ASCII color codes in the pager --- state.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/state.go b/state.go index 5c3aa5c..17d595d 100644 --- a/state.go +++ b/state.go @@ -86,10 +86,10 @@ func (PromptPrinter) PrintPage(state *BrowserState, body string) error { return nil } - lessarg := []string{} + lessarg := []string{"-R"} switch state.Pager { case "auto": - lessarg = []string{"-F"} + lessarg = append(lessarg, "-F") fallthrough case "always": less, err := exec.LookPath("less") -- cgit v1.2.3