Examples of cursor()


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

    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

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

      // 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.