Comments (12)
Well it was just created for that scenario - so the user performs an action and accepts that something will happen, it will block until it is accepted. It did not need a return value for our usage because to be unlocked it must be accepted.
What would you like an alternative for? What are you trying to achieve?
from cli-menu.
I was just trying to figure out if the user did not want to go through with the action what would they do. Even something as simple as hitting the escape key would allow them to exit the process. The only way I see it’s possible right now is if they actually exit the whole process itself. So for example if it was a confirm deletion dialogue and they accidentally hit it, then they have no way of backing out.
from cli-menu.
Of course, I don't dispute your use-case. It makes total sense. However, it is not supported right now. We would happily accept this as a feature request if you are interested in working on it :)
from cli-menu.
Yes, Thank you i will work on it.
from cli-menu.
Just remembered someone started this a while ago - maybe you can use it #65
from cli-menu.
I will have a pull request by Monday. It’s full working non breaking. Just learning to write tests.
from cli-menu.
PR sent.
from cli-menu.
Fixed with #248
from cli-menu.
Is there any way you can add a point release to this PR. I use this but it's a requirement for another component. I'd like it to pull this release.
from cli-menu.
Is there any way you can add a point release to this PR. I use this but it's a requirement for another component. I'd like it to pull this release.
from cli-menu.
from cli-menu.
@AydinHassan Thank you.
from cli-menu.
Related Issues (20)
- struggling to re-generate sub-menu dynamically HOT 6
- Custom and auto mappings can't override default HOT 18
- Menu blink because deprecated warning. HOT 4
- Terminal overflow and menu size HOT 2
- Checked checkbox HOT 3
- Windows compatibility: replace posix_isatty() with stream_isatty() HOT 5
- Menu items and cp1251 HOT 3
- setPromptText - multiline support HOT 5
- PHPStorm - How to debug HOT 3
- PHPUnit problem if first item is not a SelectableItem which calls ->close() HOT 2
- Don't work setWidth() for MenuStyle HOT 4
- askText() requires two presses of enter and cuts the line (during copy/paste) HOT 1
- Pressing backspace in an empty text input crashes the menu system HOT 8
- Missing import HOT 3
- Replace ctype_digit with is_numeric ? HOT 2
- Feature request - ability to add sub-menu from addItem's callable HOT 9
- How do I capture CTRL+C event? HOT 2
- preserving selection index as you move up/down
- Feature: present menu "inline"; without clearing terminal screen HOT 1
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 cli-menu.