Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for writeAt (0.15 sec)

  1. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/DefaultTextArea.java

            writePos.row++;
        }
    
        @Override
        protected void doLineText(final CharSequence text) {
            if (text.length() == 0) {
                return;
            }
    
            ansiExecutor.writeAt(writePos, new Action<AnsiContext>() {
                @Override
                public void execute(AnsiContext ansi) {
                    ansi.withStyle(getStyle(), new Action<AnsiContext>() {
                        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/DefaultAnsiExecutorTest.groovy

            int startRow = writePos.row
            String text = "A" * TERMINAL_WIDTH +
                "B" * TERMINAL_WIDTH +
                "C" * TERMINAL_WIDTH +
                "D" * 3
    
            when:
            ansiExecutor.writeAt(writePos) {
                it.a(text)
            }
    
            then:
            writeCursor == Cursor.at(0, text.length())
            writePos == writeCursor
            interaction { expectLineWrapCallback(startRow, text.length()) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/AnsiExecutor.java

     * limitations under the License.
     */
    
    package org.gradle.internal.logging.console;
    
    import org.gradle.api.Action;
    
    public interface AnsiExecutor {
        void write(Action<? super AnsiContext> action);
        void writeAt(Cursor writePos, Action<? super AnsiContext> action);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 851 bytes
    - Viewed (0)
  4. src/net/tcpsockopt_plan9.go

    }
    
    // Set keep alive period.
    func setKeepAliveIdle(fd *netFD, d time.Duration) error {
    	if d < 0 {
    		return nil
    	}
    
    	cmd := "keepalive " + itoa.Itoa(int(d/time.Millisecond))
    	_, e := fd.ctl.WriteAt([]byte(cmd), 0)
    	return e
    }
    
    func setKeepAliveInterval(_ *netFD, d time.Duration) error {
    	if d < 0 {
    		return nil
    	}
    	return syscall.EPLAN9
    }
    
    func setKeepAliveCount(_ *netFD, n int) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 762 bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/DefaultAnsiExecutor.java

            this.listener = listener;
        }
    
        @Override
        public void write(Action<? super AnsiContext> action) {
            Ansi ansi = factory.create();
            action.execute(new AnsiContextImpl(ansi, colorMap, writeCursor));
            write(ansi);
        }
    
        @Override
        public void writeAt(Cursor writePos, Action<? super AnsiContext> action) {
            Ansi ansi = factory.create();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  6. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/AnsiContext.java

         */
        AnsiContext cursorAt(Cursor cursor);
    
        /**
         * @return a new context at the specified write position.
         */
        AnsiContext writeAt(Cursor writePos);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/DefaultRedrawableLabel.java

                    // Does not need to be redrawn
                    return;
                }
    
                int writtenTextLength = writePos.col;
                writePos.col = 0;
                redrawText(ansi.writeAt(writePos), writtenTextLength);
    
                writtenSpans = spans;
                previousWriteRow = absolutePositionRow;
            }
        }
    
        private void redrawText(AnsiContext ansi, int writtenTextLength) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/MultiLineBuildProgressArea.java

                    int previousLength = entries.get(i + newLines).getWritePosition().col;
                    if (currentLength < previousLength) {
                        ansi.writeAt(label.getWritePosition()).eraseForward();
                    }
                }
            }
    
            if (isPreviouslyVisible || isVisible) {
                ansi.cursorAt(parkCursor());
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 5K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/macho_update_uuid.go

    			return err
    		}
    		if cmd.Cmd == LC_UUID {
    			var u uuidCmd
    			if err := reader.ReadAt(0, &u); err != nil {
    				return err
    			}
    			copy(u.Uuid[:], uuidFromGoBuildId(*flagBuildid))
    			if err := reader.WriteAt(0, &u); err != nil {
    				return err
    			}
    			break
    		}
    	}
    
    	// We're done
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. src/mime/quotedprintable/writer.go

    }
    
    // Write encodes p using quoted-printable encoding and writes it to the
    // underlying [io.Writer]. It limits line length to 76 characters. The encoded
    // bytes are not necessarily flushed until the [Writer] is closed.
    func (w *Writer) Write(p []byte) (n int, err error) {
    	for i, b := range p {
    		switch {
    		// Simple writes are done in batch.
    		case b >= '!' && b <= '~' && b != '=':
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top