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 摘要。