Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use xterm-addon-attach Problem #4011

Closed
linwenfeng122 opened this issue Aug 12, 2022 · 1 comment
Closed

use xterm-addon-attach Problem #4011

linwenfeng122 opened this issue Aug 12, 2022 · 1 comment

Comments

@linwenfeng122
Copy link

linwenfeng122 commented Aug 12, 2022

Details

  • Browser and browser version:
  • Google
  • xterm.js version:
    "xterm": "^4.19.0",
    "xterm-addon-attach": "^0.6.0",
    "xterm-addon-fit": "^0.5.0"

Steps to reproduce

When using the English input method, I will enter every character. How to realize that the Enter key will be responded only after I have typed multiple characters

@jerch
Copy link
Member

jerch commented Aug 22, 2022

onData contains what was typed on the keyboard, thus you can easily filter on \r positions in its data (\r is what Enter generates). But doing that sounds very wrong to me and is most likely not what you want. Maybe try to rephrase your issue with Enter.

@jerch jerch closed this as completed Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants