@@ -341,26 +341,138 @@ public static Ansi ansi(int size) {
341
341
return new Ansi (size );
342
342
}
343
343
344
- public Ansi fg (Color color ) {
345
- attributeOptions .add (color .fg ());
346
- return this ;
347
- }
344
+ public Ansi fg (Color color ) {
345
+ attributeOptions .add (color .fg ());
346
+ return this ;
347
+ }
348
+
349
+ public Ansi fgBlack () {
350
+ return this .fg (Color .BLACK );
351
+ }
352
+
353
+ public Ansi fgBlue () {
354
+ return this .fg (Color .BLUE );
355
+ }
356
+
357
+ public Ansi fgCyan () {
358
+ return this .fg (Color .CYAN );
359
+ }
360
+
361
+ public Ansi fgDefault () {
362
+ return this .fg (Color .DEFAULT );
363
+ }
364
+
365
+ public Ansi fgGreen () {
366
+ return this .fg (Color .GREEN );
367
+ }
368
+
369
+ public Ansi fgMagenta () {
370
+ return this .fg (Color .MAGENTA );
371
+ }
372
+
373
+ public Ansi fgRed () {
374
+ return this .fg (Color .RED );
375
+ }
376
+
377
+ public Ansi fgYellow () {
378
+ return this .fg (Color .YELLOW );
379
+ }
348
380
349
381
public Ansi bg (Color color ) {
350
382
attributeOptions .add (color .bg ());
351
383
return this ;
352
384
}
353
385
386
+ public Ansi bgCyan () {
387
+ return this .fg (Color .CYAN );
388
+ }
389
+
390
+ public Ansi bgDefault () {
391
+ return this .bg (Color .DEFAULT );
392
+ }
393
+
394
+ public Ansi bgGreen () {
395
+ return this .bg (Color .GREEN );
396
+ }
397
+
398
+ public Ansi bgMagenta () {
399
+ return this .bg (Color .MAGENTA );
400
+ }
401
+
402
+ public Ansi bgRed () {
403
+ return this .bg (Color .RED );
404
+ }
405
+
406
+ public Ansi bgYellow () {
407
+ return this .bg (Color .YELLOW );
408
+ }
409
+
354
410
public Ansi fgBright (Color color ) {
355
411
attributeOptions .add (color .fgBright ());
356
412
return this ;
357
413
}
358
414
415
+ public Ansi fgBrightBlack () {
416
+ return this .fgBright (Color .BLACK );
417
+ }
418
+
419
+ public Ansi fgBrightBlue () {
420
+ return this .fgBright (Color .BLUE );
421
+ }
422
+
423
+ public Ansi fgBrightCyan () {
424
+ return this .fgBright (Color .CYAN );
425
+ }
426
+
427
+ public Ansi fgBrightDefault () {
428
+ return this .fgBright (Color .DEFAULT );
429
+ }
430
+
431
+ public Ansi fgBrightGreen () {
432
+ return this .fgBright (Color .GREEN );
433
+ }
434
+
435
+ public Ansi fgBrightMagenta () {
436
+ return this .fgBright (Color .MAGENTA );
437
+ }
438
+
439
+ public Ansi fgBrightRed () {
440
+ return this .fgBright (Color .RED );
441
+ }
442
+
443
+ public Ansi fgBrightYellow () {
444
+ return this .fgBright (Color .YELLOW );
445
+ }
446
+
359
447
public Ansi bgBright (Color color ) {
360
448
attributeOptions .add (color .bgBright ());
361
449
return this ;
362
450
}
363
451
452
+ public Ansi bgBrightCyan () {
453
+ return this .fgBright (Color .CYAN );
454
+ }
455
+
456
+ public Ansi bgBrightDefault () {
457
+ return this .bgBright (Color .DEFAULT );
458
+ }
459
+
460
+ public Ansi bgBrightGreen () {
461
+ return this .bgBright (Color .GREEN );
462
+ }
463
+
464
+ public Ansi bgBrightMagenta () {
465
+ return this .bg (Color .MAGENTA );
466
+ }
467
+
468
+ public Ansi bgBrightRed () {
469
+ return this .bgBright (Color .RED );
470
+ }
471
+
472
+ public Ansi bgBrightYellow () {
473
+ return this .bgBright (Color .YELLOW );
474
+ }
475
+
364
476
public Ansi a (Attribute attribute ) {
365
477
attributeOptions .add (attribute .value ());
366
478
return this ;
0 commit comments