Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

More discrete alternative to pwfeedback

Đang mở
#536 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
46/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
c
Lĩnh vực
cli

Hướng nghiên cứu

Start by reading how sudo currently handles password input and echo-off feedback; the issue does not name files, tests, or entry points, so locate that code in the repository first. Compare the proposed single changing character with the current feedback behavior. Done means the feedback avoids revealing password length and gives a blank prompt after Backspace deletes the final character.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

As an alternative to sequential asterisks (******) that are easier for others to count, what if we had something similar to e.g. swaylock:

Screenshot of swaylock

Sway uses a circle that changes randomly as you type or delete characters.

When all characters have been deleted, it displays a "Cleared" message.

Screenshot of swaylock with Cleared message

Since sudo is a command-line program, maybe we could "spin" a character:

|
/
—
\
|

Or display one random character for every keypress.

#
!
(
5
~
`
e

(to be clear: only one character would be displayed at a time)

To me, the most confusing aspect of "echo off" appears when I make a typo and have to hold Backspace to delete everything and start over. There is no "cleared" feedback to let you know when you've deleted the last character. To indicate such event on the command-line, I would delete/hide the feedback character, leaving the prompt blank until the first character is typed.

Ngôn ngữ chính
C
Star
1.7k
Fork
306
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
24

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của sudo-project/sudo

Tất cả issue của sudo-project/sudo

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.