flatiron / prompt

a beautiful command-line prompt for node.js

Home Page:http://github.com/flatiron/prompt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

PavelDobCZ23 opened this issue · comments

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.

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?

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.

@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