Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for clearAndRepaintLinePlusNPrevious (0.31 sec)

  1. src/cmd/vendor/golang.org/x/term/terminal.go

    func (t *Terminal) SetPrompt(prompt string) {
    	t.lock.Lock()
    	defer t.lock.Unlock()
    
    	t.prompt = []rune(prompt)
    }
    
    func (t *Terminal) clearAndRepaintLinePlusNPrevious(numPrevLines int) {
    	// Move cursor to column zero at the start of the line.
    	t.move(t.cursorY, 0, t.cursorX, 0)
    	t.cursorX, t.cursorY = 0, 0
    	t.clearLineToRight()
    	for t.cursorY < numPrevLines {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 17:16:14 UTC 2022
    - 22.5K bytes
    - Viewed (0)
Back to top