Added support for switching the terminal to bold mode.

This commit is contained in:
Adam Murdoch
2012-08-04 07:06:11 +10:00
parent 9cfe2b1f24
commit 31e9d2b41c
9 changed files with 180 additions and 4 deletions

View File

@@ -15,6 +15,11 @@ public class Main {
Terminal terminal = terminalAccess.getTerminal(TerminalAccess.Output.Stdout);
TerminalSize terminalSize = terminal.getTerminalSize();
System.out.println("* terminal size: " + terminalSize.getCols() + " cols x " + terminalSize.getRows() + " rows");
System.out.print("[normal] ");
terminal.bold();
System.out.print("[bold]");
terminal.normal();
System.out.println(" [normal]");
}
}
}