You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Note:**`ReadlineFlags` produces `EnumSet<ReadlineFlag>` values. These are accepted by the `ReadlineRequest` builder's `flags()` method and the `readline()` overloads.
179
+
> **Note:**`ReadlineFlags` produces `EnumMap<ReadlineFlag, Integer>` valuesaccepted by the `ReadlineRequest` builder's `flags()` method.
226
180
227
181
### ReadlineRequest Builder
228
182
229
-
For calls that use several optional parameters, `ReadlineRequest` provides a builder pattern that avoids passing `null` for unused fields:
183
+
`ReadlineRequest` provides a builder pattern for calls that need optional parameters like pre-processors, custom history, cursor listeners, or flags:
230
184
231
185
```java
232
186
importorg.aesh.readline.ReadlineRequest;
@@ -257,7 +211,7 @@ readline.readline(request);
257
211
|`cursorListener(CursorListener)`|`CursorListener`| Cursor movement events |
> **Note:**The existing `readline()` overloads with positional parameters are deprecated in favor of `ReadlineRequest`. They continue to work but new code should prefer the builder.
214
+
> **Tip:**For simple cases, use the convenience methods (`readline(conn, prompt, handler)` or `readline(conn, prompt, handler, completions)`). For anything more complex, use `ReadlineRequest`.
261
215
262
216
## Completion
263
217
@@ -564,17 +518,17 @@ public class InteractiveShell {
0 commit comments