Here you can find the source of bold()
public final static void bold()
//package com.java2s; //License from project: Open Source License public class Main { static boolean isColored = false; public final static void bold() { if (isColored) { System.out.print("\u001b[1m"); }// ww w .j ava2 s . co m } public final static void print(Object s) { System.out.print(s); } public final static void print(String tab, Object o) { System.out.print(tab); String s = o.toString(); for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); if (c == '\n') { System.out.println(); System.out.print(tab); } else { System.out.print(c); } } } public final static void println(Object s) { System.out.println(s); } public final static void println(String tab, Object o) { print(tab, o); System.out.println(); } }