microsoft / inshellisense

IDE style command line auto complete
MIT License
8.21k stars 179 forks source link

fix: batched keypress events failed to be recognized. #167

Closed cpendery closed 4 months ago

cpendery commented 4 months ago

In the case where the pty batches together multiple keypress events, our current parsing fails to handle this (borrowed from ink. Using a much more robust approach recommended in the node docs and used across more cli project by using 'keypress' event instead of 'data' via readline's built in parsing.