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