Here you can find the source of bold(String msg)
public static String bold(String msg)
//package com.java2s; //License from project: LGPL public class Main { public static String bold(String msg) { StringBuilder sb = new StringBuilder("\033[1m"); sb.append(msg).append("\033[0m"); return sb.toString(); }/*from w w w. j a v a2 s . c om*/ }