summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
authorT <t@tjp.lol>2025-03-24 21:14:30 -0600
committerT <t@tjp.lol>2025-03-24 21:16:12 -0600
commit27dabae7535f6b656dd6edb9355907e271822168 (patch)
tree36256809cd5a3bfe97fdbf04f5104130d5d9b4a2 /state.go
parent52826ae8183a1510c65aa63f5459f94c4d9ad4d7 (diff)
use the -R less option to allow ASCII color codes in the pager
Diffstat (limited to 'state.go')
-rw-r--r--state.go4
1 files 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")