Advertisement
MangaD

Font Style - IRC

Apr 19th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.97 KB | None | 0 0
  1. /*  Font Style Class *
  2.  *  @author MangaD   */
  3.  
  4. package botclient;
  5.  
  6. //Static class
  7. public final class FontStyle {
  8.    
  9.     private FontStyle(){}
  10.    
  11.     //Ctrl+B
  12.     public static String bold(String msg){
  13.         return "\002" + msg + "\002";
  14.     }
  15.     //Ctrl+R
  16.     public static String reversed_italic(String msg){
  17.         return "\026" + msg + "\026";
  18.     }
  19.     //Ctrl+U
  20.     public static String underline(String msg){
  21.         return "\037" + msg + "\037";
  22.     }
  23. /* Ctrl+K
  24.  * 0-   White
  25.  * 1-   Black
  26.  * 2-   Blue
  27.  * 3-   Green
  28.  * 4-   Light Red
  29.  * 5-   Brown
  30.  * 6-   Purple
  31.  * 7-   Orange
  32.  * 8-   Yellow
  33.  * 9-   Light Green
  34.  * 10-   Cyan
  35.  * 11-   Light Cyan
  36.  * 12-   Light Blue
  37.  * 13-   Pink
  38.  * 14-   Grey
  39.  * 15-   Light Grey
  40.  */
  41.     public static String color(String msg, String foreground){
  42.         return "\003" + foreground + msg + "\003";
  43.     }
  44.     public static String color(String msg, String foreground, String background){
  45.         return "\003" + foreground + "," +background + msg + "\003";
  46.     }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement