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

Allow having separate MenuComplete selection color for input line and interactive menu

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

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

Đánh giá

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

Hướng nghiên cứu

Start by tracing Set-PSReadLineOption -Colors and the MenuComplete rendering paths in the PSReadLine source. Compare how the existing Selection color is applied to the input line and interactive menu. Done means the proposed Selection and CompletionSelection colors can be configured independently, with coverage for both display contexts.

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

Mô tả

Issue-Enhancement Needs-Triage :mag:
Prerequisites
  • Write a descriptive title.
Description of the new feature/enhancement

If I'm not mistaken, currently we are only able to set one color for both the MenuComplete selection on the input line and the interactive menu like the following:
image
But I want to do something like this:
image

Proposed technical implementation details (optional)

Maybe it would be great to be able to do something like the following:

$colors = @{
    "Selection" = "$([char]0x1b)[38;2;0;0;0;48;2;178;255;102m"  # Black text on green background for selected text in input line
    "CompletionSelection" = "$([char]0x1b)[38;2;255;255;255;48;2;0;0;255m"  # White text on blue background for selected completion in interactive menu
}
Set-PSReadLineOption -Colors $colors
Ngôn ngữ chính
C#
Star
4.4k
Fork
341
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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 PowerShell/PSReadLine

Tất cả issue của PowerShell/PSReadLine

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.