Commit 1f72b1a
authored
Add omit_term_stderr config (#79)
To disable unnecessary backend terminal output to the stderr.
There are some annoying but harmless logs from kitty like:
"""
[0.201] The output buffer does not support sRGB color encoding, colors will be incorrect.
[0.321] [PARSE ERROR] Escape codes to resize text area are not supported
"""
which are printed all the time. See:
kovidgoyal/kitty#7409
kovidgoyal/kitty#8545
Just give user an option to disable the stderr output. The error log
will be disabled if the option is true and the log level is above
DEBUG.
(Have thought about adding a log filter to specific backend, but it
seems to be over-designed.)1 parent 55d8d2e commit 1f72b1a
File tree
5 files changed
+25
-42
lines changed- src
- backend
5 files changed
+25
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | 196 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | 197 | | |
203 | 198 | | |
204 | | - | |
| 199 | + | |
205 | 200 | | |
206 | 201 | | |
207 | 202 | | |
| |||
232 | 227 | | |
233 | 228 | | |
234 | 229 | | |
235 | | - | |
236 | 230 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | 231 | | |
242 | 232 | | |
243 | | - | |
| 233 | + | |
244 | 234 | | |
245 | 235 | | |
246 | 236 | | |
| |||
270 | 260 | | |
271 | 261 | | |
272 | 262 | | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
| 263 | + | |
| 264 | + | |
284 | 265 | | |
285 | 266 | | |
286 | 267 | | |
| |||
309 | 290 | | |
310 | 291 | | |
311 | 292 | | |
312 | | - | |
313 | 293 | | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
| 294 | + | |
321 | 295 | | |
322 | 296 | | |
323 | 297 | | |
| |||
352 | 326 | | |
353 | 327 | | |
354 | 328 | | |
355 | | - | |
356 | 329 | | |
357 | | - | |
358 | 330 | | |
359 | | - | |
360 | | - | |
361 | 331 | | |
362 | 332 | | |
363 | | - | |
| 333 | + | |
364 | 334 | | |
365 | 335 | | |
366 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
86 | | - | |
87 | | - | |
88 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
89 | 96 | | |
90 | 97 | | |
91 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
| |||
0 commit comments