Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

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

Aberta
#4,269 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
45/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
csharp, powershell
Domínio
cli

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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
Linguagem predominante
C#
Estrelas
4.4k
Forks
341
Métricas de merge de PRs
Nenhum PR com merge em 30d

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de PowerShell/PSReadLine

Todas as issues de PowerShell/PSReadLine

Issues semelhantes

Mais issues de C#

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.