about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-04-12 03:47:20 +0200
committerbptato <nincsnevem662@gmail.com>2024-04-12 03:47:20 +0200
commitb2822404793aa5011aff2597f0c98f59c55a9a89 (patch)
treef456e644998ab8e80ea7d809a45845c7a5c6f2e7
parentb77810d07984f6586529b60e0b1e4238b639e488 (diff)
downloadchawan-b2822404793aa5011aff2597f0c98f59c55a9a89.tar.gz
Update readme
-rw-r--r--README.md32
1 files changed, 27 insertions, 5 deletions
diff --git a/README.md b/README.md
index 3492fffe..5449a0f8 100644
--- a/README.md
+++ b/README.md
@@ -121,13 +121,27 @@ You can fix this manually by adjusting the `display.default-background-color`,
 Yes; Chawan now has a built-in markdown converter. If you don't like it, you
 can always [replace it](doc/mailcap.md) with e.g. pandoc.
 
-### Why write another web browser?
+### I set Chawan as my PAGER and now man pages are unreadable.
 
-I've found other text-based web browsers insufficient for my needs, so
-I thought it'd be a fun excercise to write one by myself, for myself.
+TLDR: use mancha.
 
-Generally, I'm happy if Chawan works on websites I use frequently. If it
-also works on other websites, that's a bonus.
+Long explanation:
+
+Most `man` implementations print formatted manual pages by default, which
+Chawan *can* in fact automatically parse, *if* they are passed through standard
+input. Unfortunately, some `man` implementations (mandoc in particular) pass us
+the formatted document as a *file*, which Chawan reasonably interprets as plain
+text without formatting. (mandoc does not even set a useful file extension to
+guide us.)
+
+At this point you have two options:
+
+* Set PAGER='cha -T text/x-ansi', and see that man suddenly works as expected.
+* alias man=mancha in your bashrc, and see that man suddenly works better than
+  expected.
+
+It may be best to do both, to deal with annoying cases like git help which
+shells out to man directly.
 
 ### Where are the keybindings?
 
@@ -225,6 +239,14 @@ Here's some:
 For further details, ~~you will have to read the source code~~ please read
 [this](doc/architecture.md).
 
+### Why write another web browser?
+
+I've found other text-based web browsers insufficient for my needs, so
+I thought it'd be a fun excercise to write one by myself, for myself.
+
+Generally, I'm happy if Chawan works on websites I use frequently. If it
+also works on other websites, that's a bonus.
+
 ## License
 
 Chawan is dedicated to the public domain. See the UNLICENSE file for details.
n&id=4cb6970d9d96d0adca78212f5f9b584499e37bb0'>^
33352536 ^


bfcc0f85 ^
33352536 ^


9d27e966 ^
33352536 ^


ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^




5f6edeea ^
ee9a9237 ^
33352536 ^

33352536 ^
7a583220 ^
33352536 ^

6030d7e2 ^
5f6edeea ^

9d27e966 ^

ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
9d27e966 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
9d27e966 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
ddd2e989 ^
ee9a9237 ^
6030d7e2 ^
ddd2e989 ^

ee9a9237 ^
ddd2e989 ^
ee9a9237 ^
33352536 ^
9d27e966 ^
6030d7e2 ^
5f6edeea ^

9d27e966 ^

ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
9d27e966 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
9d27e966 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
9d27e966 ^

ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
9d27e966 ^

ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
9d27e966 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
ddd2e989 ^
ee9a9237 ^
6030d7e2 ^
ddd2e989 ^

ee9a9237 ^
ddd2e989 ^
ee9a9237 ^
33352536 ^
9d27e966 ^
6030d7e2 ^
5f6edeea ^


f1eade72 ^
6030d7e2 ^
9b16f190 ^
6030d7e2 ^
9b16f190 ^
bfcc0f85 ^
9b16f190 ^
6030d7e2 ^
9b16f190 ^
5f6edeea ^
ee9a9237 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173