@@ -207,41 +207,85 @@ public TerminalBuilder systemOutput(SystemOutput systemOutput) {
207
207
return this ;
208
208
}
209
209
210
+ /**
211
+ * Forces the usage of the give terminal provider.
212
+ *
213
+ * @param provider The {@link TerminalProvider}'s name to use when creating the Terminal.
214
+ * @return The builder.
215
+ */
210
216
public TerminalBuilder provider (String provider ) {
211
217
this .provider = provider ;
212
218
return this ;
213
219
}
214
220
221
+ /**
222
+ * Sets the list of providers to try when creating the terminal.
223
+ * If not specified, the system property {@link #PROP_PROVIDERS} will be used if set.
224
+ * Else, the value {@link #PROP_PROVIDERS_DEFAULT} will be used.
225
+ *
226
+ * @param providers The list of {@link TerminalProvider}'s names to check when creating the Terminal.
227
+ * @return The builder.
228
+ */
215
229
public TerminalBuilder providers (String providers ) {
216
230
this .providers = providers ;
217
231
return this ;
218
232
}
219
233
234
+ /**
235
+ * Enables or disables the {@link #PROP_PROVIDER_JNA}/{@code jna} terminal provider.
236
+ * If not specified, the system property {@link #PROP_JNA} will be used if set.
237
+ * If not specified, the provider will be checked.
238
+ */
220
239
public TerminalBuilder jna (boolean jna ) {
221
240
this .jna = jna ;
222
241
return this ;
223
242
}
224
243
244
+ /**
245
+ * Enables or disables the {@link #PROP_PROVIDER_JANSI}/{@code jansi} terminal provider.
246
+ * If not specified, the system property {@link #PROP_JANSI} will be used if set.
247
+ * If not specified, the provider will be checked.
248
+ */
225
249
public TerminalBuilder jansi (boolean jansi ) {
226
250
this .jansi = jansi ;
227
251
return this ;
228
252
}
229
253
254
+ /**
255
+ * Enables or disables the {@link #PROP_PROVIDER_JNI}/{@code jni} terminal provider.
256
+ * If not specified, the system property {@link #PROP_JNI} will be used if set.
257
+ * If not specified, the provider will be checked.
258
+ */
230
259
public TerminalBuilder jni (boolean jni ) {
231
260
this .jni = jni ;
232
261
return this ;
233
262
}
234
263
264
+ /**
265
+ * Enables or disables the {@link #PROP_PROVIDER_EXEC}/{@code exec} terminal provider.
266
+ * If not specified, the system property {@link #PROP_EXEC} will be used if set.
267
+ * If not specified, the provider will be checked.
268
+ */
235
269
public TerminalBuilder exec (boolean exec ) {
236
270
this .exec = exec ;
237
271
return this ;
238
272
}
239
273
274
+ /**
275
+ * Enables or disables the {@link #PROP_PROVIDER_FFM}/{@code ffm} terminal provider.
276
+ * If not specified, the system property {@link #PROP_FFM} will be used if set.
277
+ * If not specified, the provider will be checked.
278
+ */
240
279
public TerminalBuilder ffm (boolean ffm ) {
241
280
this .ffm = ffm ;
242
281
return this ;
243
282
}
244
283
284
+ /**
285
+ * Enables or disables the {@link #PROP_PROVIDER_DUMB}/{@code dumb} terminal provider.
286
+ * If not specified, the system property {@link #PROP_DUMB} will be used if set.
287
+ * If not specified, the provider will be checked.
288
+ */
245
289
public TerminalBuilder dumb (boolean dumb ) {
246
290
this .dumb = dumb ;
247
291
return this ;
0 commit comments