Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for readPasswordLine (0.19 sec)

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

    	if err := windows.DuplicateHandle(p, windows.Handle(fd), p, &h, 0, false, windows.DUPLICATE_SAME_ACCESS); err != nil {
    		return nil, err
    	}
    
    	f := os.NewFile(uintptr(h), "stdin")
    	defer f.Close()
    	return readPasswordLine(f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 15 19:02:39 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/term/term_unix.go

    	newState.Iflag |= unix.ICRNL
    	if err := unix.IoctlSetTermios(fd, ioctlWriteTermios, &newState); err != nil {
    		return nil, err
    	}
    
    	defer unix.IoctlSetTermios(fd, ioctlWriteTermios, termios)
    
    	return readPasswordLine(passwordReader(fd))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/term/terminal.go

    	}
    	return s.entries[index], true
    }
    
    // readPasswordLine reads from reader until it finds \n or io.EOF.
    // The slice returned does not include the \n.
    // readPasswordLine also ignores any \r it finds.
    // Windows uses \r as end of line. So, on Windows, readPasswordLine
    // reads until it finds \r and ignores any \n it finds during processing.
    func readPasswordLine(reader io.Reader) ([]byte, error) {
    	var buf [1]byte
    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