Comments (3)
can you describe a use case? what type of character or Boolean function are you thinking of for termination
from prompt-sync.
I was hoping to alter this for a personal tool that would accept multi-line input.
edit: for what it's worth, i ended up just pulling it from the clipboard since my use-case was copy-pasting the input into the script
from prompt-sync.
yeah .. good point. Only problem is the multiline messes up the line edit mode..
Really hard to enter the newline character and then still handle backspace etc.
Easy way to handle would be to simply accept one line at a time until you see a end sequence and just concat the lines received together.
from prompt-sync.
Related Issues (20)
- ANSI escape codes breaks cursor
- UTF8 emoji space issue HOT 1
- Sample code fails if used within a class method, presumably because 'prompt' is a reserved word HOT 2
- Will not work in Bash command when information piped in HOT 1
- Wrong cursor position with history and colored label
- How do I get it to run on codesandbox.io?
- Unable to input non-English letters on Windows HOT 6
- Every time I type a letter, the line repeats itself HOT 11
- ENXIO: no such device or address, open '/dev/tty' - Mac HOT 4
- Index.js is break
- Doesn't work with nodemon HOT 5
- prompt-sync takes a very long time(won't even accept input) to accept inputs HOT 1
- Pressing Tab multiple times does not cycle through the values of the autocomplete function HOT 2
- Add a validation option?
- Copy Paste not working properly
- Marking Repo as Deprecated and Offering Alternatives HOT 3
- Autocomplete error HOT 3
- Submit on first character HOT 1
- Prompt repeating on Input HOT 4
- Cannot access key listeners while prompt is in use
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prompt-sync.