mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Move wcswidth into its own package as it is very slow to build
This commit is contained in:
@@ -18,6 +18,7 @@ import (
|
||||
"kitty/tools/cli"
|
||||
"kitty/tools/crypto"
|
||||
"kitty/tools/tty"
|
||||
"kitty/tools/tui"
|
||||
"kitty/tools/utils"
|
||||
)
|
||||
|
||||
@@ -255,10 +256,9 @@ func get_password(password string, password_file string, password_env string, us
|
||||
if ans == "" && password_file != "" {
|
||||
if password_file == "-" {
|
||||
if tty.IsTerminal(os.Stdin.Fd()) {
|
||||
var q string
|
||||
q, err = tty.ReadPassword("Password: ")
|
||||
if err == nil {
|
||||
ans = string(q)
|
||||
ans, err = tui.ReadPassword("Password: ", false)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
} else {
|
||||
var q []byte
|
||||
|
||||
Reference in New Issue
Block a user