Commit 7a43ce9
committed
feat: add support for controlling readline history features
You can disable loading or saving the history file and disable loading
the readline rc file. This is controlled by pragma history_features
which is a bit string. Setting a bit disables the feature.
Also cleaned up a python traceback if an invalid pragma was specified
on the command line. Just displays an error message and drops into
interactive mode.
I had a hand when running regression tests with
tet-admin.py::testBasicInteractive. It was loading the history file
and saving the commands making the file huge. So disable all
history_features by default when testing by setting pragma to 7.1 parent 316a454 commit 7a43ce9
2 files changed
+39
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
135 | 145 | | |
136 | 146 | | |
137 | 147 | | |
| |||
2263 | 2273 | | |
2264 | 2274 | | |
2265 | 2275 | | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
2266 | 2291 | | |
2267 | 2292 | | |
2268 | 2293 | | |
| |||
2277 | 2302 | | |
2278 | 2303 | | |
2279 | 2304 | | |
2280 | | - | |
| 2305 | + | |
| 2306 | + | |
2281 | 2307 | | |
2282 | 2308 | | |
2283 | 2309 | | |
2284 | 2310 | | |
2285 | 2311 | | |
2286 | | - | |
| 2312 | + | |
| 2313 | + | |
2287 | 2314 | | |
2288 | 2315 | | |
2289 | 2316 | | |
| |||
2322 | 2349 | | |
2323 | 2350 | | |
2324 | 2351 | | |
2325 | | - | |
| 2352 | + | |
| 2353 | + | |
2326 | 2354 | | |
2327 | 2355 | | |
2328 | 2356 | | |
| |||
2374 | 2402 | | |
2375 | 2403 | | |
2376 | 2404 | | |
2377 | | - | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
2378 | 2409 | | |
2379 | 2410 | | |
2380 | 2411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
138 | 141 | | |
139 | 142 | | |
140 | 143 | | |
| |||
0 commit comments