Skip to content

Test: Integrated terminal IME support  #9695

Closed

Description

@Tyriar

Test for #7045:

The integrated terminal now supports input via IMEs (Input Method Editors). During development I tested this across all 3 OS' with Japanese and Korean IMEs as I'm familiar with them. Here are some things to try:

  • Install/enable an IME for the OS, preferably not Japanese/Korean
  • Test input, if you're familiar with the IME try all the edge cases
    • Multiple character compositions?
    • Multiple keystrokes per character?
    • Multiple characters reducing to a single character?
  • Test executing a command using the text (eg. echo)

See xtermjs/xterm.js#175 for more details on the change and testing that was performed at implementation time.

Activity

  1. ZCShou commented on Jul 26, 2016

    @ZCShou

    Daniel Imms (@Tyriar) Cannot follow cursor! The first input is ok ,but The following Input can not work well!

    Win10 x64 Chinese IME

  2. rebornix commented on Jul 26, 2016

    @rebornix
    Contributor

    Daniel Imms (@Tyriar) try type two Chinese characters then switch to English and type 'abc', you will see the cursor position is wrong, which breaks deleting functionality.

  3. Tyriar commented on Jul 26, 2016

    @Tyriar
    ContributorAuthor

    ZCShou (@ZCShou) Peng Lyu (@rebornix) are you experiencing the cursor-related issue I describe at the bottom of xtermjs/xterm.js#175 (comment)? I found that input seemed fine but the cursor disappeared so the composition window was never in the right position.

  4. rebornix commented on Jul 26, 2016

    @rebornix
    Contributor

    Daniel Imms (@Tyriar) I ran into the issue you described there and the input works fine. Besides, the cursor position comes back if you switch to English IME but the position is wrong, and its offset depends on how many Chinese characters you type

    At first, type abc and the cursor is at the right of last char.

    image

    Then type a Chinese char 吕 (lv) and abc again

    image

    See above, the cursor is on last char. Then you type 鹏 (peng) and abc

    image

    The cursor now is on the last two char of text. I suppose its offset is just how many Chinese chars you type. My suspicion is we don't move the cursor position when we handle CJK IME composition?

  5. Tyriar commented on Jul 26, 2016

    @Tyriar
    ContributorAuthor

    The cursor position is handled entirely by the pty though, not vscode. I wonder if this is something to do with #7345 which is an upstream problem that does weird things when using backspace/left/right.

  6. joaomoreno commented on Jul 26, 2016

    @joaomoreno
    Contributor

    Daniel Imms (@Tyriar) I've found it hard to test and even to know whether what I did actually tested your work. I followed a guide or two in installing IMEs, I was able to type some Japanese/Korean, but I'm not sure I actually tested what you should be tested.

  7. Tyriar commented on Jul 26, 2016

    @Tyriar
    ContributorAuthor

    João Moreno (@joaomoreno) no problems, I did a bunch of testing myself on Linux so hopefully that will be enough.

  8. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions