Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for cursorLeft (0.27 sec)

  1. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/DefaultRedrawableLabelTest.groovy

            given:
            label.text = "text"
    
            when:
            redraw()
            label.text = "new text"
            redraw()
    
            then:
            1 * ansi.a("text")
            1 * ansi.cursorLeft(4)
            1 * ansi.a("new text")
            0 * ansi._
        }
    
        def "changing the label text to a smaller string between redraw will erase the characters moving forward"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/MultiLineBuildProgressAreaTest.groovy

            1 * ansi.a("progress bar")
    
            // Progress label
            1 * ansi.cursorLeft(12)
            1 * ansi.cursorDown(1)
    
            for (int i = 0; i < progressArea.buildProgressLabels.size(); ++i) {
                String text = String.format("%s %d", prefix, i)
                1 * ansi.a(text)
                1 * ansi.cursorLeft(text.length())
                1 * ansi.cursorDown(1)
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/DefaultAnsiExecutor.java

                    ansi.cursorRight(position.col - writeCursor.col);
                } else {
                    ansi.cursorLeft(writeCursor.col - position.col);
                }
            } else {
                if (writeCursor.col > 0) {
                    ansi.cursorLeft(writeCursor.col);
                }
                if (writeCursor.row < position.row) {
                    ansi.cursorUp(position.row - writeCursor.row);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  4. maven-embedder/src/main/java/org/fusesource/jansi/Ansi.java

            return x > 0 ? appendEscapeSequence('C', x) : x < 0 ? cursorLeft(-x) : this;
        }
    
        /**
         * Moves the cursor left. If the parameter x is negative it moves the cursor right.
         *
         * @param x the number of characters to move left
         * @return this Ansi instance
         */
        public Ansi cursorLeft(final int x) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 09:53:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/CursorTest.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.internal.logging.console
    
    import spock.lang.Specification
    
    class CursorTest extends Specification {
        private static final def ROWS = [0, 2, 42, -1, -5]
        private static final def COLS = [0, 2, 21, 0, -3]
    
        def "create a cursor at (0,0) when using factory method 'newBottomLeft'"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top