@@ -310,26 +310,138 @@ public static Ansi ansi(int size) {
310
310
return new Ansi (size );
311
311
}
312
312
313
- public Ansi fg (Color color ) {
314
- attributeOptions .add (color .fg ());
315
- return this ;
316
- }
313
+ public Ansi fg (Color color ) {
314
+ attributeOptions .add (color .fg ());
315
+ return this ;
316
+ }
317
+
318
+ public Ansi fgBlack () {
319
+ return this .fg (Color .BLACK );
320
+ }
321
+
322
+ public Ansi fgBlue () {
323
+ return this .fg (Color .BLUE );
324
+ }
325
+
326
+ public Ansi fgCyan () {
327
+ return this .fg (Color .CYAN );
328
+ }
329
+
330
+ public Ansi fgDefault () {
331
+ return this .fg (Color .DEFAULT );
332
+ }
333
+
334
+ public Ansi fgGreen () {
335
+ return this .fg (Color .GREEN );
336
+ }
337
+
338
+ public Ansi fgMagenta () {
339
+ return this .fg (Color .MAGENTA );
340
+ }
341
+
342
+ public Ansi fgRed () {
343
+ return this .fg (Color .RED );
344
+ }
345
+
346
+ public Ansi fgYellow () {
347
+ return this .fg (Color .YELLOW );
348
+ }
317
349
318
350
public Ansi bg (Color color ) {
319
351
attributeOptions .add (color .bg ());
320
352
return this ;
321
353
}
322
354
355
+ public Ansi bgCyan () {
356
+ return this .fg (Color .CYAN );
357
+ }
358
+
359
+ public Ansi bgDefault () {
360
+ return this .bg (Color .DEFAULT );
361
+ }
362
+
363
+ public Ansi bgGreen () {
364
+ return this .bg (Color .GREEN );
365
+ }
366
+
367
+ public Ansi bgMagenta () {
368
+ return this .bg (Color .MAGENTA );
369
+ }
370
+
371
+ public Ansi bgRed () {
372
+ return this .bg (Color .RED );
373
+ }
374
+
375
+ public Ansi bgYellow () {
376
+ return this .bg (Color .YELLOW );
377
+ }
378
+
323
379
public Ansi fgBright (Color color ) {
324
380
attributeOptions .add (color .fgBright ());
325
381
return this ;
326
382
}
327
383
384
+ public Ansi fgBrightBlack () {
385
+ return this .fgBright (Color .BLACK );
386
+ }
387
+
388
+ public Ansi fgBrightBlue () {
389
+ return this .fgBright (Color .BLUE );
390
+ }
391
+
392
+ public Ansi fgBrightCyan () {
393
+ return this .fgBright (Color .CYAN );
394
+ }
395
+
396
+ public Ansi fgBrightDefault () {
397
+ return this .fgBright (Color .DEFAULT );
398
+ }
399
+
400
+ public Ansi fgBrightGreen () {
401
+ return this .fgBright (Color .GREEN );
402
+ }
403
+
404
+ public Ansi fgBrightMagenta () {
405
+ return this .fgBright (Color .MAGENTA );
406
+ }
407
+
408
+ public Ansi fgBrightRed () {
409
+ return this .fgBright (Color .RED );
410
+ }
411
+
412
+ public Ansi fgBrightYellow () {
413
+ return this .fgBright (Color .YELLOW );
414
+ }
415
+
328
416
public Ansi bgBright (Color color ) {
329
417
attributeOptions .add (color .bgBright ());
330
418
return this ;
331
419
}
332
420
421
+ public Ansi bgBrightCyan () {
422
+ return this .fgBright (Color .CYAN );
423
+ }
424
+
425
+ public Ansi bgBrightDefault () {
426
+ return this .bgBright (Color .DEFAULT );
427
+ }
428
+
429
+ public Ansi bgBrightGreen () {
430
+ return this .bgBright (Color .GREEN );
431
+ }
432
+
433
+ public Ansi bgBrightMagenta () {
434
+ return this .bg (Color .MAGENTA );
435
+ }
436
+
437
+ public Ansi bgBrightRed () {
438
+ return this .bgBright (Color .RED );
439
+ }
440
+
441
+ public Ansi bgBrightYellow () {
442
+ return this .bgBright (Color .YELLOW );
443
+ }
444
+
333
445
public Ansi a (Attribute attribute ) {
334
446
attributeOptions .add (attribute .value ());
335
447
return this ;
0 commit comments