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

Can't paste text into the prompt [windows]. #218

Open
PavelDobCZ23 opened this issue Oct 22, 2021 · 3 comments
Open

Can't paste text into the prompt [windows]. #218

PavelDobCZ23 opened this issue Oct 22, 2021 · 3 comments

Comments

@PavelDobCZ23
Copy link

When running script inside of windows cmd or node.js cmd on windows, I can't paste text using both (CTRL+V & Win + V) to the command prompt while prompt is being used. Pasting works for me only within VSCode console and Windows Terminal app in such case.

@caub caub changed the title Can't paste text into the prompt. Can't paste text into the prompt [windows]. Oct 23, 2021
@caub
Copy link
Contributor

caub commented Oct 23, 2021

Hey @PavelDobCZ23
Could you test using prompt@1.0.0 version also please? We made small changes recently that might have impacts

I'm on linux (paste works fine there btw) and can't easily test windows, thanks

What's your node version?

@PavelDobCZ23
Copy link
Author

My node version is 14.17.5, I've tried built-in readline module and there was the same issue. I've tried prompt@1.0 but still, I can't use CTRL+V nor Win+V to paste anything.

@caub
Copy link
Contributor

caub commented Oct 24, 2021

@PavelDobCZ23 If that doesn't work with the builtin readline I'm afraid we can't make it any better here

Can you access a linux-like command line? I think Github CLI for windows has one

then try to run while read text; do echo "$text"; done in it and see if paste works there

Or try to run this: node -p "require('fs').readFileSync(0)"

and see if paste works there too, if not you need to get a terminal that supports paste better

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