CommandCodeAI / CommandCodeAI/command-code

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

未關閉
#570 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
沒有語言資料
星號
4k
分支
350
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先使用 macOS 韓文 IME,透過 TUI 中的 cmd 入口重現此問題,然後追蹤報告中描述的提示輸入與硬體游標處理。完成標準是:帶標記的韓文、日文與中文組合文字出現在輸入游標位置,而已提交文字維持正確。

由索引模型根據 Issue 內容生成。

評估

領域
cli, internationalization
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。