Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: enable masking password inputs instead of blocking echo#17469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ibetitsmike merged 13 commits intomainfrommike/17059-hide-tokens-coder-cli
Apr 24, 2025
Merged
Changes from1 commit
Commits
Show all changes
13 commits
Select commitHold shift + click to select a range
8913e33
remove speakeasy dependency; implement input recapture
ibetitsmikeApr 18, 2025
ea61493
removed backspace test
ibetitsmikeApr 18, 2025
25f5334
removed the test from windows
ibetitsmikeApr 18, 2025
586faf6
PR feedback
ibetitsmikeApr 22, 2025
b23e5cc
windows writer handling
ibetitsmikeApr 22, 2025
7d956d3
windows writer handling
ibetitsmikeApr 22, 2025
8f67a4a
last windows writer handling fix
ibetitsmikeApr 22, 2025
8d6de7b
removed sanity check on entered characters
ibetitsmikeApr 22, 2025
2607ed0
import order
ibetitsmikeApr 22, 2025
2042912
simplified the logic and moved to byte handling to respect UTF-8
ibetitsmikeApr 23, 2025
c7d7d21
switched the implementation to use runes
ibetitsmikeApr 23, 2025
d8a5830
added back the windows failing test
ibetitsmikeApr 23, 2025
f9bd0bf
added test for UTF-8 characters and simplified the signal interrupt h…
ibetitsmikeApr 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
removed sanity check on entered characters
  • Loading branch information
@ibetitsmike
ibetitsmike committedApr 22, 2025
commit8d6de7b47e28bc0093ee96c2aefc1f6ef9d4ae3e
9 changes: 3 additions & 6 deletionscli/cliui/prompt.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -243,12 +243,9 @@ func readSecretInput(f *os.File, w io.Writer) (string, error) {
_, _ = w.Write([]byte("\b \b"))
}
default:
// Only append printable characters
if buf[0] >= 32 && buf[0] <= 126 {
line += string(buf[0])
// Print the mask character
_, _ = w.Write([]byte("*"))
}
line += string(buf[0])
// Print the mask character
_, _ = w.Write([]byte("*"))
}
}
}
Loading

[8]ページ先頭

©2009-2025 Movatter.jp