Package aud.util

Class Terminal

java.lang.Object
aud.util.Terminal

public class Terminal extends Object
  • Field Details

  • Constructor Details

    • Terminal

      public Terminal(boolean ansi)
      Constructor.
      Parameters:
      ansi - assume terminal emulation is available
    • Terminal

      public Terminal()
      Constructor: guess availability of terminal emulation. Simple rule: assume that Windows systems don't provide terminal emulation, all other systems do.
  • Method Details

    • dumb

      public boolean dumb()
      Is this a dumb terminal without colors?
    • fg

      public void fg(int color)
      set foreground color
    • bg

      public void bg(int color)
      set background color
    • cls

      public void cls(boolean clear)
      clear screen (for clear=false, move only cursor)
    • bold

      public void bold(boolean b)
      switch use of bold font
    • cls

      public void cls()
      clear screen (cls(true))
    • reset

      public void reset()
      reset to black on white, normal font
    • showCursor

      public void showCursor()
      show cursor
    • hideCursor

      public void hideCursor()
      hide cursor