Package org.fusesource.jansi

Examples of org.fusesource.jansi.Ansi.cursor()


    @Override
    protected void printClear() {
        AnsiConsole.systemInstall();
        Ansi ansi = Ansi.ansi();
        System.out.println( ansi.eraseScreen() );
        System.out.println( ansi.cursor(0, 0) );
        AnsiConsole.systemUninstall();
    }

    @Override
    protected void processRegister(String jar) throws IOException {
View Full Code Here


    @Override
    protected void printClear() {
        AnsiConsole.systemInstall();
        Ansi ansi = Ansi.ansi();
        System.out.println( ansi.eraseScreen() );
        System.out.println( ansi.cursor(0, 0) );
        AnsiConsole.systemUninstall();
    }

    @Override
    protected void processRegister(String jar) throws IOException {
View Full Code Here

    @Override
  protected void printClear() {
        AnsiConsole.systemInstall();
        Ansi ansi = Ansi.ansi();
        System.out.println( ansi.eraseScreen() );
        System.out.println( ansi.cursor(0, 0) );
        AnsiConsole.systemUninstall();
    }

    @Override
    protected void processRegister(String jar) throws IOException {
View Full Code Here

    @Override
    protected void printClear() {
        AnsiConsole.systemInstall();
        Ansi ansi = Ansi.ansi();
        System.out.println( ansi.eraseScreen() );
        System.out.println( ansi.cursor(0, 0) );
        AnsiConsole.systemUninstall();
    }

    @Override
    protected void processRegister(String jar) throws IOException {
View Full Code Here

    if (mostFurtherLeftColNumber == Integer.MAX_VALUE) {
      // There is nothing to erase
    }
    else {
      ansi.cursor(row, mostFurtherLeftColNumber);
      ansi.eraseLine(Erase.FORWARD); // Clear what was present on the line
    }

    if (("".equals(message))) {
      // They want the line blank; we've already achieved this if needed via the erasing above
View Full Code Here

      // They want some message displayed
      int startFrom = reader.getTerminal().getWidth() - message.length() + 1;
      if (startFrom < 1) {
        startFrom = 1;
      }
      ansi.cursor(row, startFrom);
      ansi.a(Attribute.NEGATIVE_ON).a(message).a(Attribute.NEGATIVE_OFF);
      // Record we want to erase from this positioning next time (so we clean up after ourselves)
      rowErasureMap.put(row, startFrom);
    }
    if (isAppleTerminal()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.