Korean IME composition (marked) text renders at bottom of screen instead of at the input position

Aberta
#570 1 comentário 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
55/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Pouca atividade

Direção de pesquisa

Comece reproduzindo o problema por meio do ponto de entrada cmd na TUI com o IME coreano do macOS e, em seguida, rastreie o tratamento da entrada do prompt e do cursor de hardware descrito no relatório. Considera-se concluído quando a composição marcada em coreano, japonês e chinês aparece na posição do cursor de entrada, enquanto o texto confirmado permanece correto.

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

Descrição

Summary

When typing Korean text with the macOS built-in Korean input source (2-Set Hangul), the in-progress IME composition (marked text) is rendered at the bottom of the terminal screen instead of at the prompt input position. This affects all CJK input methods that rely on inline composition and makes Korean input hard to use, since the user cannot see the composing characters next to the text already entered in the input box.

Expected Behavior

The IME composition (marked) text should appear inline at the input cursor position, inside the prompt input box — i.e. the TUI should move the hardware terminal cursor to the input position while composing so the terminal emulator renders the composition view there.

Actual Behavior

The composition string appears at the bottom-left area of the screen, detached from the input box. After the composition is committed, the finalized text correctly appears in the input box — only the in-progress composition is misplaced. This suggests the TUI never repositions the hardware cursor to the input field (no cursor positioning during input), so the terminal emulator draws its IME composition view wherever the cursor happens to be parked.

Steps to reproduce the issue

  1. On macOS, enable the Korean input source (System Settings > Keyboard > Input Sources > Korean - 2-Set Hangul).
  2. Start cmd in a terminal (reproduced in the Orca embedded terminal; likely affects other terminals as well).
  3. Switch to the Korean input source and type any Korean syllable, e.g. press gks (한) slowly without committing.
  4. Observe that the composing character appears at the bottom of the screen rather than in the input box.

Environment

  • Command Code Version: 0.52.1
  • Operating System: macOS 26.5.2 (arm64)
  • Terminal: Orca (embedded terminal)
  • Shell: zsh (/bin/zsh)

Additional context

  • Reproduces with the stock macOS Korean IME; no third-party IME involved.
  • The same inline-composition mechanism is used by Japanese and Chinese input methods, so those users are likely affected too.
Linguagem predominante
Sem dados de linguagem
Estrelas
4k
Forks
350
Métricas de merge de PRs
Nenhum PR com merge em 30d

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

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 CommandCodeAI/command-code

Todas as issues de CommandCodeAI/command-code

Issues semelhantes

Mais issues de CLI

Receba novas issues na sua caixa de entrada

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