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

@@ -2,4 +2,19 @@ package net.rubygrapefruit.platform;
public interface Terminal {
TerminalSize getTerminalSize();
/**
* Switches the terminal to bold mode.
*/
Terminal bold();
/**
* Switches the terminal to bold mode, outputs the given text, then switches to normal mode.
*/
Terminal bold(String output);
/**
* Switches the terminal to normal mode.
*/
Terminal normal();
}